public class Enumeration<T extends Enum<?>> extends PrimitiveType<T> implements org.hl7.fhir.instance.model.api.IBaseEnumeration<T>, ICoding
| Constructor and Description |
|---|
Enumeration()
Deprecated.
This no-arg constructor is provided for serialization only - Do not use
|
Enumeration(EnumFactory<T> theEnumFactory)
Constructor
|
Enumeration(EnumFactory<T> theEnumFactory,
String theValue)
Constructor
|
Enumeration(EnumFactory<T> theEnumFactory,
T theValue)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration<T> |
copy() |
protected String |
encode(T theValue)
Subclasses must override to convert a "coerced" value into an encoded one.
|
String |
fhirType() |
String |
getCode() |
String |
getDisplay() |
EnumFactory<T> |
getEnumFactory()
Provides the enum factory which binds this enumeration to a specific ValueSet
|
String |
getSystem() |
String |
getVersion() |
boolean |
hasCode() |
boolean |
hasDisplay() |
boolean |
hasSystem() |
boolean |
hasVersion() |
protected T |
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
|
void |
readExternal(ObjectInput theIn) |
boolean |
supportsDisplay() |
boolean |
supportsVersion() |
String |
toSystem() |
void |
writeExternal(ObjectOutput theOut) |
asStringValue, equalsDeep, equalsShallow, forceStringValue, fpValue, fromStringValue, getProperty, getTypesForProperty, getValue, getValueAsString, hashCode, hasPrimitiveValue, hasValue, isEmpty, isPrimitive, makeProperty, primitiveValue, setProperty, setProperty, setValue, setValueAsString, toString, typedCopy, updateStringValueaddChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, listChildren, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, getValueAsString, hasValue, setValue, setValueAsString, toValueOrNullgetFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, isEmpty, setUserData@Deprecated public Enumeration()
public Enumeration(EnumFactory<T> theEnumFactory)
public Enumeration(EnumFactory<T> theEnumFactory, String theValue)
public Enumeration(EnumFactory<T> theEnumFactory, T theValue)
public Enumeration<T> copy()
copy in class PrimitiveType<T extends Enum<?>>protected String encode(T theValue)
PrimitiveTypeencode in class PrimitiveType<T extends Enum<?>>theValue - Will not be nullpublic EnumFactory<T> getEnumFactory()
protected T parse(String theValue)
PrimitiveTypeparse in class PrimitiveType<T extends Enum<?>>theValue - Will not be nullpublic void readExternal(ObjectInput theIn) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class PrimitiveType<T extends Enum<?>>IOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput theOut) throws IOException
writeExternal in interface ExternalizablewriteExternal in class PrimitiveType<T extends Enum<?>>IOExceptionpublic String getVersion()
getVersion in interface ICodingpublic boolean hasVersion()
hasVersion in interface ICodingpublic boolean supportsVersion()
supportsVersion in interface ICodingpublic String getDisplay()
getDisplay in interface ICodingpublic boolean hasDisplay()
hasDisplay in interface ICodingpublic boolean supportsDisplay()
supportsDisplay in interface ICodingCopyright © 2014–2021 Health Level 7. All rights reserved.