fr.tpt.aadl.annex.behavior.aadlba
Enum DataRepresentation

java.lang.Object
  extended by java.lang.Enum<DataRepresentation>
      extended by fr.tpt.aadl.annex.behavior.aadlba.DataRepresentation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DataRepresentation>, org.eclipse.emf.common.util.Enumerator

public enum DataRepresentation
extends java.lang.Enum<DataRepresentation>
implements org.eclipse.emf.common.util.Enumerator

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

See Also:
AadlBaPackage.getDataRepresentation()

Enum Constant Summary
ARRAY
          The 'Array' literal object
BOOLEAN
          The 'Boolean' literal object
CHARACTER
          The 'Character' literal object
ENUM
          The 'Enum' literal object
FIXED
          The 'Fixed' literal object
FLOAT
          The 'Float' literal object
INTEGER
          The 'Integer' literal object
STRING
          The 'String' literal object
STRUCT
          The 'Struct' literal object
UNION
          The 'Union' literal object
UNKNOWN
          The 'Unknown' literal object
 
Field Summary
static int ARRAY_VALUE
          The 'Array' literal value
static int BOOLEAN_VALUE
          The 'Boolean' literal value
static int CHARACTER_VALUE
          The 'Character' literal value
static int ENUM_VALUE
          The 'Enum' literal value
static int FIXED_VALUE
          The 'Fixed' literal value
static int FLOAT_VALUE
          The 'Float' literal value
static int INTEGER_VALUE
          The 'Integer' literal value
static int STRING_VALUE
          The 'String' literal value
static int STRUCT_VALUE
          The 'Struct' literal value
static int UNION_VALUE
          The 'Union' literal value
static int UNKNOWN_VALUE
          The 'Unknown' literal value
static java.util.List<DataRepresentation> VALUES
          A public read-only list of all the 'Data Representation' enumerators
 
Method Summary
static DataRepresentation get(int value)
          Returns the 'Data Representation' literal with the specified integer value
static DataRepresentation get(java.lang.String literal)
          Returns the 'Data Representation' literal with the specified literal value
static DataRepresentation getByName(java.lang.String name)
          Returns the 'Data Representation' 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 DataRepresentation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataRepresentation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final DataRepresentation UNKNOWN
The 'Unknown' literal object.

See Also:
UNKNOWN_VALUE

ARRAY

public static final DataRepresentation ARRAY
The 'Array' literal object.

See Also:
ARRAY_VALUE

BOOLEAN

public static final DataRepresentation BOOLEAN
The 'Boolean' literal object.

See Also:
BOOLEAN_VALUE

CHARACTER

public static final DataRepresentation CHARACTER
The 'Character' literal object.

See Also:
CHARACTER_VALUE

ENUM

public static final DataRepresentation ENUM
The 'Enum' literal object.

See Also:
ENUM_VALUE

FIXED

public static final DataRepresentation FIXED
The 'Fixed' literal object.

See Also:
FIXED_VALUE

FLOAT

public static final DataRepresentation FLOAT
The 'Float' literal object.

See Also:
FLOAT_VALUE

INTEGER

public static final DataRepresentation INTEGER
The 'Integer' literal object.

See Also:
INTEGER_VALUE

STRING

public static final DataRepresentation STRING
The 'String' literal object.

See Also:
STRING_VALUE

STRUCT

public static final DataRepresentation STRUCT
The 'Struct' literal object.

See Also:
STRUCT_VALUE

UNION

public static final DataRepresentation UNION
The 'Union' literal object.

See Also:
UNION_VALUE
Field Detail

UNKNOWN_VALUE

public static final int UNKNOWN_VALUE
The 'Unknown' literal value.

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

See Also:
UNKNOWN, Constant Field Values

ARRAY_VALUE

public static final int ARRAY_VALUE
The 'Array' literal value.

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

See Also:
ARRAY, Constant Field Values

BOOLEAN_VALUE

public static final int BOOLEAN_VALUE
The 'Boolean' literal value.

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

See Also:
BOOLEAN, Constant Field Values

CHARACTER_VALUE

public static final int CHARACTER_VALUE
The 'Character' literal value.

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

See Also:
CHARACTER, Constant Field Values

ENUM_VALUE

public static final int ENUM_VALUE
The 'Enum' literal value.

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

See Also:
ENUM, Constant Field Values

FIXED_VALUE

public static final int FIXED_VALUE
The 'Fixed' literal value.

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

See Also:
FIXED, Constant Field Values

FLOAT_VALUE

public static final int FLOAT_VALUE
The 'Float' literal value.

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

See Also:
FLOAT, Constant Field Values

INTEGER_VALUE

public static final int INTEGER_VALUE
The 'Integer' literal value.

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

See Also:
INTEGER, Constant Field Values

STRING_VALUE

public static final int STRING_VALUE
The 'String' literal value.

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

See Also:
STRING, Constant Field Values

STRUCT_VALUE

public static final int STRUCT_VALUE
The 'Struct' literal value.

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

See Also:
STRUCT, Constant Field Values

UNION_VALUE

public static final int UNION_VALUE
The 'Union' literal value.

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

See Also:
UNION, Constant Field Values

VALUES

public static final java.util.List<DataRepresentation> VALUES
A public read-only list of all the 'Data Representation' enumerators.

Method Detail

values

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

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

valueOf

public static DataRepresentation 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 DataRepresentation get(java.lang.String literal)
Returns the 'Data Representation' literal with the specified literal value.


getByName

public static DataRepresentation getByName(java.lang.String name)
Returns the 'Data Representation' literal with the specified name.


get

public static DataRepresentation get(int value)
Returns the 'Data Representation' literal with the specified integer value.


getValue

public int getValue()

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

getName

public java.lang.String getName()

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

getLiteral

public java.lang.String getLiteral()

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

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<DataRepresentation>