public abstract class PrimitiveType<T> extends Type implements IPrimitiveType<T>, IBaseHasExtensions, 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, addExtension, copyValues, fhirType, 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, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentaddExtension, getExtension, hasExtensionpublic 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 IPrimitiveType<T>public String getValueAsString()
getValueAsString in interface 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 IPrimitiveType<T>public void setValueAsString(String theValue)
setValueAsString in interface IPrimitiveType<T>protected void updateStringValue()
public void writeExternal(ObjectOutput theOut) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2014–2017 University Health Network. All rights reserved.