org.eclipse.etrice.core.room
Enum LiteralType

java.lang.Object
  extended by java.lang.Enum<LiteralType>
      extended by org.eclipse.etrice.core.room.LiteralType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LiteralType>

public enum LiteralType
extends java.lang.Enum<LiteralType>

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

See Also:
RoomPackage.getLiteralType()
EMF generated code
EMF model element

Enum Constant Summary
BOOL
          The 'BOOL' literal object.
CHAR
          The 'CHAR' literal object.
INT
          The 'INT' literal object.
REAL
          The 'REAL' literal object.
 
Field Summary
static int BOOL_VALUE
          The 'BOOL' literal value.
static int CHAR_VALUE
          The 'CHAR' literal value.
static int INT_VALUE
          The 'INT' literal value.
static int REAL_VALUE
          The 'REAL' literal value.
static java.util.List<LiteralType> VALUES
          A public read-only list of all the 'Literal Type' enumerators.
 
Method Summary
static LiteralType get(int value)
          Returns the 'Literal Type' literal with the specified integer value.
static LiteralType get(java.lang.String literal)
          Returns the 'Literal Type' literal with the specified literal value.
static LiteralType getByName(java.lang.String name)
          Returns the 'Literal Type' literal with the specified name.
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static LiteralType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LiteralType[] 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

BOOL

public static final LiteralType BOOL
The 'BOOL' literal object.

See Also:
BOOL_VALUE
EMF generated code
EMF ordered

INT

public static final LiteralType INT
The 'INT' literal object.

See Also:
INT_VALUE
EMF generated code
EMF ordered

REAL

public static final LiteralType REAL
The 'REAL' literal object.

See Also:
REAL_VALUE
EMF generated code
EMF ordered

CHAR

public static final LiteralType CHAR
The 'CHAR' literal object.

See Also:
CHAR_VALUE
EMF generated code
EMF ordered
Field Detail

BOOL_VALUE

public static final int BOOL_VALUE
The 'BOOL' literal value.

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

See Also:
BOOL, Constant Field Values
EMF generated code
EMF model element
literal="ptBoolean"
EMF ordered

INT_VALUE

public static final int INT_VALUE
The 'INT' literal value.

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

See Also:
INT, Constant Field Values
EMF generated code
EMF model element
literal="ptInteger"
EMF ordered

REAL_VALUE

public static final int REAL_VALUE
The 'REAL' literal value.

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

See Also:
REAL, Constant Field Values
EMF generated code
EMF model element
literal="ptReal"
EMF ordered

CHAR_VALUE

public static final int CHAR_VALUE
The 'CHAR' literal value.

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

See Also:
CHAR, Constant Field Values
EMF generated code
EMF model element
literal="ptCharacter"
EMF ordered

VALUES

public static final java.util.List<LiteralType> VALUES
A public read-only list of all the 'Literal Type' enumerators.

EMF generated code
Method Detail

values

public static LiteralType[] 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 (LiteralType c : LiteralType.values())
    System.out.println(c);

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

valueOf

public static LiteralType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

get

public static LiteralType get(java.lang.String literal)
Returns the 'Literal Type' literal with the specified literal value.

EMF generated code

getByName

public static LiteralType getByName(java.lang.String name)
Returns the 'Literal Type' literal with the specified name.

EMF generated code

get

public static LiteralType get(int value)
Returns the 'Literal Type' literal with the specified integer value.

EMF generated code

getValue

public int getValue()

EMF generated code

getName

public java.lang.String getName()

EMF generated code

getLiteral

public java.lang.String getLiteral()

EMF generated code

toString

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

Overrides:
toString in class java.lang.Enum<LiteralType>
EMF generated code