|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<USState> org.eclipse.emf.test.models.customer.USState
public enum USState
A representation of the literals of the enumeration 'US State', and utility methods for working with them.
CustomerPackage.getUSState()
Enum Constant Summary | |
---|---|
AK
The 'AK' literal object |
|
AL
The 'AL' literal object |
|
AR
The 'AR' literal object |
Field Summary | |
---|---|
static int |
AK_VALUE
The 'AK' literal value |
static int |
AL_VALUE
The 'AL' literal value |
static int |
AR_VALUE
The 'AR' literal value |
static java.util.List<USState> |
VALUES
A public read-only list of all the 'US State' enumerators |
Method Summary | |
---|---|
static USState |
get(int value)
Returns the 'US State' literal with the specified integer value |
static USState |
get(java.lang.String literal)
Returns the 'US State' literal with the specified literal value |
static USState |
getByName(java.lang.String name)
Returns the 'US State' 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 USState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static USState[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final USState AK
AK_VALUE
public static final USState AL
AL_VALUE
public static final USState AR
AR_VALUE
Field Detail |
---|
public static final int AK_VALUE
If the meaning of 'AK' literal object isn't clear, there really should be more of a description here...
AK
,
Constant Field Valuespublic static final int AL_VALUE
If the meaning of 'AL' literal object isn't clear, there really should be more of a description here...
AL
,
Constant Field Valuespublic static final int AR_VALUE
If the meaning of 'AR' literal object isn't clear, there really should be more of a description here...
AR
,
Constant Field Valuespublic static final java.util.List<USState> VALUES
Method Detail |
---|
public static final USState[] values()
for(USState c : USState.values()) System.out.println(c);
public static USState 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 namepublic static USState get(java.lang.String literal)
public static USState getByName(java.lang.String name)
public static USState get(int value)
public int getValue()
getValue
in interface Enumerator
public java.lang.String getName()
getName
in interface Enumerator
public java.lang.String getLiteral()
getLiteral
in interface Enumerator
public java.lang.String toString()
toString
in class java.lang.Enum<USState>
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |