org.electrocodeogram.cpc.merge.api.strategy
Enum ICloneObjectExtensionMergeStrategy.Status

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

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

Return status indicator for ICloneObjectExtensionMergeStrategy.merge(IReadableMergeTask, IMergeResult, ICloneObject, ICloneObject, ICloneObject, ICloneObject, LinkedList, LinkedList, LinkedList).


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


PARTIAL

public static final ICloneObjectExtensionMergeStrategy.Status PARTIAL
Indicates that the strategy made some modifications to the merged clone object.
However, not all clone object extensions could be fully merged.


FULL

public static final ICloneObjectExtensionMergeStrategy.Status FULL
Indicates that the strategy successfully merged all (remaining) clone object extensions.
The merged clone object 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 ICloneObjectExtensionMergeStrategy.Status BREAK
Indicates that this event should not be passed on to any more strategies and that the merged clone object 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 ICloneObjectExtensionMergeStrategy.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 (ICloneObjectExtensionMergeStrategy.Status c : ICloneObjectExtensionMergeStrategy.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 ICloneObjectExtensionMergeStrategy.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