blob: 4c9e8705c63f35506cff3f75a0b5f0d00368fcdf [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Based on ideas from Xtext, Xtend, Xcore
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - Initial implementation
*
*/
package org.eclipse.osbp.xtext.datamartdsl;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Value Scale Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.osbp.xtext.datamartdsl.DatamartDSLPackage#getValueScaleEnum()
* @model
* @generated
*/
public enum ValueScaleEnum implements Enumerator {
/**
* The '<em><b>AXIS</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS_VALUE
* @generated
* @ordered
*/
AXIS(0, "AXIS", "group1"),
/**
* The '<em><b>AXIS2</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS2_VALUE
* @generated
* @ordered
*/
AXIS2(0, "AXIS2", "group2"),
/**
* The '<em><b>AXIS3</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS3_VALUE
* @generated
* @ordered
*/
AXIS3(0, "AXIS3", "group3"),
/**
* The '<em><b>AXIS4</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS4_VALUE
* @generated
* @ordered
*/
AXIS4(0, "AXIS4", "group4"),
/**
* The '<em><b>AXIS5</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS5_VALUE
* @generated
* @ordered
*/
AXIS5(0, "AXIS5", "group5"),
/**
* The '<em><b>AXIS6</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS6_VALUE
* @generated
* @ordered
*/
AXIS6(0, "AXIS6", "group6"),
/**
* The '<em><b>AXIS7</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS7_VALUE
* @generated
* @ordered
*/
AXIS7(0, "AXIS7", "group7"),
/**
* The '<em><b>AXIS8</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS8_VALUE
* @generated
* @ordered
*/
AXIS8(0, "AXIS8", "group8"),
/**
* The '<em><b>AXIS9</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AXIS9_VALUE
* @generated
* @ordered
*/
AXIS9(0, "AXIS9", "group9");
/**
* The '<em><b>AXIS</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS
* @model literal="group1"
* @generated
* @ordered
*/
public static final int AXIS_VALUE = 0;
/**
* The '<em><b>AXIS2</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS2</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS2
* @model literal="group2"
* @generated
* @ordered
*/
public static final int AXIS2_VALUE = 0;
/**
* The '<em><b>AXIS3</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS3</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS3
* @model literal="group3"
* @generated
* @ordered
*/
public static final int AXIS3_VALUE = 0;
/**
* The '<em><b>AXIS4</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS4</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS4
* @model literal="group4"
* @generated
* @ordered
*/
public static final int AXIS4_VALUE = 0;
/**
* The '<em><b>AXIS5</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS5</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS5
* @model literal="group5"
* @generated
* @ordered
*/
public static final int AXIS5_VALUE = 0;
/**
* The '<em><b>AXIS6</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS6</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS6
* @model literal="group6"
* @generated
* @ordered
*/
public static final int AXIS6_VALUE = 0;
/**
* The '<em><b>AXIS7</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS7</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS7
* @model literal="group7"
* @generated
* @ordered
*/
public static final int AXIS7_VALUE = 0;
/**
* The '<em><b>AXIS8</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS8</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS8
* @model literal="group8"
* @generated
* @ordered
*/
public static final int AXIS8_VALUE = 0;
/**
* The '<em><b>AXIS9</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AXIS9</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AXIS9
* @model literal="group9"
* @generated
* @ordered
*/
public static final int AXIS9_VALUE = 0;
/**
* An array of all the '<em><b>Value Scale Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final ValueScaleEnum[] VALUES_ARRAY =
new ValueScaleEnum[] {
AXIS,
AXIS2,
AXIS3,
AXIS4,
AXIS5,
AXIS6,
AXIS7,
AXIS8,
AXIS9,
};
/**
* A public read-only list of all the '<em><b>Value Scale Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<ValueScaleEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Value Scale Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ValueScaleEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ValueScaleEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Value Scale Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ValueScaleEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ValueScaleEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Value Scale Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ValueScaleEnum get(int value) {
switch (value) {
case AXIS_VALUE: return AXIS;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private ValueScaleEnum(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //ValueScaleEnum