Package org.eclipse.emf.compare
Enum DifferenceState
java.lang.Object
java.lang.Enum<DifferenceState>
org.eclipse.emf.compare.DifferenceState
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DifferenceState>,java.lang.constant.Constable,Enumerator
public enum DifferenceState extends java.lang.Enum<DifferenceState> implements Enumerator
A representation of the literals of the enumeration 'Difference
State', and utility methods for working with them.
This will be used to represent the state of a detected diff.
- UNRESOLVED if the Diff is still in its initial state and the two sides differ,
- MERGED if the Diff has already been merged by the user,
- DISCARDED if the user chose to ignore this Diff,
- MERGING if the Diff is in the process of being merged.
- See Also:
ComparePackage.getDifferenceState()- Generated:
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCARDEDThe 'DISCARDED' literal object.MERGEDThe 'MERGED' literal object.MERGINGThe 'MERGING' literal object.UNRESOLVEDThe 'UNRESOLVED' literal object. -
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringcopyrightstatic intDISCARDED_VALUEThe 'DISCARDED' literal value.static intMERGED_VALUEThe 'MERGED' literal value.static intMERGING_VALUEThe 'MERGING' literal value.static intUNRESOLVED_VALUEThe 'UNRESOLVED' literal value.static java.util.List<DifferenceState>VALUESA public read-only list of all the 'Difference State' enumerators. -
Method Summary
Modifier and Type Method Description static DifferenceStateget(int value)Returns the 'Difference State' literal with the specified integer value.static DifferenceStateget(java.lang.String literal)Returns the 'Difference State' literal with the specified literal value.static DifferenceStategetByName(java.lang.String name)Returns the 'Difference State' literal with the specified name.java.lang.StringgetLiteral()java.lang.StringgetName()intgetValue()java.lang.StringtoString()Returns the literal value of the enumerator, which is its string representation.static DifferenceStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DifferenceState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNRESOLVED
The 'UNRESOLVED' literal object.- See Also:
UNRESOLVED_VALUE- Generated:
-
MERGED
The 'MERGED' literal object.- See Also:
MERGED_VALUE- Generated:
-
DISCARDED
The 'DISCARDED' literal object.- See Also:
DISCARDED_VALUE- Generated:
-
MERGING
The 'MERGING' literal object.- Since:
- 3.5
- See Also:
MERGING_VALUE- Generated:
-
-
Field Details
-
copyright
public static final java.lang.String copyright- See Also:
- Constant Field Values
- Generated:
-
UNRESOLVED_VALUE
public static final int UNRESOLVED_VALUEThe 'UNRESOLVED' literal value. Indicates that the Diff is still in its initial state.- See Also:
UNRESOLVED, Constant Field Values- Generated:
-
MERGED_VALUE
public static final int MERGED_VALUEThe 'MERGED' literal value. Indicates that the Diff has already been merged by the user.- See Also:
MERGED, Constant Field Values- Generated:
-
DISCARDED_VALUE
public static final int DISCARDED_VALUEThe 'DISCARDED' literal value. Indicates that the user chose to ignore this Diff.- See Also:
DISCARDED, Constant Field Values- Generated:
-
MERGING_VALUE
public static final int MERGING_VALUEThe 'MERGING' literal value. Indicates that the Diff is in the process of being merged.- Since:
- 3.4
- See Also:
MERGING, Constant Field Values- Generated:
-
VALUES
A public read-only list of all the 'Difference State' enumerators.- Generated:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 namejava.lang.NullPointerException- if the argument is null
-
get
Returns the 'Difference State' literal with the specified literal value.- Generated:
-
getByName
Returns the 'Difference State' literal with the specified name.- Generated:
-
get
Returns the 'Difference State' literal with the specified integer value.- Generated:
-
getValue
public int getValue()- Specified by:
getValuein interfaceEnumerator- Generated:
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceEnumerator- Generated:
-
getLiteral
public java.lang.String getLiteral()- Specified by:
getLiteralin interfaceEnumerator- Generated:
-
toString
public java.lang.String toString()Returns the literal value of the enumerator, which is its string representation.- Overrides:
toStringin classjava.lang.Enum<DifferenceState>- Generated:
-