Enum StorableKind
- All Implemented Interfaces:
Serializable,Comparable<StorableKind>,java.lang.constant.Constable,org.eclipse.emf.common.util.Enumerator
public enum StorableKind extends Enum<StorableKind> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Storable Kind',
and utility methods for working with them.
- See Also:
CodePackage.getStorableKind()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static intEXTERNAL_VALUEThe 'External' literal value.static intGLOBAL_VALUEThe 'Global' literal value.static intLOCAL_VALUEThe 'Local' literal value.static intREGISTER_VALUEThe 'Register' literal value.static intSTATIC_VALUEThe 'Static' literal value.static intUNKNOWN_VALUEThe 'Unknown' literal value.static List<StorableKind>VALUESA public read-only list of all the 'Storable Kind' enumerators. -
Method Summary
Modifier and Type Method Description static StorableKindget(int value)Returns the 'Storable Kind' literal with the specified integer value.static StorableKindget(String literal)Returns the 'Storable Kind' literal with the specified literal value.static StorableKindgetByName(String name)Returns the 'Storable Kind' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static StorableKindvalueOf(String name)Returns the enum constant of this type with the specified name.static StorableKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GLOBAL
The 'Global' literal object.- See Also:
GLOBAL_VALUE
-
LOCAL
The 'Local' literal object.- See Also:
LOCAL_VALUE
-
STATIC
The 'Static' literal object.- See Also:
STATIC_VALUE
-
EXTERNAL
The 'External' literal object.- See Also:
EXTERNAL_VALUE
-
REGISTER
The 'Register' literal object.- See Also:
REGISTER_VALUE
-
UNKNOWN
The 'Unknown' literal object.- See Also:
UNKNOWN_VALUE
-
-
Field Details
-
GLOBAL_VALUE
public static final int GLOBAL_VALUEThe 'Global' literal value.- See Also:
GLOBAL, Constant Field Values
-
LOCAL_VALUE
public static final int LOCAL_VALUEThe 'Local' literal value.- See Also:
LOCAL, Constant Field Values
-
STATIC_VALUE
public static final int STATIC_VALUEThe 'Static' literal value.- See Also:
STATIC, Constant Field Values
-
EXTERNAL_VALUE
public static final int EXTERNAL_VALUEThe 'External' literal value.- See Also:
EXTERNAL, Constant Field Values
-
REGISTER_VALUE
public static final int REGISTER_VALUEThe 'Register' literal value.- See Also:
REGISTER, Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe 'Unknown' literal value.- See Also:
UNKNOWN, Constant Field Values
-
VALUES
A public read-only list of all the 'Storable Kind' enumerators.
-
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns the 'Storable Kind' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null.
-
getByName
Returns the 'Storable Kind' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null.
-
get
Returns the 'Storable Kind' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null.
-
getValue
public int getValue()- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toStringin classEnum<StorableKind>
-