org.electrocodeogram.cpc.core.api.provider.classification
Enum IClassificationProvider.Type

java.lang.Object
  extended by java.lang.Enum<IClassificationProvider.Type>
      extended by org.electrocodeogram.cpc.core.api.provider.classification.IClassificationProvider.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IClassificationProvider.Type>
Enclosing interface:
IClassificationProvider

public static enum IClassificationProvider.Type
extends java.lang.Enum<IClassificationProvider.Type>

Specifies the type of classification to be performed.


Enum Constant Summary
INCREMENTAL
          Incremental update of classifications of an existing clone which may or may not have been classified before.
INITIAL
          First classification of a newly created clone.
RECLASSIFY
          Complete reclassification of the clone.
 
Method Summary
static IClassificationProvider.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IClassificationProvider.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INITIAL

public static final IClassificationProvider.Type INITIAL
First classification of a newly created clone.


INCREMENTAL

public static final IClassificationProvider.Type INCREMENTAL
Incremental update of classifications of an existing clone which may or may not have been classified before.
In this mode old classifications may be preserved if this reduces the processing effort required for the classification of the clone or if some of the classifications are not intended to be recalculated after clone creation.

It is up to the IClassificationProvider whether this state is actually handled differently from RECLASSIFY.


RECLASSIFY

public static final IClassificationProvider.Type RECLASSIFY
Complete reclassification of the clone.
All existing classifications are removed.

Method Detail

values

public static IClassificationProvider.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IClassificationProvider.Type c : IClassificationProvider.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IClassificationProvider.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null