/** */ package rba.core; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * * A representation of the literals of the enumeration 'Expression Type', * and utility methods for working with them. * * * * * @see rba.core.RBACorePackage#getExpressionType() * @model * @generated */ public enum ExpressionType implements Enumerator { /** * The 'VALUE' literal object. * * * @see #VALUE_VALUE * @generated * @ordered */ VALUE(0, "VALUE", "VALUE"), /** * The 'BOOLEAN' literal object. * * * @see #BOOLEAN_VALUE * @generated * @ordered */ BOOLEAN(1, "BOOLEAN", "BOOLEAN"), /** * The 'AREA' literal object. * * * @see #AREA_VALUE * @generated * @ordered */ AREA(2, "AREA", "AREA"), /** * The 'CONTENT' literal object. * * * @see #CONTENT_VALUE * @generated * @ordered */ CONTENT(3, "CONTENT", "CONTENT"), /** * The 'SET OF AREA' literal object. * * * @see #SET_OF_AREA_VALUE * @generated * @ordered */ SET_OF_AREA(4, "SET_OF_AREA", "SET_OF_AREA"), /** * The 'SET OF CONTENT' literal object. * * * @see #SET_OF_CONTENT_VALUE * @generated * @ordered */ SET_OF_CONTENT(5, "SET_OF_CONTENT", "SET_OF_CONTENT"), /** * The 'LAMBDA' literal object. * * * @see #LAMBDA_VALUE * @generated * @ordered */ LAMBDA(6, "LAMBDA", "LAMBDA"), /** * The 'SCENE' literal object. * * * @see #SCENE_VALUE * @generated * @ordered */ SCENE(7, "SCENE", "SCENE"), /** * The 'ZONE' literal object. * * * @see #ZONE_VALUE * @generated * @ordered */ ZONE(8, "ZONE", "ZONE"), /** * The 'SET OF ZONE' literal object. * * * @see #SET_OF_ZONE_VALUE * @generated * @ordered */ SET_OF_ZONE(9, "SET_OF_ZONE", "SET_OF_ZONE"), /** * The 'SOUND' literal object. * * * @see #SOUND_VALUE * @generated * @ordered */ SOUND(10, "SOUND", "SOUND"), /** * The 'SET OF SOUND' literal object. * * * @see #SET_OF_SOUND_VALUE * @generated * @ordered */ SET_OF_SOUND(11, "SET_OF_SOUND", "SET_OF_SOUND"), /** * The 'PROPERTY' literal object. * * * @see #PROPERTY_VALUE * @generated * @ordered */ PROPERTY(14, "PROPERTY", "PROPERTY"), /** * The 'CONTENT STATE' literal object. * * * @see #CONTENT_STATE_VALUE * @generated * @ordered */ CONTENT_STATE(17, "CONTENT_STATE", "CONTENT_STATE"), /** * The 'ENUM' literal object. * * * @see #ENUM_VALUE * @generated * @ordered */ ENUM(21, "ENUM", "ENUM"), /** * The 'NULL' literal object. * * * @see #NULL_VALUE * @generated * @ordered */ NULL(23, "NULL", "NULL"); /** * The 'VALUE' literal value. * *
* If the meaning of 'VALUE' literal object isn't clear, * there really should be more of a description here... *
* * @see #VALUE * @model * @generated * @ordered */ public static final int VALUE_VALUE = 0; /** * The 'BOOLEAN' literal value. * ** If the meaning of 'BOOLEAN' literal object isn't clear, * there really should be more of a description here... *
* * @see #BOOLEAN * @model * @generated * @ordered */ public static final int BOOLEAN_VALUE = 1; /** * The 'AREA' literal value. * ** If the meaning of 'AREA' literal object isn't clear, * there really should be more of a description here... *
* * @see #AREA * @model * @generated * @ordered */ public static final int AREA_VALUE = 2; /** * The 'CONTENT' literal value. * ** If the meaning of 'CONTENT' literal object isn't clear, * there really should be more of a description here... *
* * @see #CONTENT * @model * @generated * @ordered */ public static final int CONTENT_VALUE = 3; /** * The 'SET OF AREA' literal value. * ** If the meaning of 'SET OF AREA' literal object isn't clear, * there really should be more of a description here... *
* * @see #SET_OF_AREA * @model * @generated * @ordered */ public static final int SET_OF_AREA_VALUE = 4; /** * The 'SET OF CONTENT' literal value. * ** If the meaning of 'SET OF CONTENT' literal object isn't clear, * there really should be more of a description here... *
* * @see #SET_OF_CONTENT * @model * @generated * @ordered */ public static final int SET_OF_CONTENT_VALUE = 5; /** * The 'LAMBDA' literal value. * ** If the meaning of 'LAMBDA' literal object isn't clear, * there really should be more of a description here... *
* * @see #LAMBDA * @model * @generated * @ordered */ public static final int LAMBDA_VALUE = 6; /** * The 'SCENE' literal value. * ** If the meaning of 'SCENE' literal object isn't clear, * there really should be more of a description here... *
* * @see #SCENE * @model * @generated * @ordered */ public static final int SCENE_VALUE = 7; /** * The 'ZONE' literal value. * ** If the meaning of 'ZONE' literal object isn't clear, * there really should be more of a description here... *
* * @see #ZONE * @model * @generated * @ordered */ public static final int ZONE_VALUE = 8; /** * The 'SET OF ZONE' literal value. * ** If the meaning of 'SET OF ZONE' literal object isn't clear, * there really should be more of a description here... *
* * @see #SET_OF_ZONE * @model * @generated * @ordered */ public static final int SET_OF_ZONE_VALUE = 9; /** * The 'SOUND' literal value. * ** If the meaning of 'SOUND' literal object isn't clear, * there really should be more of a description here... *
* * @see #SOUND * @model * @generated * @ordered */ public static final int SOUND_VALUE = 10; /** * The 'SET OF SOUND' literal value. * ** If the meaning of 'SET OF SOUND' literal object isn't clear, * there really should be more of a description here... *
* * @see #SET_OF_SOUND * @model * @generated * @ordered */ public static final int SET_OF_SOUND_VALUE = 11; /** * The 'PROPERTY' literal value. * ** If the meaning of 'PROPERTY' literal object isn't clear, * there really should be more of a description here... *
* * @see #PROPERTY * @model * @generated * @ordered */ public static final int PROPERTY_VALUE = 14; /** * The 'CONTENT STATE' literal value. * ** If the meaning of 'CONTENT STATE' literal object isn't clear, * there really should be more of a description here... *
* * @see #CONTENT_STATE * @model * @generated * @ordered */ public static final int CONTENT_STATE_VALUE = 17; /** * The 'ENUM' literal value. * ** If the meaning of 'ENUM' literal object isn't clear, * there really should be more of a description here... *
* * @see #ENUM * @model * @generated * @ordered */ public static final int ENUM_VALUE = 21; /** * The 'NULL' literal value. * ** If the meaning of 'NULL' literal object isn't clear, * there really should be more of a description here... *
* * @see #NULL * @model * @generated * @ordered */ public static final int NULL_VALUE = 23; /** * An array of all the 'Expression Type' enumerators. * * * @generated */ private static final ExpressionType[] VALUES_ARRAY = new ExpressionType[] { VALUE, BOOLEAN, AREA, CONTENT, SET_OF_AREA, SET_OF_CONTENT, LAMBDA, SCENE, ZONE, SET_OF_ZONE, SOUND, SET_OF_SOUND, PROPERTY, CONTENT_STATE, ENUM, NULL, }; /** * A public read-only list of all the 'Expression Type' enumerators. * * * @generated */ public static final Listnull
.
* @generated
*/
public static ExpressionType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ExpressionType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Expression Type' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static ExpressionType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ExpressionType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Expression Type' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static ExpressionType get(int value) {
switch (value) {
case VALUE_VALUE:
return VALUE;
case BOOLEAN_VALUE:
return BOOLEAN;
case AREA_VALUE:
return AREA;
case CONTENT_VALUE:
return CONTENT;
case SET_OF_AREA_VALUE:
return SET_OF_AREA;
case SET_OF_CONTENT_VALUE:
return SET_OF_CONTENT;
case LAMBDA_VALUE:
return LAMBDA;
case SCENE_VALUE:
return SCENE;
case ZONE_VALUE:
return ZONE;
case SET_OF_ZONE_VALUE:
return SET_OF_ZONE;
case SOUND_VALUE:
return SOUND;
case SET_OF_SOUND_VALUE:
return SET_OF_SOUND;
case PROPERTY_VALUE:
return PROPERTY;
case CONTENT_STATE_VALUE:
return CONTENT_STATE;
case ENUM_VALUE:
return ENUM;
case NULL_VALUE:
return NULL;
}
return null;
}
/**
*
*
* @generated
*/
private final int value;
/**
*
*
* @generated
*/
private final String name;
/**
*
*
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
*
*
* @generated
*/
private ExpressionType(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
*
*
* @generated
*/
public int getValue() {
return value;
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
*
*
* @generated
*/
@Override
public String toString() {
return literal;
}
} //ExpressionType