Class Enumeration<T extends Enum<?>>

  • 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:
    Serialized Form
    • Method Detail

      • parse

        protected T parse​(String theValue)
        Description copied from class: PrimitiveType
        Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
        Specified by:
        parse in class PrimitiveType<T extends Enum<?>>
        Parameters:
        theValue - Will not be null
        Returns:
        May return null if the value does not correspond to anything
      • encode

        protected String encode​(T theValue)
        Description copied from class: PrimitiveType
        Subclasses must override to convert a "coerced" value into an encoded one.
        Specified by:
        encode in class PrimitiveType<T extends Enum<?>>
        Parameters:
        theValue - Will not be null
        Returns:
        May return null if the value does not correspond to anything
      • fhirType

        public String fhirType()
        Specified by:
        fhirType in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        fhirType in class Element
      • getEnumFactory

        public org.hl7.fhir.instance.model.api.IBaseEnumFactory<TgetEnumFactory()
        Specified by:
        getEnumFactory in interface org.hl7.fhir.instance.model.api.IBaseEnumeration<T extends Enum<?>>