public abstract class PrimitiveType<T> extends Type implements org.hl7.fhir.instance.model.api.IPrimitiveType<T>, org.hl7.fhir.instance.model.api.IBaseHasExtensions, ca.uhn.fhir.model.api.IElement, Externalizable
| Constructor and Description |
|---|
PrimitiveType() |
| Modifier and Type | Method and Description |
|---|---|
String |
asStringValue() |
abstract Type |
copy() |
protected abstract String |
encode(T theValue)
Subclasses must override to convert a "coerced" value into an encoded one.
|
boolean |
equalsDeep(Base obj) |
boolean |
equalsShallow(Base obj) |
void |
fromStringValue(String theValue) |
T |
getValue() |
String |
getValueAsString() |
int |
hashCode() |
boolean |
hasValue() |
boolean |
isEmpty() |
boolean |
isPrimitive() |
protected abstract T |
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
|
String |
primitiveValue() |
void |
readExternal(ObjectInput theIn) |
PrimitiveType<T> |
setValue(T theValue) |
void |
setValueAsString(String theValue) |
String |
toString() |
protected Type |
typedCopy() |
protected void |
updateStringValue() |
void |
writeExternal(ObjectOutput theOut) |
addChild, addExtension, addExtension, copyValues, fhirType, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, getProperty, hasExtension, hasExtension, hasId, hasIdElement, listChildren, makeProperty, setId, setIdElement, setProperty, setPropertycastToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, listChildrenByName, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitpublic PrimitiveType()
public String asStringValue()
protected abstract String encode(T theValue)
theValue - Will not be nullpublic boolean equalsDeep(Base obj)
equalsDeep in class Elementpublic boolean equalsShallow(Base obj)
equalsShallow in class Elementpublic void fromStringValue(String theValue)
public T getValue()
getValue in interface org.hl7.fhir.instance.model.api.IPrimitiveType<T>public String getValueAsString()
getValueAsString in interface org.hl7.fhir.instance.model.api.IPrimitiveType<T>public boolean hasValue()
public boolean isEmpty()
public boolean isPrimitive()
isPrimitive in class Baseprotected abstract T parse(String theValue)
theValue - Will not be nullpublic String primitiveValue()
primitiveValue in class Basepublic void readExternal(ObjectInput theIn) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic PrimitiveType<T> setValue(T theValue)
setValue in interface org.hl7.fhir.instance.model.api.IPrimitiveType<T>public void setValueAsString(String theValue)
setValueAsString in interface org.hl7.fhir.instance.model.api.IPrimitiveType<T>protected void updateStringValue()
public void writeExternal(ObjectOutput theOut) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2014–2018 University Health Network. All rights reserved.