Package org.eclipse.gmt.modisco.cobol
Enum COBOLUsageValue
- All Implemented Interfaces:
Serializable,Comparable<COBOLUsageValue>,java.lang.constant.Constable,org.eclipse.emf.common.util.Enumerator
public enum COBOLUsageValue extends Enum<COBOLUsageValue> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'COBOL Usage Value',
and utility methods for working with them.
- See Also:
CobolPackage.getCOBOLUsageValue()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description CUV_BINARYThe 'Cuv binary' literal object.CUV_DBCSThe 'Cuv dbcs' literal object.CUV_DISPLAYThe 'Cuv display' literal object.CUV_DOUBLEThe 'Cuv double' literal object.CUV_FLOATThe 'Cuv float' literal object.CUV_INDEXThe 'Cuv index' literal object.CUV_OBJECT_REFERENCEThe 'Cuv object Reference' literal object.CUV_PACKED_DECIMALThe 'Cuv packed Decimal' literal object.CUV_POINTERThe 'Cuv pointer' literal object.CUV_PROCEDURE_POINTERThe 'Cuv procedure Pointer' literal object. -
Field Summary
Fields Modifier and Type Field Description static intCUV_BINARY_VALUEThe 'Cuv binary' literal value.static intCUV_DBCS_VALUEThe 'Cuv dbcs' literal value.static intCUV_DISPLAY_VALUEThe 'Cuv display' literal value.static intCUV_DOUBLE_VALUEThe 'Cuv double' literal value.static intCUV_FLOAT_VALUEThe 'Cuv float' literal value.static intCUV_INDEX_VALUEThe 'Cuv index' literal value.static intCUV_OBJECT_REFERENCE_VALUEThe 'Cuv object Reference' literal value.static intCUV_PACKED_DECIMAL_VALUEThe 'Cuv packed Decimal' literal value.static intCUV_POINTER_VALUEThe 'Cuv pointer' literal value.static intCUV_PROCEDURE_POINTER_VALUEThe 'Cuv procedure Pointer' literal value.static List<COBOLUsageValue>VALUESA public read-only list of all the 'COBOL Usage Value' enumerators. -
Method Summary
Modifier and Type Method Description static COBOLUsageValueget(int value)Returns the 'COBOL Usage Value' literal with the specified integer value.static COBOLUsageValueget(String literal)Returns the 'COBOL Usage Value' literal with the specified literal value.static COBOLUsageValuegetByName(String name)Returns the 'COBOL Usage Value' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static COBOLUsageValuevalueOf(String name)Returns the enum constant of this type with the specified name.static COBOLUsageValue[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CUV_BINARY
The 'Cuv binary' literal object.- See Also:
CUV_BINARY_VALUE
-
CUV_DBCS
The 'Cuv dbcs' literal object.- See Also:
CUV_DBCS_VALUE
-
CUV_DOUBLE
The 'Cuv double' literal object.- See Also:
CUV_DOUBLE_VALUE
-
CUV_DISPLAY
The 'Cuv display' literal object.- See Also:
CUV_DISPLAY_VALUE
-
CUV_FLOAT
The 'Cuv float' literal object.- See Also:
CUV_FLOAT_VALUE
-
CUV_INDEX
The 'Cuv index' literal object.- See Also:
CUV_INDEX_VALUE
-
CUV_OBJECT_REFERENCE
The 'Cuv object Reference' literal object.- See Also:
CUV_OBJECT_REFERENCE_VALUE
-
CUV_PACKED_DECIMAL
The 'Cuv packed Decimal' literal object.- See Also:
CUV_PACKED_DECIMAL_VALUE
-
CUV_POINTER
The 'Cuv pointer' literal object.- See Also:
CUV_POINTER_VALUE
-
CUV_PROCEDURE_POINTER
The 'Cuv procedure Pointer' literal object.- See Also:
CUV_PROCEDURE_POINTER_VALUE
-
-
Field Details
-
CUV_BINARY_VALUE
public static final int CUV_BINARY_VALUEThe 'Cuv binary' literal value.- See Also:
CUV_BINARY, Constant Field Values
-
CUV_DBCS_VALUE
public static final int CUV_DBCS_VALUEThe 'Cuv dbcs' literal value.- See Also:
CUV_DBCS, Constant Field Values
-
CUV_DOUBLE_VALUE
public static final int CUV_DOUBLE_VALUEThe 'Cuv double' literal value.- See Also:
CUV_DOUBLE, Constant Field Values
-
CUV_DISPLAY_VALUE
public static final int CUV_DISPLAY_VALUEThe 'Cuv display' literal value.- See Also:
CUV_DISPLAY, Constant Field Values
-
CUV_FLOAT_VALUE
public static final int CUV_FLOAT_VALUEThe 'Cuv float' literal value.- See Also:
CUV_FLOAT, Constant Field Values
-
CUV_INDEX_VALUE
public static final int CUV_INDEX_VALUEThe 'Cuv index' literal value.- See Also:
CUV_INDEX, Constant Field Values
-
CUV_OBJECT_REFERENCE_VALUE
public static final int CUV_OBJECT_REFERENCE_VALUEThe 'Cuv object Reference' literal value.- See Also:
CUV_OBJECT_REFERENCE, Constant Field Values
-
CUV_PACKED_DECIMAL_VALUE
public static final int CUV_PACKED_DECIMAL_VALUEThe 'Cuv packed Decimal' literal value.- See Also:
CUV_PACKED_DECIMAL, Constant Field Values
-
CUV_POINTER_VALUE
public static final int CUV_POINTER_VALUEThe 'Cuv pointer' literal value.- See Also:
CUV_POINTER, Constant Field Values
-
CUV_PROCEDURE_POINTER_VALUE
public static final int CUV_PROCEDURE_POINTER_VALUEThe 'Cuv procedure Pointer' literal value.- See Also:
CUV_PROCEDURE_POINTER, Constant Field Values
-
VALUES
A public read-only list of all the 'COBOL Usage Value' 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 'COBOL Usage Value' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null.
-
getByName
Returns the 'COBOL Usage Value' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null.
-
get
Returns the 'COBOL Usage Value' 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<COBOLUsageValue>
-