|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Gender>
org.eclipse.emf.ecp.makeithappen.model.task.Gender
public enum Gender
A representation of the literals of the enumeration 'Gender', and utility methods for working with them.
TaskPackage.getGender()
Enum Constant Summary | |
---|---|
FEMALE
The 'Female' literal object. |
|
MALE
The 'Male' literal object. |
Field Summary | |
---|---|
static int |
FEMALE_VALUE
The 'Female' literal value. |
static int |
MALE_VALUE
The 'Male' literal value. |
static List<Gender> |
VALUES
A public read-only list of all the 'Gender' enumerators. |
Method Summary | |
---|---|
static Gender |
get(int value)
Returns the 'Gender' literal with the specified integer value. |
static Gender |
get(String literal)
Returns the 'Gender' literal with the specified literal value. |
static Gender |
getByName(String name)
Returns the 'Gender' 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 Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Gender[] |
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 Gender MALE
MALE_VALUE
public static final Gender FEMALE
FEMALE_VALUE
Field Detail |
---|
public static final int MALE_VALUE
If the meaning of 'Male' literal object isn't clear, there really should be more of a description here...
MALE
,
Constant Field Valuespublic static final int FEMALE_VALUE
If the meaning of 'Female' literal object isn't clear, there really should be more of a description here...
FEMALE
,
Constant Field Valuespublic static final List<Gender> VALUES
Method Detail |
---|
public static Gender[] values()
for (Gender c : Gender.values()) System.out.println(c);
public static Gender 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 Gender get(String literal)
public static Gender getByName(String name)
public static Gender 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<Gender>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |