|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RulerUnits>
org.eclipse.gmf.codegen.gmfgen.RulerUnits
public enum RulerUnits
A representation of the literals of the enumeration 'Ruler Units', and utility methods for working with them.
GMFGenPackage.getRulerUnits()
Enum Constant Summary | |
---|---|
CENTIMETERS_LITERAL
The 'CENTIMETERS' literal object. |
|
INCHES_LITERAL
The 'INCHES' literal object. |
|
PIXELS_LITERAL
The 'PIXELS' literal object. |
Field Summary | |
---|---|
static int |
CENTIMETERS
The 'CENTIMETERS' literal value. |
static int |
INCHES
The 'INCHES' literal value. |
static int |
PIXELS
The 'PIXELS' literal value. |
static List<RulerUnits> |
VALUES
A public read-only list of all the 'Ruler Units' enumerators. |
Method Summary | |
---|---|
static RulerUnits |
get(int value)
Returns the 'Ruler Units' literal with the specified integer value. |
static RulerUnits |
get(String literal)
Returns the 'Ruler Units' literal with the specified literal value. |
static RulerUnits |
getByName(String name)
Returns the 'Ruler Units' 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 RulerUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RulerUnits[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RulerUnits INCHES_LITERAL
INCHES
public static final RulerUnits CENTIMETERS_LITERAL
CENTIMETERS
public static final RulerUnits PIXELS_LITERAL
PIXELS
Field Detail |
---|
public static final int INCHES
If the meaning of 'Inches' literal object isn't clear, there really should be more of a description here...
INCHES_LITERAL
,
Constant Field Valuespublic static final int CENTIMETERS
If the meaning of 'Centimeters' literal object isn't clear, there really should be more of a description here...
CENTIMETERS_LITERAL
,
Constant Field Valuespublic static final int PIXELS
If the meaning of 'Pixels' literal object isn't clear, there really should be more of a description here...
PIXELS_LITERAL
,
Constant Field Valuespublic static final List<RulerUnits> VALUES
Method Detail |
---|
public static RulerUnits[] values()
for (RulerUnits c : RulerUnits.values()) System.out.println(c);
public static RulerUnits 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 RulerUnits get(String literal)
public static RulerUnits getByName(String name)
public static RulerUnits 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<RulerUnits>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |