Package org.eclipse.emf.compare
Enum Class DifferenceKind
- All Implemented Interfaces:
Serializable
,Comparable<DifferenceKind>
,java.lang.constant.Constable
,Enumerator
A representation of the literals of the enumeration 'Difference Kind',
and utility methods for working with them.
The differences detected through EMF Compare can be of 4 general types.
- ADD represent addition of model element or feature values,
- DELETE represent suppression of model element or feature values,
- CHANGE represent the modification of a feature value,
- MOVE will be used for difference on the containment feature of a model element, or differences on the order of a feature's values.
- See Also:
- Generated:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The 'ADD' literal value.static final int
The 'CHANGE' literal value.static final String
static final int
The 'DELETE' literal value.static final int
The 'MOVE' literal value.static final List<DifferenceKind>
A public read-only list of all the 'Difference Kind' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic DifferenceKind
get
(int value) Returns the 'Difference Kind' literal with the specified integer value.static DifferenceKind
Returns the 'Difference Kind' literal with the specified literal value.static DifferenceKind
Returns the 'Difference Kind' literal with the specified name.getName()
int
getValue()
toString()
Returns the literal value of the enumerator, which is its string representation.static DifferenceKind
Returns the enum constant of this class with the specified name.static DifferenceKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
The 'ADD' literal object.- See Also:
- Generated:
-
DELETE
The 'DELETE' literal object.- See Also:
- Generated:
-
CHANGE
The 'CHANGE' literal object.- See Also:
- Generated:
-
MOVE
The 'MOVE' literal object.- See Also:
- Generated:
-
-
Field Details
-
copyright
- See Also:
- Generated:
-
ADD_VALUE
public static final int ADD_VALUEThe 'ADD' literal value. Represents the addition of model elements or feature values.- See Also:
- Generated:
-
DELETE_VALUE
public static final int DELETE_VALUEThe 'DELETE' literal value. Represents the suppression of model elements or feature values.- See Also:
- Generated:
-
CHANGE_VALUE
public static final int CHANGE_VALUEThe 'CHANGE' literal value. Represents the modification of a feature value.- See Also:
- Generated:
-
MOVE_VALUE
public static final int MOVE_VALUEThe 'MOVE' literal value. Describes a difference on the containment feature of a model element, or differences on the order of a feature's values.- See Also:
- Generated:
-
VALUES
A public read-only list of all the 'Difference Kind' enumerators.- Generated:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
get
Returns the 'Difference Kind' literal with the specified literal value.- Generated:
-
getByName
Returns the 'Difference Kind' literal with the specified name.- Generated:
-
get
Returns the 'Difference Kind' literal with the specified integer value.- Generated:
-
getValue
public int getValue()- Specified by:
getValue
in interfaceEnumerator
- Generated:
-
getName
- Specified by:
getName
in interfaceEnumerator
- Generated:
-
getLiteral
- Specified by:
getLiteral
in interfaceEnumerator
- Generated:
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<DifferenceKind>
- Generated:
-