public enum DiscussionStatus extends Enum<DiscussionStatus> implements org.eclipse.emf.common.util.Enumerator
DoorsPackage.getDiscussionStatus()
Enum Constant and Description |
---|
CLOSED
The 'Closed' literal object.
|
OPEN
The 'Open' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
CLOSED_VALUE
The 'Closed' literal value.
|
static int |
OPEN_VALUE
The 'Open' literal value.
|
static List<DiscussionStatus> |
VALUES
A public read-only list of all the 'Discussion Status' enumerators.
|
Modifier and Type | Method and Description |
---|---|
static DiscussionStatus |
get(int value)
Returns the 'Discussion Status' literal with the specified integer value.
|
static DiscussionStatus |
get(String literal)
Returns the 'Discussion Status' literal with the specified literal value.
|
static DiscussionStatus |
getByName(String name)
Returns the 'Discussion Status' 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 DiscussionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiscussionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscussionStatus OPEN
OPEN_VALUE
public static final DiscussionStatus CLOSED
CLOSED_VALUE
public static final int OPEN_VALUE
OPEN
,
Constant Field Valuespublic static final int CLOSED_VALUE
CLOSED
,
Constant Field Valuespublic static final List<DiscussionStatus> VALUES
public static DiscussionStatus[] values()
for (DiscussionStatus c : DiscussionStatus.values()) System.out.println(c);
public static DiscussionStatus 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 DiscussionStatus get(String literal)
literal
- the literal.null
.public static DiscussionStatus getByName(String name)
name
- the name.null
.public static DiscussionStatus get(int value)
value
- the integer value.null
.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<DiscussionStatus>