
Package org.hl7.fhir.dstu2.model
Class Enumeration<T extends Enum<?>>
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.Element
org.hl7.fhir.dstu2.model.Type
org.hl7.fhir.dstu2.model.PrimitiveType<T>
org.hl7.fhir.dstu2.model.Enumeration<T>
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseEnumeration<T>,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IPrimitiveType<T>
public class Enumeration<T extends Enum<?>>
extends PrimitiveType<T>
implements org.hl7.fhir.instance.model.api.IBaseEnumeration<T>
Primitive type "code" in FHIR, where the code is tied to an enumerated list
of possible values
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEnumeration(EnumFactory<T> theEnumFactory) ConstructorEnumeration(EnumFactory<T> theEnumFactory, String theValue) ConstructorEnumeration(EnumFactory<T> theEnumFactory, T theValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()protected StringSubclasses must override to convert a "coerced" value into an encoded one.fhirType()org.hl7.fhir.instance.model.api.IBaseEnumFactory<T> protected TSubclasses must override to convert an encoded representation of this datatype into a "coerced" oneMethods inherited from class org.hl7.fhir.dstu2.model.PrimitiveType
asStringValue, equalsDeep, equalsShallow, fromStringValue, getValue, getValueAsString, hashCode, hasValue, isEmpty, isPrimitive, primitiveValue, setValue, setValueAsString, toString, typedCopy, updateStringValueMethods inherited from class org.hl7.fhir.dstu2.model.Element
addChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, listChildren, setId, setIdElement, setPropertyMethods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, listChildrenByName, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, isEmpty, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseHasExtensions
addExtension, getExtension, hasExtensionMethods inherited from interface org.hl7.fhir.instance.model.api.IPrimitiveType
getValue, getValueAsString, hasValue, setValue, setValueAsString
-
Constructor Details
-
Enumeration
Constructor -
Enumeration
Constructor -
Enumeration
Constructor
-
-
Method Details
-
parse
Description copied from class:PrimitiveTypeSubclasses must override to convert an encoded representation of this datatype into a "coerced" one- Specified by:
parsein classPrimitiveType<T extends Enum<?>>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
encode
Description copied from class:PrimitiveTypeSubclasses must override to convert a "coerced" value into an encoded one.- Specified by:
encodein classPrimitiveType<T extends Enum<?>>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
copy
- Specified by:
copyin classPrimitiveType<T extends Enum<?>>
-
fhirType
-
getEnumFactory
-