| /** |
| */ |
| 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>Search Param Type List</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.hl7.fhir.FhirPackage#getSearchParamTypeList() |
| * @model extendedMetaData="name='SearchParamType-list'" |
| * @generated |
| */ |
| public enum SearchParamTypeList implements Enumerator { |
| /** |
| * The '<em><b>Number</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #NUMBER_VALUE |
| * @generated |
| * @ordered |
| */ |
| NUMBER(0, "number", "number"), |
| |
| /** |
| * The '<em><b>Date</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #DATE_VALUE |
| * @generated |
| * @ordered |
| */ |
| DATE(1, "date", "date"), |
| |
| /** |
| * 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>Token</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #TOKEN_VALUE |
| * @generated |
| * @ordered |
| */ |
| TOKEN(3, "token", "token"), |
| |
| /** |
| * The '<em><b>Reference</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #REFERENCE_VALUE |
| * @generated |
| * @ordered |
| */ |
| REFERENCE(4, "reference", "reference"), |
| |
| /** |
| * The '<em><b>Composite</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #COMPOSITE_VALUE |
| * @generated |
| * @ordered |
| */ |
| COMPOSITE(5, "composite", "composite"), |
| |
| /** |
| * The '<em><b>Quantity</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #QUANTITY_VALUE |
| * @generated |
| * @ordered |
| */ |
| QUANTITY(6, "quantity", "quantity"), |
| |
| /** |
| * The '<em><b>Uri</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #URI_VALUE |
| * @generated |
| * @ordered |
| */ |
| URI(7, "uri", "uri"); |
| |
| /** |
| * The '<em><b>Number</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Search parameter SHALL be a number (a whole number, or a decimal). |
| * <!-- end-model-doc --> |
| * @see #NUMBER |
| * @model name="number" |
| * @generated |
| * @ordered |
| */ |
| public static final int NUMBER_VALUE = 0; |
| |
| /** |
| * The '<em><b>Date</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported. |
| * <!-- end-model-doc --> |
| * @see #DATE |
| * @model name="date" |
| * @generated |
| * @ordered |
| */ |
| public static final int DATE_VALUE = 1; |
| |
| /** |
| * The '<em><b>String</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces. |
| * <!-- end-model-doc --> |
| * @see #STRING |
| * @model name="string" |
| * @generated |
| * @ordered |
| */ |
| public static final int STRING_VALUE = 2; |
| |
| /** |
| * The '<em><b>Token</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Search parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used. |
| * <!-- end-model-doc --> |
| * @see #TOKEN |
| * @model name="token" |
| * @generated |
| * @ordered |
| */ |
| public static final int TOKEN_VALUE = 3; |
| |
| /** |
| * The '<em><b>Reference</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A reference to another resource. |
| * <!-- end-model-doc --> |
| * @see #REFERENCE |
| * @model name="reference" |
| * @generated |
| * @ordered |
| */ |
| public static final int REFERENCE_VALUE = 4; |
| |
| /** |
| * The '<em><b>Composite</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A composite search parameter that combines a search on two values together. |
| * <!-- end-model-doc --> |
| * @see #COMPOSITE |
| * @model name="composite" |
| * @generated |
| * @ordered |
| */ |
| public static final int COMPOSITE_VALUE = 5; |
| |
| /** |
| * The '<em><b>Quantity</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A search parameter that searches on a quantity. |
| * <!-- end-model-doc --> |
| * @see #QUANTITY |
| * @model name="quantity" |
| * @generated |
| * @ordered |
| */ |
| public static final int QUANTITY_VALUE = 6; |
| |
| /** |
| * The '<em><b>Uri</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A search parameter that searches on a URI (RFC 3986). |
| * <!-- end-model-doc --> |
| * @see #URI |
| * @model name="uri" |
| * @generated |
| * @ordered |
| */ |
| public static final int URI_VALUE = 7; |
| |
| /** |
| * An array of all the '<em><b>Search Param Type List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final SearchParamTypeList[] VALUES_ARRAY = |
| new SearchParamTypeList[] { |
| NUMBER, |
| DATE, |
| STRING, |
| TOKEN, |
| REFERENCE, |
| COMPOSITE, |
| QUANTITY, |
| URI, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>Search Param Type List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<SearchParamTypeList> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>Search Param 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 SearchParamTypeList get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| SearchParamTypeList result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Search Param 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 SearchParamTypeList getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| SearchParamTypeList result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Search Param 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 SearchParamTypeList get(int value) { |
| switch (value) { |
| case NUMBER_VALUE: return NUMBER; |
| case DATE_VALUE: return DATE; |
| case STRING_VALUE: return STRING; |
| case TOKEN_VALUE: return TOKEN; |
| case REFERENCE_VALUE: return REFERENCE; |
| case COMPOSITE_VALUE: return COMPOSITE; |
| case QUANTITY_VALUE: return QUANTITY; |
| case URI_VALUE: return URI; |
| } |
| 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 SearchParamTypeList(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; |
| } |
| |
| } //SearchParamTypeList |