org.electrocodeogram.cpc.classifier.api.strategy
Enum IClassificationStrategy.Status

java.lang.Object
  extended by java.lang.Enum<IClassificationStrategy.Status>
      extended by org.electrocodeogram.cpc.classifier.api.strategy.IClassificationStrategy.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IClassificationStrategy.Status>
Enclosing interface:
IClassificationStrategy

public static enum IClassificationStrategy.Status
extends java.lang.Enum<IClassificationStrategy.Status>

Return status indicator for IClassificationStrategy.classify(IClassificationProvider.Type, ICloneFile, IClone, String, IClone, Map).


Enum Constant Summary
BREAK
          Indicates that this event should not be passed on to any more strategies and that the clone's classification is in it's final stage.
MODIFIED
          Indicates that the strategy made some modifications to the classification of the clone.
SKIPPED
          Indicates that the strategy does not apply to the given clone and did not make any modifications.
 
Method Summary
static IClassificationStrategy.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IClassificationStrategy.Status[] 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

SKIPPED

public static final IClassificationStrategy.Status SKIPPED
Indicates that the strategy does not apply to the given clone and did not make any modifications.


MODIFIED

public static final IClassificationStrategy.Status MODIFIED
Indicates that the strategy made some modifications to the classification of the clone.


BREAK

public static final IClassificationStrategy.Status BREAK
Indicates that this event should not be passed on to any more strategies and that the clone's classification is in it's final stage.

A strategy will typically return this value if it detected a special situation which may confuse other strategies or if it needs to make sure that no other strategy will override its decision.

Method Detail

values

public static IClassificationStrategy.Status[] 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 (IClassificationStrategy.Status c : IClassificationStrategy.Status.values())
    System.out.println(c);

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

valueOf

public static IClassificationStrategy.Status 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