org.electrocodeogram.cpc.reconciler.api.strategy
Enum IReconcilerStrategy.Status

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

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

Return status indicator for IReconcilerStrategy.reconcile(ICloneFile, List, String, String, List, LinkedList, IReconciliationResult).


Enum Constant Summary
BREAK
          Indicates that this event should not be passed on to any more strategies and that the IReconciliationResult is in it's final stage.
FULL
          Indicates that the strategy successfully reconciled all (remaining) clone positions.
PARTIAL
          Indicates that the strategy made some modifications to the IReconciliationResult.
SKIPPED
          Indicates that the strategy did not make any modifications to the IReconciliationResult.
 
Method Summary
static IReconcilerStrategy.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IReconcilerStrategy.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 IReconcilerStrategy.Status SKIPPED
Indicates that the strategy did not make any modifications to the IReconciliationResult.


PARTIAL

public static final IReconcilerStrategy.Status PARTIAL
Indicates that the strategy made some modifications to the IReconciliationResult.
However, not all clone positions could be fully reconciled.


FULL

public static final IReconcilerStrategy.Status FULL
Indicates that the strategy successfully reconciled all (remaining) clone positions.
The IReconciliationResult is potentially in it's final state.

Further strategies will still be executed in order to have a chance to reject the result.


BREAK

public static final IReconcilerStrategy.Status BREAK
Indicates that this event should not be passed on to any more strategies and that the IReconciliationResult 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 IReconcilerStrategy.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 (IReconcilerStrategy.Status c : IReconcilerStrategy.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 IReconcilerStrategy.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