org.electrocodeogram.cpc.merge.api.strategy
Enum IWriteableMergeResult.Type

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

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

Specifies how a clone was affected by the merge operation.


Enum Constant Summary
ADDED
          The clone was newly added.
LOST
          The clone was lost during the merge because its new position could not be determined.
MODFIED
          The content of the clone was modified.
MOVED
          The clone's position or other attributes were changed.
MOVED_MODIFIED
          Combination of MOVED and MODFIED.
REMOVED
          The clone was removed due to a user modification.
UNCHANGED
          The clone was not affected by the merge.
 
Method Summary
static IWriteableMergeResult.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IWriteableMergeResult.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

ADDED

public static final IWriteableMergeResult.Type ADDED
The clone was newly added.


MOVED

public static final IWriteableMergeResult.Type MOVED
The clone's position or other attributes were changed.


MODFIED

public static final IWriteableMergeResult.Type MODFIED
The content of the clone was modified.


MOVED_MODIFIED

public static final IWriteableMergeResult.Type MOVED_MODIFIED
Combination of MOVED and MODFIED.


REMOVED

public static final IWriteableMergeResult.Type REMOVED
The clone was removed due to a user modification.


LOST

public static final IWriteableMergeResult.Type LOST
The clone was lost during the merge because its new position could not be determined.


UNCHANGED

public static final IWriteableMergeResult.Type UNCHANGED
The clone was not affected by the merge.

Method Detail

values

public static IWriteableMergeResult.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 (IWriteableMergeResult.Type c : IWriteableMergeResult.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 IWriteableMergeResult.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