blob: 54154a746e4ab0fa81a4f71eb724f7eb5fd1409a [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>Diagnostic Report Status</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.mdht.uml.fhir.core.valueset.FhirValuesetPackage#getDiagnosticReportStatus()
* @model
* @generated
*/
public enum DiagnosticReportStatus implements Enumerator {
/**
* The '<em><b>Registered</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #REGISTERED_VALUE
* @generated
* @ordered
*/
REGISTERED(0, "registered", "registered"),
/**
* The '<em><b>Partial</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #PARTIAL_VALUE
* @generated
* @ordered
*/
PARTIAL(1, "partial", "partial"),
/**
* The '<em><b>Final</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #FINAL_VALUE
* @generated
* @ordered
*/
FINAL(2, "final", "final"),
/**
* The '<em><b>Corrected</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CORRECTED_VALUE
* @generated
* @ordered
*/
CORRECTED(3, "corrected", "corrected"),
/**
* The '<em><b>Appended</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #APPENDED_VALUE
* @generated
* @ordered
*/
APPENDED(4, "appended", "appended"),
/**
* The '<em><b>Cancelled</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CANCELLED_VALUE
* @generated
* @ordered
*/
CANCELLED(5, "cancelled", "cancelled"),
/**
* The '<em><b>Enteredinerror</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ENTEREDINERROR_VALUE
* @generated
* @ordered
*/
ENTEREDINERROR(6, "enteredinerror", "enteredinerror");
/**
* The '<em><b>Registered</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Registered</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #REGISTERED
* @model name="registered"
* @generated
* @ordered
*/
public static final int REGISTERED_VALUE = 0;
/**
* The '<em><b>Partial</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Partial</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #PARTIAL
* @model name="partial"
* @generated
* @ordered
*/
public static final int PARTIAL_VALUE = 1;
/**
* The '<em><b>Final</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Final</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #FINAL
* @model name="final"
* @generated
* @ordered
*/
public static final int FINAL_VALUE = 2;
/**
* The '<em><b>Corrected</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Corrected</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #CORRECTED
* @model name="corrected"
* @generated
* @ordered
*/
public static final int CORRECTED_VALUE = 3;
/**
* The '<em><b>Appended</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Appended</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #APPENDED
* @model name="appended"
* @generated
* @ordered
*/
public static final int APPENDED_VALUE = 4;
/**
* The '<em><b>Cancelled</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Cancelled</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #CANCELLED
* @model name="cancelled"
* @generated
* @ordered
*/
public static final int CANCELLED_VALUE = 5;
/**
* The '<em><b>Enteredinerror</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Enteredinerror</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #ENTEREDINERROR
* @model name="enteredinerror"
* annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='entered-in-error'"
* @generated
* @ordered
*/
public static final int ENTEREDINERROR_VALUE = 6;
/**
* An array of all the '<em><b>Diagnostic Report Status</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final DiagnosticReportStatus[] VALUES_ARRAY =
new DiagnosticReportStatus[] {
REGISTERED,
PARTIAL,
FINAL,
CORRECTED,
APPENDED,
CANCELLED,
ENTEREDINERROR,
};
/**
* A public read-only list of all the '<em><b>Diagnostic Report Status</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<DiagnosticReportStatus> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Diagnostic Report Status</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 DiagnosticReportStatus get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
DiagnosticReportStatus result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Diagnostic Report Status</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 DiagnosticReportStatus getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
DiagnosticReportStatus result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Diagnostic Report Status</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 DiagnosticReportStatus get(int value) {
switch (value) {
case REGISTERED_VALUE: return REGISTERED;
case PARTIAL_VALUE: return PARTIAL;
case FINAL_VALUE: return FINAL;
case CORRECTED_VALUE: return CORRECTED;
case APPENDED_VALUE: return APPENDED;
case CANCELLED_VALUE: return CANCELLED;
case ENTEREDINERROR_VALUE: return ENTEREDINERROR;
}
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 DiagnosticReportStatus(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;
}
} //DiagnosticReportStatus