
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
public interface IPrimitiveType<T> extends IBaseDatatype
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getValue()
String
getValueAsString()
boolean
hasValue()
IPrimitiveType<T>
setValue(T theValue)
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 Detail
-
getValueAsString
String getValueAsString()
-
setValueAsString
void setValueAsString(String theValue) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
setValue
IPrimitiveType<T> setValue(T theValue) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
hasValue
boolean hasValue()
-
toValueOrNull
@Nullable static <T> T toValueOrNull(@Nullable IPrimitiveType<T> thePrimitiveType)
If the supplied argument is non-null, returns the results ofgetValue()
. If the supplied argument is null, returns null.
-
-