
Package org.hl7.fhir.dstu3.model
Class PrimitiveType<T>
java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.model.Element
org.hl7.fhir.dstu3.model.Type
org.hl7.fhir.dstu3.model.PrimitiveType<T>
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Externalizable,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.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IPrimitiveType<T>
- Direct Known Subclasses:
Base64BinaryType,BaseDateTimeType,BooleanType,DecimalType,Enumeration,IntegerType,StringType,TimeType,UriType
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
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Typecopy()protected abstract StringSubclasses must override to convert a "coerced" value into an encoded one.booleanequalsDeep(Base obj) booleanequalsShallow(Base obj) voidfromStringValue(String theValue) Base[]getProperty(int hash, String name, boolean checkValid) getValue()inthashCode()booleanbooleanhasValue()booleanisEmpty()booleanprotected abstract TSubclasses must override to convert an encoded representation of this datatype into a "coerced" onevoidreadExternal(ObjectInput theIn) setProperty(int hash, String name, Base value) setProperty(String name, Base value) voidsetValueAsString(String theValue) toString()protected Typeprotected voidvoidwriteExternal(ObjectOutput theOut) Methods inherited from class org.hl7.fhir.dstu3.model.Element
addChild, addExtension, addExtension, addExtension, copyValues, fhirType, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, getTypesForProperty, hasExtension, hasExtension, hasId, hasIdElement, listChildren, makeProperty, setExtension, setId, setIdBase, setIdElementMethods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, 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, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseHasExtensions
addExtension, getExtension, hasExtension
-
Constructor Details
-
PrimitiveType
public PrimitiveType()
-
-
Method Details
-
asStringValue
-
copy
-
encode
Subclasses must override to convert a "coerced" value into an encoded one.- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
equalsDeep
- Overrides:
equalsDeepin classElement
-
equalsShallow
- Overrides:
equalsShallowin classElement
-
fromStringValue
-
getValue
- Specified by:
getValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<T>
-
getValueAsString
- Specified by:
getValueAsStringin interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<T>
-
hashCode
-
hasValue
- Specified by:
hasValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<T>
-
isEmpty
-
isPrimitive
- Overrides:
isPrimitivein classBase
-
parse
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
primitiveValue
- Overrides:
primitiveValuein classBase
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
setValue
- Specified by:
setValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<T>
-
setValueAsString
- Specified by:
setValueAsStringin interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<T>
-
toString
-
typedCopy
-
updateStringValue
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasPrimitiveValue
- Overrides:
hasPrimitiveValuein classBase
-