blob: 3c2ab1f8996dcde44a13c3673c6f1fe9b113bb39 [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>Uscls Codes</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.mdht.uml.fhir.core.valueset.FhirValuesetPackage#getUsclsCodes()
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='USCLS Codes'"
* @generated
*/
public enum UsclsCodes implements Enumerator {
/**
* The '<em><b>1101</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_1101_VALUE
* @generated
* @ordered
*/
_1101(0, "_1101", "_1101"),
/**
* The '<em><b>1102</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_1102_VALUE
* @generated
* @ordered
*/
_1102(1, "_1102", "_1102"),
/**
* The '<em><b>1103</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_1103_VALUE
* @generated
* @ordered
*/
_1103(2, "_1103", "_1103"),
/**
* The '<em><b>1201</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_1201_VALUE
* @generated
* @ordered
*/
_1201(3, "_1201", "_1201"),
/**
* The '<em><b>1205</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_1205_VALUE
* @generated
* @ordered
*/
_1205(4, "_1205", "_1205"),
/**
* The '<em><b>2101</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_2101_VALUE
* @generated
* @ordered
*/
_2101(5, "_2101", "_2101"),
/**
* The '<em><b>2102</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_2102_VALUE
* @generated
* @ordered
*/
_2102(6, "_2102", "_2102"),
/**
* The '<em><b>2141</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_2141_VALUE
* @generated
* @ordered
*/
_2141(7, "_2141", "_2141"),
/**
* The '<em><b>2601</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_2601_VALUE
* @generated
* @ordered
*/
_2601(8, "_2601", "_2601"),
/**
* The '<em><b>11101</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_11101_VALUE
* @generated
* @ordered
*/
_11101(9, "_11101", "_11101"),
/**
* The '<em><b>11102</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_11102_VALUE
* @generated
* @ordered
*/
_11102(10, "_11102", "_11102"),
/**
* The '<em><b>11103</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_11103_VALUE
* @generated
* @ordered
*/
_11103(11, "_11103", "_11103"),
/**
* The '<em><b>11104</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_11104_VALUE
* @generated
* @ordered
*/
_11104(12, "_11104", "_11104"),
/**
* The '<em><b>21211</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_21211_VALUE
* @generated
* @ordered
*/
_21211(13, "_21211", "_21211"),
/**
* The '<em><b>21212</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_21212_VALUE
* @generated
* @ordered
*/
_21212(14, "_21212", "_21212"),
/**
* The '<em><b>27211</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_27211_VALUE
* @generated
* @ordered
*/
_27211(15, "_27211", "_27211"),
/**
* The '<em><b>99111</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_99111_VALUE
* @generated
* @ordered
*/
_99111(16, "_99111", "_99111"),
/**
* The '<em><b>99333</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_99333_VALUE
* @generated
* @ordered
*/
_99333(17, "_99333", "_99333"),
/**
* The '<em><b>99555</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #_99555_VALUE
* @generated
* @ordered
*/
_99555(18, "_99555", "_99555");
/**
* The '<em><b>1101</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>1101</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_1101
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1101'"
* @generated
* @ordered
*/
public static final int _1101_VALUE = 0;
/**
* The '<em><b>1102</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>1102</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_1102
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1102'"
* @generated
* @ordered
*/
public static final int _1102_VALUE = 1;
/**
* The '<em><b>1103</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>1103</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_1103
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1103'"
* @generated
* @ordered
*/
public static final int _1103_VALUE = 2;
/**
* The '<em><b>1201</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>1201</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_1201
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1201'"
* @generated
* @ordered
*/
public static final int _1201_VALUE = 3;
/**
* The '<em><b>1205</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>1205</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_1205
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1205'"
* @generated
* @ordered
*/
public static final int _1205_VALUE = 4;
/**
* The '<em><b>2101</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>2101</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_2101
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='2101'"
* @generated
* @ordered
*/
public static final int _2101_VALUE = 5;
/**
* The '<em><b>2102</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>2102</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_2102
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='2102'"
* @generated
* @ordered
*/
public static final int _2102_VALUE = 6;
/**
* The '<em><b>2141</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>2141</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_2141
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='2141'"
* @generated
* @ordered
*/
public static final int _2141_VALUE = 7;
/**
* The '<em><b>2601</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>2601</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_2601
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='2601'"
* @generated
* @ordered
*/
public static final int _2601_VALUE = 8;
/**
* The '<em><b>11101</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>11101</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_11101
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='11101'"
* @generated
* @ordered
*/
public static final int _11101_VALUE = 9;
/**
* The '<em><b>11102</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>11102</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_11102
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='11102'"
* @generated
* @ordered
*/
public static final int _11102_VALUE = 10;
/**
* The '<em><b>11103</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>11103</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_11103
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='11103'"
* @generated
* @ordered
*/
public static final int _11103_VALUE = 11;
/**
* The '<em><b>11104</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>11104</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_11104
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='11104'"
* @generated
* @ordered
*/
public static final int _11104_VALUE = 12;
/**
* The '<em><b>21211</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>21211</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_21211
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='21211'"
* @generated
* @ordered
*/
public static final int _21211_VALUE = 13;
/**
* The '<em><b>21212</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>21212</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_21212
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='21212'"
* @generated
* @ordered
*/
public static final int _21212_VALUE = 14;
/**
* The '<em><b>27211</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>27211</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_27211
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='27211'"
* @generated
* @ordered
*/
public static final int _27211_VALUE = 15;
/**
* The '<em><b>99111</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>99111</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_99111
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='99111'"
* @generated
* @ordered
*/
public static final int _99111_VALUE = 16;
/**
* The '<em><b>99333</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>99333</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_99333
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='99333'"
* @generated
* @ordered
*/
public static final int _99333_VALUE = 17;
/**
* The '<em><b>99555</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>99555</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #_99555
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='99555'"
* @generated
* @ordered
*/
public static final int _99555_VALUE = 18;
/**
* An array of all the '<em><b>Uscls Codes</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final UsclsCodes[] VALUES_ARRAY =
new UsclsCodes[] {
_1101,
_1102,
_1103,
_1201,
_1205,
_2101,
_2102,
_2141,
_2601,
_11101,
_11102,
_11103,
_11104,
_21211,
_21212,
_27211,
_99111,
_99333,
_99555,
};
/**
* A public read-only list of all the '<em><b>Uscls Codes</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<UsclsCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Uscls Codes</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 UsclsCodes get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
UsclsCodes result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Uscls Codes</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 UsclsCodes getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
UsclsCodes result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Uscls Codes</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 UsclsCodes get(int value) {
switch (value) {
case _1101_VALUE: return _1101;
case _1102_VALUE: return _1102;
case _1103_VALUE: return _1103;
case _1201_VALUE: return _1201;
case _1205_VALUE: return _1205;
case _2101_VALUE: return _2101;
case _2102_VALUE: return _2102;
case _2141_VALUE: return _2141;
case _2601_VALUE: return _2601;
case _11101_VALUE: return _11101;
case _11102_VALUE: return _11102;
case _11103_VALUE: return _11103;
case _11104_VALUE: return _11104;
case _21211_VALUE: return _21211;
case _21212_VALUE: return _21212;
case _27211_VALUE: return _27211;
case _99111_VALUE: return _99111;
case _99333_VALUE: return _99333;
case _99555_VALUE: return _99555;
}
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 UsclsCodes(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;
}
} //UsclsCodes