public class Enumeration<T extends Enum<?>> extends PrimitiveType<T> implements IBaseEnumeration<T>
| 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() |
EnumFactory<T> |
getEnumFactory()
Provides the enum factory which binds this enumeration to a specific ValueSet
|
protected T |
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
|
void |
readExternal(ObjectInput theIn) |
String |
toSystem() |
void |
writeExternal(ObjectOutput theOut) |
asStringValue, equalsDeep, equalsShallow, fromStringValue, getValue, getValueAsString, hashCode, hasValue, isEmpty, isPrimitive, primitiveValue, setValue, setValueAsString, toString, typedCopy, updateStringValueaddChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getProperty, getTypesForProperty, hasExtension, hasExtension, hasId, hasIdElement, listChildren, makeProperty, setExtension, setId, setIdBase, setIdElement, setProperty, setPropertycastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, getValueAsString, setValue, setValueAsStringgetFormatCommentsPost, getFormatCommentsPre, hasFormatComment, isEmptyaddExtension, getExtension, hasExtension@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<?>>IOExceptionCopyright © 2014–2017 University Health Network. All rights reserved.