public enum Parity extends Enum<Parity> implements org.eclipse.emf.common.util.Enumerator
CommonPackage.getParity()
Enum Constant and Description |
---|
EVEN
The 'EVEN' literal object.
|
NONE
The 'NONE' literal object.
|
ODD
The 'ODD' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
EVEN_VALUE
The 'EVEN' literal value.
|
static int |
NONE_VALUE
The 'NONE' literal value.
|
static int |
ODD_VALUE
The 'ODD' literal value.
|
static List<Parity> |
VALUES
A public read-only list of all the 'Parity' enumerators.
|
Modifier and Type | Method and Description |
---|---|
static Parity |
get(int value)
Returns the 'Parity' literal with the specified integer value.
|
static Parity |
get(String literal)
Returns the 'Parity' literal with the specified literal value.
|
static Parity |
getByName(String name)
Returns the 'Parity' 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 Parity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Parity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parity NONE
NONE_VALUE
public static final Parity EVEN
EVEN_VALUE
public static final int NONE_VALUE
If the meaning of 'NONE' literal object isn't clear, there really should be more of a description here...
NONE
,
Constant Field Valuespublic static final int EVEN_VALUE
If the meaning of 'EVEN' literal object isn't clear, there really should be more of a description here...
EVEN
,
Constant Field Valuespublic static final int ODD_VALUE
If the meaning of 'ODD' literal object isn't clear, there really should be more of a description here...
ODD
,
Constant Field Valuespublic static Parity[] values()
for (Parity c : Parity.values()) System.out.println(c);
public static Parity 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 Parity get(String literal)
public static Parity getByName(String name)
public static Parity get(int value)
public int getValue()
getValue
in interface org.eclipse.emf.common.util.Enumerator
public String getName()
getName
in interface org.eclipse.emf.common.util.Enumerator
public String getLiteral()
getLiteral
in interface org.eclipse.emf.common.util.Enumerator