Package org.eclipse.emf.compare
Enum DifferenceSource
java.lang.Object
java.lang.Enum<DifferenceSource>
org.eclipse.emf.compare.DifferenceSource
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DifferenceSource>,java.lang.constant.Constable,Enumerator
public enum DifferenceSource extends java.lang.Enum<DifferenceSource> implements Enumerator
A representation of the literals of the enumeration 'Difference Source',
and utility methods for working with them.
This will be used to represent the source of a detected diff.
- LEFT if the difference has been detected between the left element and its origin,
- RIGHT if the difference has been detected between the right element and its origin.
- See Also:
ComparePackage.getDifferenceSource()- Generated:
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringcopyrightstatic intLEFT_VALUEThe 'LEFT' literal value.static intRIGHT_VALUEThe 'RIGHT' literal value.static java.util.List<DifferenceSource>VALUESA public read-only list of all the 'Difference Source' enumerators. -
Method Summary
Modifier and Type Method Description static DifferenceSourceget(int value)Returns the 'Difference Source' literal with the specified integer value.static DifferenceSourceget(java.lang.String literal)Returns the 'Difference Source' literal with the specified literal value.static DifferenceSourcegetByName(java.lang.String name)Returns the 'Difference Source' 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 DifferenceSourcevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DifferenceSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEFT
The 'LEFT' literal object.- See Also:
LEFT_VALUE- Generated:
-
RIGHT
The 'RIGHT' literal object.- See Also:
RIGHT_VALUE- Generated:
-
-
Field Details
-
copyright
public static final java.lang.String copyright- See Also:
- Constant Field Values
- Generated:
-
LEFT_VALUE
public static final int LEFT_VALUEThe 'LEFT' literal value. Will be used if the difference has been detected between the left element and its origin. Differences detected during two-way comparisons will always have this has their source.- See Also:
LEFT, Constant Field Values- Generated:
-
RIGHT_VALUE
public static final int RIGHT_VALUEThe 'RIGHT' literal value. Will be used if the difference has been detected between the right element and its origin.- See Also:
RIGHT, Constant Field Values- Generated:
-
VALUES
A public read-only list of all the 'Difference Source' 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 Source' literal with the specified literal value.- Generated:
-
getByName
Returns the 'Difference Source' literal with the specified name.- Generated:
-
get
Returns the 'Difference Source' 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<DifferenceSource>- Generated:
-