blob: 7dff5efe7c03b84a0f5a3dca9479592ebfa46c5a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 David Carlson and others.
* 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
*
* Contributors:
* David Carlson (Clinical Cloud Solutions, LLC) - initial API and implementation
*******************************************************************************/
/**
*/
package org.eclipse.mdht.uml.fhir.core.valueset;
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>Loinc530345 Answerlist</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.mdht.uml.fhir.core.valueset.FhirValuesetPackage#getLoinc530345Answerlist()
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='LOINC 53034-5 answerlist'"
* @generated
*/
public enum Loinc530345Answerlist implements Enumerator {
/**
* The '<em><b>La67038</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LA67038_VALUE
* @generated
* @ordered
*/
LA67038(0, "la67038", "la67038"),
/**
* The '<em><b>La67046</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LA67046_VALUE
* @generated
* @ordered
*/
LA67046(1, "la67046", "la67046"),
/**
* The '<em><b>La67053</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LA67053_VALUE
* @generated
* @ordered
*/
LA67053(2, "la67053", "la67053"),
/**
* The '<em><b>La67061</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LA67061_VALUE
* @generated
* @ordered
*/
LA67061(3, "la67061", "la67061"),
/**
* The '<em><b>La67079</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LA67079_VALUE
* @generated
* @ordered
*/
LA67079(4, "la67079", "la67079");
/**
* The '<em><b>La67038</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>La67038</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LA67038
* @model name="la67038"
* annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='LA6703-8'"
* @generated
* @ordered
*/
public static final int LA67038_VALUE = 0;
/**
* The '<em><b>La67046</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>La67046</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LA67046
* @model name="la67046"
* annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='LA6704-6'"
* @generated
* @ordered
*/
public static final int LA67046_VALUE = 1;
/**
* The '<em><b>La67053</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>La67053</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LA67053
* @model name="la67053"
* annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='LA6705-3'"
* @generated
* @ordered
*/
public static final int LA67053_VALUE = 2;
/**
* The '<em><b>La67061</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>La67061</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LA67061
* @model name="la67061"
* annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='LA6706-1'"
* @generated
* @ordered
*/
public static final int LA67061_VALUE = 3;
/**
* The '<em><b>La67079</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>La67079</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LA67079
* @model name="la67079"
* annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='LA6707-9'"
* @generated
* @ordered
*/
public static final int LA67079_VALUE = 4;
/**
* An array of all the '<em><b>Loinc530345 Answerlist</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final Loinc530345Answerlist[] VALUES_ARRAY =
new Loinc530345Answerlist[] {
LA67038,
LA67046,
LA67053,
LA67061,
LA67079,
};
/**
* A public read-only list of all the '<em><b>Loinc530345 Answerlist</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<Loinc530345Answerlist> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Loinc530345 Answerlist</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 Loinc530345Answerlist get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Loinc530345Answerlist result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Loinc530345 Answerlist</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 Loinc530345Answerlist getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Loinc530345Answerlist result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Loinc530345 Answerlist</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 Loinc530345Answerlist get(int value) {
switch (value) {
case LA67038_VALUE: return LA67038;
case LA67046_VALUE: return LA67046;
case LA67053_VALUE: return LA67053;
case LA67061_VALUE: return LA67061;
case LA67079_VALUE: return LA67079;
}
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 Loinc530345Answerlist(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;
}
} //Loinc530345Answerlist