| /******************************************************************************* |
| * 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>Contract Signer Type Codes</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.mdht.uml.fhir.core.valueset.FhirValuesetPackage#getContractSignerTypeCodes() |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='Contract Signer Type Codes'" |
| * @generated |
| */ |
| public enum ContractSignerTypeCodes implements Enumerator { |
| /** |
| * The '<em><b>128401006511211</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511211_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511211(0, "_128401006511211", "_128401006511211"), |
| |
| /** |
| * The '<em><b>128401006511212</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511212_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511212(1, "_128401006511212", "_128401006511212"), |
| |
| /** |
| * The '<em><b>128401006511213</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511213_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511213(2, "_128401006511213", "_128401006511213"), |
| |
| /** |
| * The '<em><b>128401006511214</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511214_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511214(3, "_128401006511214", "_128401006511214"), |
| |
| /** |
| * The '<em><b>128401006511215</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511215_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511215(4, "_128401006511215", "_128401006511215"), |
| |
| /** |
| * The '<em><b>128401006511216</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511216_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511216(5, "_128401006511216", "_128401006511216"), |
| |
| /** |
| * The '<em><b>128401006511217</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511217_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511217(6, "_128401006511217", "_128401006511217"), |
| |
| /** |
| * The '<em><b>128401006511218</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511218_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511218(7, "_128401006511218", "_128401006511218"), |
| |
| /** |
| * The '<em><b>128401006511219</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_128401006511219_VALUE |
| * @generated |
| * @ordered |
| */ |
| _128401006511219(8, "_128401006511219", "_128401006511219"), |
| |
| /** |
| * The '<em><b>1284010065112110</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112110_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112110(9, "_1284010065112110", "_1284010065112110"), |
| |
| /** |
| * The '<em><b>1284010065112111</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112111_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112111(10, "_1284010065112111", "_1284010065112111"), |
| |
| /** |
| * The '<em><b>1284010065112112</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112112_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112112(11, "_1284010065112112", "_1284010065112112"), |
| |
| /** |
| * The '<em><b>1284010065112113</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112113_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112113(12, "_1284010065112113", "_1284010065112113"), |
| |
| /** |
| * The '<em><b>1284010065112114</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112114_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112114(13, "_1284010065112114", "_1284010065112114"), |
| |
| /** |
| * The '<em><b>1284010065112115</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112115_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112115(14, "_1284010065112115", "_1284010065112115"), |
| |
| /** |
| * The '<em><b>1284010065112116</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112116_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112116(15, "_1284010065112116", "_1284010065112116"), |
| |
| /** |
| * The '<em><b>1284010065112117</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112117_VALUE |
| * @generated |
| * @ordered |
| */ |
| _1284010065112117(16, "_1284010065112117", "_1284010065112117"); |
| |
| /** |
| * The '<em><b>128401006511211</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511211</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511211 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.1'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511211_VALUE = 0; |
| |
| /** |
| * The '<em><b>128401006511212</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511212</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511212 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.2'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511212_VALUE = 1; |
| |
| /** |
| * The '<em><b>128401006511213</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511213</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511213 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.3'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511213_VALUE = 2; |
| |
| /** |
| * The '<em><b>128401006511214</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511214</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511214 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.4'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511214_VALUE = 3; |
| |
| /** |
| * The '<em><b>128401006511215</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511215</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511215 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.5'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511215_VALUE = 4; |
| |
| /** |
| * The '<em><b>128401006511216</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511216</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511216 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.6'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511216_VALUE = 5; |
| |
| /** |
| * The '<em><b>128401006511217</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511217</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511217 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.7'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511217_VALUE = 6; |
| |
| /** |
| * The '<em><b>128401006511218</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511218</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511218 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.8'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511218_VALUE = 7; |
| |
| /** |
| * The '<em><b>128401006511219</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>128401006511219</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_128401006511219 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.9'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _128401006511219_VALUE = 8; |
| |
| /** |
| * The '<em><b>1284010065112110</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112110</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112110 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.10'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112110_VALUE = 9; |
| |
| /** |
| * The '<em><b>1284010065112111</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112111</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112111 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.11'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112111_VALUE = 10; |
| |
| /** |
| * The '<em><b>1284010065112112</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112112</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112112 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.12'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112112_VALUE = 11; |
| |
| /** |
| * The '<em><b>1284010065112113</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112113</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112113 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.13'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112113_VALUE = 12; |
| |
| /** |
| * The '<em><b>1284010065112114</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112114</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112114 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.14'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112114_VALUE = 13; |
| |
| /** |
| * The '<em><b>1284010065112115</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112115</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112115 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.15'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112115_VALUE = 14; |
| |
| /** |
| * The '<em><b>1284010065112116</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112116</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112116 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.16'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112116_VALUE = 15; |
| |
| /** |
| * The '<em><b>1284010065112117</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>1284010065112117</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #_1284010065112117 |
| * @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='1.2.840.10065.1.12.1.17'" |
| * @generated |
| * @ordered |
| */ |
| public static final int _1284010065112117_VALUE = 16; |
| |
| /** |
| * An array of all the '<em><b>Contract Signer Type Codes</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final ContractSignerTypeCodes[] VALUES_ARRAY = |
| new ContractSignerTypeCodes[] { |
| _128401006511211, |
| _128401006511212, |
| _128401006511213, |
| _128401006511214, |
| _128401006511215, |
| _128401006511216, |
| _128401006511217, |
| _128401006511218, |
| _128401006511219, |
| _1284010065112110, |
| _1284010065112111, |
| _1284010065112112, |
| _1284010065112113, |
| _1284010065112114, |
| _1284010065112115, |
| _1284010065112116, |
| _1284010065112117, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>Contract Signer Type Codes</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<ContractSignerTypeCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>Contract Signer Type 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 ContractSignerTypeCodes get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| ContractSignerTypeCodes result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Contract Signer Type 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 ContractSignerTypeCodes getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| ContractSignerTypeCodes result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Contract Signer Type 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 ContractSignerTypeCodes get(int value) { |
| switch (value) { |
| case _128401006511211_VALUE: return _128401006511211; |
| case _128401006511212_VALUE: return _128401006511212; |
| case _128401006511213_VALUE: return _128401006511213; |
| case _128401006511214_VALUE: return _128401006511214; |
| case _128401006511215_VALUE: return _128401006511215; |
| case _128401006511216_VALUE: return _128401006511216; |
| case _128401006511217_VALUE: return _128401006511217; |
| case _128401006511218_VALUE: return _128401006511218; |
| case _128401006511219_VALUE: return _128401006511219; |
| case _1284010065112110_VALUE: return _1284010065112110; |
| case _1284010065112111_VALUE: return _1284010065112111; |
| case _1284010065112112_VALUE: return _1284010065112112; |
| case _1284010065112113_VALUE: return _1284010065112113; |
| case _1284010065112114_VALUE: return _1284010065112114; |
| case _1284010065112115_VALUE: return _1284010065112115; |
| case _1284010065112116_VALUE: return _1284010065112116; |
| case _1284010065112117_VALUE: return _1284010065112117; |
| } |
| 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 ContractSignerTypeCodes(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; |
| } |
| |
| } //ContractSignerTypeCodes |