public enum UnitNames extends java.lang.Enum<UnitNames> implements Enumerator
UnitsPackage.getUnitNames()| Enum Constant and Description |
|---|
BYTE
The 'BYTE' literal object.
|
METER
The 'METER' literal object.
|
SECOND
The 'SECOND' literal object.
|
UNITLESS
The 'UNITLESS' literal object.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_VALUE
The 'BYTE' literal value.
|
static java.lang.String |
copyright |
static int |
METER_VALUE
The 'METER' literal value.
|
static int |
SECOND_VALUE
The 'SECOND' literal value.
|
static int |
UNITLESS_VALUE
The 'UNITLESS' literal value.
|
static java.util.List<UnitNames> |
VALUES
A public read-only list of all the 'Unit Names' enumerators.
|
| Modifier and Type | Method and Description |
|---|---|
static UnitNames |
get(int value)
Returns the 'Unit Names' literal with the specified integer value.
|
static UnitNames |
get(java.lang.String literal)
Returns the 'Unit Names' literal with the specified literal value.
|
static UnitNames |
getByName(java.lang.String name)
Returns the 'Unit Names' literal with the specified name.
|
java.lang.String |
getLiteral() |
java.lang.String |
getName() |
int |
getValue() |
java.lang.String |
toString()
Returns the literal value of the enumerator, which is its string representation.
|
static UnitNames |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnitNames[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitNames UNITLESS
UNITLESS_VALUEpublic static final UnitNames BYTE
BYTE_VALUEpublic static final UnitNames SECOND
SECOND_VALUEpublic static final UnitNames METER
METER_VALUEpublic static final java.lang.String copyright
public static final int UNITLESS_VALUE
If the meaning of 'UNITLESS' literal object isn't clear, there really should be more of a description here...
UNITLESS,
Constant Field Valuespublic static final int BYTE_VALUE
If the meaning of 'BYTE' literal object isn't clear, there really should be more of a description here...
BYTE,
Constant Field Valuespublic static final int SECOND_VALUE
If the meaning of 'SECOND' literal object isn't clear, there really should be more of a description here...
SECOND,
Constant Field Valuespublic static final int METER_VALUE
If the meaning of 'METER' literal object isn't clear, there really should be more of a description here...
METER,
Constant Field Valuespublic static final java.util.List<UnitNames> VALUES
public static UnitNames[] values()
for (UnitNames c : UnitNames.values()) System.out.println(c);
public static UnitNames valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static UnitNames get(java.lang.String literal)
public static UnitNames getByName(java.lang.String name)
name - the name.null.public static UnitNames get(int value)
public int getValue()
getValue in interface Enumeratorpublic java.lang.String getName()
getName in interface Enumeratorpublic java.lang.String getLiteral()
getLiteral in interface Enumeratorpublic java.lang.String toString()
toString in class java.lang.Enum<UnitNames>