Package org.hl7.fhir.instance.model.api
Interface IPrimitiveType<T>
- All Superinterfaces:
IBase
,IBaseDatatype
,IElement
,Serializable
- All Known Subinterfaces:
IBaseBooleanDatatype
,IBaseDecimalDatatype
,IBaseEnumeration<T>
,IBaseIntegerDatatype
,IBaseLongDatatype
,IBaseXhtml
,IIdType
,IPrimitiveDatatype<T>
,IStreamingDatatype<T>
- All Known Implementing Classes:
Base64BinaryDt
,BaseDateTimeDt
,BasePrimitive
,BooleanDt
,BoundCodeDt
,CodeDt
,DateDt
,DateParam.DateParamDateTimeHolder
,DateTimeDt
,DecimalDt
,IdDt
,InstantDt
,IntegerDt
,MarkdownDt
,OidDt
,PositiveIntDt
,StringDt
,TimeDt
,UnsignedIntDt
,UriDt
,XhtmlDt
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
boolean
hasValue()
void
setValueAsString
(String theValue) static <T> T
toValueOrNull
(IPrimitiveType<T> thePrimitiveType) If the supplied argument is non-null, returns the results ofgetValue()
.Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, isEmpty, setUserData
-
Method Details
-
getValueAsString
-
setValueAsString
- Throws:
IllegalArgumentException
-
getValue
-
setValue
- Throws:
IllegalArgumentException
-
hasValue
boolean hasValue() -
toValueOrNull
If the supplied argument is non-null, returns the results ofgetValue()
. If the supplied argument is null, returns null.
-