Package org.jabylon.properties
Enum DiffKind
- java.lang.Object
-
- java.lang.Enum<DiffKind>
-
- org.jabylon.properties.DiffKind
-
- All Implemented Interfaces:
Serializable,Comparable<DiffKind>,org.eclipse.emf.common.util.Enumerator
public enum DiffKind extends Enum<DiffKind> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Diff Kind', and utility methods for working with them.- See Also:
PropertiesPackage.getDiffKind()
-
-
Field Summary
Fields Modifier and Type Field Description static intADD_VALUEThe 'ADD' literal value.static intCOPY_VALUEThe 'COPY' literal value.static intMODIFY_VALUEThe 'MODIFY' literal value.static intMOVE_VALUEThe 'MOVE' literal value.static intREMOVE_VALUEThe 'REMOVE' literal value.static List<DiffKind>VALUESA public read-only list of all the 'Diff Kind' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiffKindget(int value)Returns the 'Diff Kind' literal with the specified integer value.static DiffKindget(String literal)Returns the 'Diff Kind' literal with the specified literal value.static DiffKindgetByName(String name)Returns the 'Diff Kind' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static DiffKindvalueOf(String name)Returns the enum constant of this type with the specified name.static DiffKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REMOVE
public static final DiffKind REMOVE
The 'REMOVE' literal object.- See Also:
REMOVE_VALUE
-
MODIFY
public static final DiffKind MODIFY
The 'MODIFY' literal object.- See Also:
MODIFY_VALUE
-
COPY
public static final DiffKind COPY
The 'COPY' literal object.- See Also:
COPY_VALUE
-
MOVE
public static final DiffKind MOVE
The 'MOVE' literal object.- See Also:
MOVE_VALUE
-
-
Field Detail
-
ADD_VALUE
public static final int ADD_VALUE
The 'ADD' literal value.If the meaning of 'ADD' literal object isn't clear, there really should be more of a description here...
- See Also:
ADD, Constant Field Values
-
REMOVE_VALUE
public static final int REMOVE_VALUE
The 'REMOVE' literal value.If the meaning of 'REMOVE' literal object isn't clear, there really should be more of a description here...
- See Also:
REMOVE, Constant Field Values
-
MODIFY_VALUE
public static final int MODIFY_VALUE
The 'MODIFY' literal value.If the meaning of 'MODIFY' literal object isn't clear, there really should be more of a description here...
- See Also:
MODIFY, Constant Field Values
-
COPY_VALUE
public static final int COPY_VALUE
The 'COPY' literal value.If the meaning of 'COPY' literal object isn't clear, there really should be more of a description here...
- See Also:
COPY, Constant Field Values
-
MOVE_VALUE
public static final int MOVE_VALUE
The 'MOVE' literal value.If the meaning of 'MOVE' literal object isn't clear, there really should be more of a description here...
- See Also:
MOVE, Constant Field Values
-
-
Method Detail
-
values
public static DiffKind[] 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 (DiffKind c : DiffKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiffKind valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
public static DiffKind get(String literal)
Returns the 'Diff Kind' literal with the specified literal value.
-
getByName
public static DiffKind getByName(String name)
Returns the 'Diff Kind' literal with the specified name.
-
get
public static DiffKind get(int value)
Returns the 'Diff Kind' literal with the specified integer value.
-
getValue
public int getValue()
- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public String getLiteral()
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
-