public enum Scale extends Enum<Scale> implements Enumerator
MetricSpecPackage.getScale()
Enum Constant and Description |
---|
INTERVAL
The 'Interval' literal object.
|
NOMINAL
The 'Nominal' literal object.
|
ORDINAL
The 'Ordinal' literal object.
|
RATIO
The 'Ratio' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
INTERVAL_VALUE
The 'Interval' literal value.
|
static int |
NOMINAL_VALUE
The 'Nominal' literal value.
|
static int |
ORDINAL_VALUE
The 'Ordinal' literal value.
|
static int |
RATIO_VALUE
The 'Ratio' literal value.
|
static List<Scale> |
VALUES
A public read-only list of all the 'Scale' enumerators.
|
Modifier and Type | Method and Description |
---|---|
static Scale |
get(int value)
Returns the 'Scale' literal with the specified integer value.
|
static Scale |
get(String literal)
Returns the 'Scale' literal with the specified literal value.
|
static Scale |
getByName(String name)
Returns the 'Scale' literal with the specified name.
|
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString()
Returns the literal value of the enumerator, which is its string representation.
|
static Scale |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scale NOMINAL
NOMINAL_VALUE
public static final Scale ORDINAL
ORDINAL_VALUE
public static final Scale INTERVAL
INTERVAL_VALUE
public static final Scale RATIO
RATIO_VALUE
public static final int NOMINAL_VALUE
NOMINAL
,
Constant Field Valuespublic static final int ORDINAL_VALUE
ORDINAL
,
Constant Field Valuespublic static final int INTERVAL_VALUE
INTERVAL
,
Constant Field Valuespublic static final int RATIO_VALUE
RATIO
,
Constant Field Valuespublic static Scale[] values()
for (Scale c : Scale.values()) System.out.println(c);
public static Scale valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Scale get(String literal)
public static Scale getByName(String name)
public static Scale get(int value)
public int getValue()
getValue
in interface Enumerator
public String getName()
getName
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator