public enum DogBreed extends Enum<DogBreed> implements org.eclipse.emf.common.util.Enumerator
FamiliesPackage.getDogBreed()| Enum Constant and Description |
|---|
LABRADOR
The 'Labrador' literal object.
|
POODLE
The 'Poodle' literal object.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
LABRADOR_VALUE
The 'Labrador' literal value.
|
static int |
POODLE_VALUE
The 'Poodle' literal value.
|
static List<DogBreed> |
VALUES
A public read-only list of all the 'Dog Breed' enumerators.
|
| Modifier and Type | Method and Description |
|---|---|
static DogBreed |
get(int value)
Returns the 'Dog Breed' literal with the specified integer value.
|
static DogBreed |
get(String literal)
Returns the 'Dog Breed' literal with the specified literal value.
|
static DogBreed |
getByName(String name)
Returns the 'Dog Breed' 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 DogBreed |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DogBreed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DogBreed POODLE
POODLE_VALUEpublic static final DogBreed LABRADOR
LABRADOR_VALUEpublic static final int POODLE_VALUE
If the meaning of 'Poodle' literal object isn't clear, there really should be more of a description here...
POODLE,
Constant Field Valuespublic static final int LABRADOR_VALUE
If the meaning of 'Labrador' literal object isn't clear, there really should be more of a description here...
LABRADOR,
Constant Field Valuespublic static DogBreed[] values()
for (DogBreed c : DogBreed.values()) System.out.println(c);
public static DogBreed 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 DogBreed get(String literal)
public static DogBreed getByName(String name)
public static DogBreed get(int value)
public int getValue()
getValue in interface org.eclipse.emf.common.util.Enumeratorpublic String getName()
getName in interface org.eclipse.emf.common.util.Enumeratorpublic String getLiteral()
getLiteral in interface org.eclipse.emf.common.util.EnumeratorCopyright © 2020. All rights reserved.