|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Nationality>
org.eclipse.emf.ecp.makeithappen.model.task.Nationality
public enum Nationality
A representation of the literals of the enumeration 'Nationality', and utility methods for working with them.
TaskPackage.getNationality()
Enum Constant Summary | |
---|---|
FRENCH
The 'French' literal object. |
|
GERMAN
The 'German' literal object. |
|
ITALIAN
The 'Italian' literal object. |
|
RUSSIAN
The 'Russian' literal object. |
|
SPANISH
The 'Spanish' literal object. |
|
UK
The 'UK' literal object. |
|
US
The 'US' literal object. |
Field Summary | |
---|---|
static int |
FRENCH_VALUE
The 'French' literal value. |
static int |
GERMAN_VALUE
The 'German' literal value. |
static int |
ITALIAN_VALUE
The 'Italian' literal value. |
static int |
RUSSIAN_VALUE
The 'Russian' literal value. |
static int |
SPANISH_VALUE
The 'Spanish' literal value. |
static int |
UK_VALUE
The 'UK' literal value. |
static int |
US_VALUE
The 'US' literal value. |
static List<Nationality> |
VALUES
A public read-only list of all the 'Nationality' enumerators. |
Method Summary | |
---|---|
static Nationality |
get(int value)
Returns the 'Nationality' literal with the specified integer value. |
static Nationality |
get(String literal)
Returns the 'Nationality' literal with the specified literal value. |
static Nationality |
getByName(String name)
Returns the 'Nationality' 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 Nationality |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Nationality[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Nationality GERMAN
GERMAN_VALUE
public static final Nationality FRENCH
FRENCH_VALUE
public static final Nationality UK
UK_VALUE
public static final Nationality US
US_VALUE
public static final Nationality SPANISH
SPANISH_VALUE
public static final Nationality ITALIAN
ITALIAN_VALUE
public static final Nationality RUSSIAN
RUSSIAN_VALUE
Field Detail |
---|
public static final int GERMAN_VALUE
If the meaning of 'German' literal object isn't clear, there really should be more of a description here...
GERMAN
,
Constant Field Valuespublic static final int FRENCH_VALUE
If the meaning of 'French' literal object isn't clear, there really should be more of a description here...
FRENCH
,
Constant Field Valuespublic static final int UK_VALUE
If the meaning of 'UK' literal object isn't clear, there really should be more of a description here...
UK
,
Constant Field Valuespublic static final int US_VALUE
If the meaning of 'US' literal object isn't clear, there really should be more of a description here...
US
,
Constant Field Valuespublic static final int SPANISH_VALUE
If the meaning of 'Spanish' literal object isn't clear, there really should be more of a description here...
SPANISH
,
Constant Field Valuespublic static final int ITALIAN_VALUE
If the meaning of 'Italian' literal object isn't clear, there really should be more of a description here...
ITALIAN
,
Constant Field Valuespublic static final int RUSSIAN_VALUE
If the meaning of 'Russian' literal object isn't clear, there really should be more of a description here...
RUSSIAN
,
Constant Field Valuespublic static final List<Nationality> VALUES
Method Detail |
---|
public static Nationality[] values()
for (Nationality c : Nationality.values()) System.out.println(c);
public static Nationality valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Nationality get(String literal)
public static Nationality getByName(String name)
public static Nationality 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
public String toString()
toString
in class Enum<Nationality>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |