org.eclipse.gmf.codegen.gmfgen
Enum RulerUnits

java.lang.Object
  extended by java.lang.Enum<RulerUnits>
      extended by org.eclipse.gmf.codegen.gmfgen.RulerUnits
All Implemented Interfaces:
Serializable, Comparable<RulerUnits>, org.eclipse.emf.common.util.Enumerator

public enum RulerUnits
extends Enum<RulerUnits>
implements org.eclipse.emf.common.util.Enumerator

A representation of the literals of the enumeration 'Ruler Units', and utility methods for working with them.

See Also:
GMFGenPackage.getRulerUnits()
Generated
Model Properties:

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

INCHES_LITERAL

public static final RulerUnits INCHES_LITERAL
The 'INCHES' literal object.

See Also:
INCHES
Generated
Ordered

CENTIMETERS_LITERAL

public static final RulerUnits CENTIMETERS_LITERAL
The 'CENTIMETERS' literal object.

See Also:
CENTIMETERS
Generated
Ordered

PIXELS_LITERAL

public static final RulerUnits PIXELS_LITERAL
The 'PIXELS' literal object.

See Also:
PIXELS
Generated
Ordered
Field Detail

INCHES

public static final int INCHES
The 'INCHES' literal value.

If the meaning of 'Inches' literal object isn't clear, there really should be more of a description here...

See Also:
INCHES_LITERAL, Constant Field Values
Generated
Ordered
Model Properties:

CENTIMETERS

public static final int CENTIMETERS
The 'CENTIMETERS' literal value.

If the meaning of 'Centimeters' literal object isn't clear, there really should be more of a description here...

See Also:
CENTIMETERS_LITERAL, Constant Field Values
Generated
Ordered
Model Properties:

PIXELS

public static final int PIXELS
The 'PIXELS' literal value.

If the meaning of 'Pixels' literal object isn't clear, there really should be more of a description here...

See Also:
PIXELS_LITERAL, Constant Field Values
Generated
Ordered
Model Properties:

VALUES

public static final List<RulerUnits> VALUES
A public read-only list of all the 'Ruler Units' enumerators.

Generated
Method Detail

values

public static RulerUnits[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RulerUnits c : RulerUnits.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RulerUnits valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public static RulerUnits get(String literal)
Returns the 'Ruler Units' literal with the specified literal value.

Generated

getByName

public static RulerUnits getByName(String name)
Returns the 'Ruler Units' literal with the specified name.

Generated

get

public static RulerUnits get(int value)
Returns the 'Ruler Units' literal with the specified integer value.

Generated

getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator
Generated

getName

public String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator
Generated

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator
Generated

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<RulerUnits>
Generated


Copyright © 2012. All Rights Reserved.