| /** |
| */ |
| package org.hl7.fhir; |
| |
| import java.lang.String; |
| |
| 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>Observation Data Type List</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.hl7.fhir.FhirPackage#getObservationDataTypeList() |
| * @model extendedMetaData="name='ObservationDataType-list'" |
| * @generated |
| */ |
| public enum ObservationDataTypeList implements Enumerator { |
| /** |
| * The '<em><b>Quantity</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #QUANTITY_VALUE |
| * @generated |
| * @ordered |
| */ |
| QUANTITY(0, "Quantity", "Quantity"), |
| |
| /** |
| * The '<em><b>Codeable Concept</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #CODEABLE_CONCEPT_VALUE |
| * @generated |
| * @ordered |
| */ |
| CODEABLE_CONCEPT(1, "CodeableConcept", "CodeableConcept"), |
| |
| /** |
| * The '<em><b>String</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #STRING_VALUE |
| * @generated |
| * @ordered |
| */ |
| STRING(2, "string", "string"), |
| |
| /** |
| * The '<em><b>Boolean</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #BOOLEAN_VALUE |
| * @generated |
| * @ordered |
| */ |
| BOOLEAN(3, "boolean", "boolean"), |
| |
| /** |
| * The '<em><b>Integer</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #INTEGER_VALUE |
| * @generated |
| * @ordered |
| */ |
| INTEGER(4, "integer", "integer"), |
| |
| /** |
| * The '<em><b>Range</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #RANGE_VALUE |
| * @generated |
| * @ordered |
| */ |
| RANGE(5, "Range", "Range"), |
| |
| /** |
| * The '<em><b>Ratio</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #RATIO_VALUE |
| * @generated |
| * @ordered |
| */ |
| RATIO(6, "Ratio", "Ratio"), |
| |
| /** |
| * The '<em><b>Sampled Data</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #SAMPLED_DATA_VALUE |
| * @generated |
| * @ordered |
| */ |
| SAMPLED_DATA(7, "SampledData", "SampledData"), |
| |
| /** |
| * The '<em><b>Time</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #TIME_VALUE |
| * @generated |
| * @ordered |
| */ |
| TIME(8, "time", "time"), |
| |
| /** |
| * The '<em><b>Date Time</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #DATE_TIME_VALUE |
| * @generated |
| * @ordered |
| */ |
| DATE_TIME(9, "dateTime", "dateTime"), |
| |
| /** |
| * The '<em><b>Period</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #PERIOD_VALUE |
| * @generated |
| * @ordered |
| */ |
| PERIOD(10, "Period", "Period"); |
| |
| /** |
| * The '<em><b>Quantity</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Quantity |
| * <!-- end-model-doc --> |
| * @see #QUANTITY |
| * @model name="Quantity" |
| * @generated |
| * @ordered |
| */ |
| public static final int QUANTITY_VALUE = 0; |
| |
| /** |
| * The '<em><b>Codeable Concept</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * CodeableConcept |
| * <!-- end-model-doc --> |
| * @see #CODEABLE_CONCEPT |
| * @model name="CodeableConcept" |
| * @generated |
| * @ordered |
| */ |
| public static final int CODEABLE_CONCEPT_VALUE = 1; |
| |
| /** |
| * The '<em><b>String</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * string |
| * <!-- end-model-doc --> |
| * @see #STRING |
| * @model name="string" |
| * @generated |
| * @ordered |
| */ |
| public static final int STRING_VALUE = 2; |
| |
| /** |
| * The '<em><b>Boolean</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * boolean |
| * <!-- end-model-doc --> |
| * @see #BOOLEAN |
| * @model name="boolean" |
| * @generated |
| * @ordered |
| */ |
| public static final int BOOLEAN_VALUE = 3; |
| |
| /** |
| * The '<em><b>Integer</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * integer |
| * <!-- end-model-doc --> |
| * @see #INTEGER |
| * @model name="integer" |
| * @generated |
| * @ordered |
| */ |
| public static final int INTEGER_VALUE = 4; |
| |
| /** |
| * The '<em><b>Range</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Range |
| * <!-- end-model-doc --> |
| * @see #RANGE |
| * @model name="Range" |
| * @generated |
| * @ordered |
| */ |
| public static final int RANGE_VALUE = 5; |
| |
| /** |
| * The '<em><b>Ratio</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Ratio |
| * <!-- end-model-doc --> |
| * @see #RATIO |
| * @model name="Ratio" |
| * @generated |
| * @ordered |
| */ |
| public static final int RATIO_VALUE = 6; |
| |
| /** |
| * The '<em><b>Sampled Data</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * SampledData |
| * <!-- end-model-doc --> |
| * @see #SAMPLED_DATA |
| * @model name="SampledData" |
| * @generated |
| * @ordered |
| */ |
| public static final int SAMPLED_DATA_VALUE = 7; |
| |
| /** |
| * The '<em><b>Time</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * time |
| * <!-- end-model-doc --> |
| * @see #TIME |
| * @model name="time" |
| * @generated |
| * @ordered |
| */ |
| public static final int TIME_VALUE = 8; |
| |
| /** |
| * The '<em><b>Date Time</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * dateTime |
| * <!-- end-model-doc --> |
| * @see #DATE_TIME |
| * @model name="dateTime" |
| * @generated |
| * @ordered |
| */ |
| public static final int DATE_TIME_VALUE = 9; |
| |
| /** |
| * The '<em><b>Period</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Period |
| * <!-- end-model-doc --> |
| * @see #PERIOD |
| * @model name="Period" |
| * @generated |
| * @ordered |
| */ |
| public static final int PERIOD_VALUE = 10; |
| |
| /** |
| * An array of all the '<em><b>Observation Data Type List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final ObservationDataTypeList[] VALUES_ARRAY = |
| new ObservationDataTypeList[] { |
| QUANTITY, |
| CODEABLE_CONCEPT, |
| STRING, |
| BOOLEAN, |
| INTEGER, |
| RANGE, |
| RATIO, |
| SAMPLED_DATA, |
| TIME, |
| DATE_TIME, |
| PERIOD, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>Observation Data Type List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<ObservationDataTypeList> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>Observation Data Type List</b></em>' literal with the specified literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param literal the literal. |
| * @return the matching enumerator or <code>null</code>. |
| * @generated |
| */ |
| public static ObservationDataTypeList get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| ObservationDataTypeList result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Observation Data Type List</b></em>' literal with the specified name. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name the name. |
| * @return the matching enumerator or <code>null</code>. |
| * @generated |
| */ |
| public static ObservationDataTypeList getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| ObservationDataTypeList result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Observation Data Type List</b></em>' literal with the specified integer value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the integer value. |
| * @return the matching enumerator or <code>null</code>. |
| * @generated |
| */ |
| public static ObservationDataTypeList get(int value) { |
| switch (value) { |
| case QUANTITY_VALUE: return QUANTITY; |
| case CODEABLE_CONCEPT_VALUE: return CODEABLE_CONCEPT; |
| case STRING_VALUE: return STRING; |
| case BOOLEAN_VALUE: return BOOLEAN; |
| case INTEGER_VALUE: return INTEGER; |
| case RANGE_VALUE: return RANGE; |
| case RATIO_VALUE: return RATIO; |
| case SAMPLED_DATA_VALUE: return SAMPLED_DATA; |
| case TIME_VALUE: return TIME; |
| case DATE_TIME_VALUE: return DATE_TIME; |
| case PERIOD_VALUE: return PERIOD; |
| } |
| 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 ObservationDataTypeList(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; |
| } |
| |
| } //ObservationDataTypeList |