
Package ca.uhn.fhir.model.primitive
Class CodeDt
- All Implemented Interfaces:
IDatatype,IElement,IIdentifiableElement,IPrimitiveDatatype<String>,ISupportsUndeclaredExtensions,Externalizable,Serializable,Comparable<CodeDt>,IBase,IBaseDatatype,IPrimitiveType<String>
- Direct Known Subclasses:
BoundCodeDt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ca.uhn.fhir.model.api.BasePrimitive
equals, getValue, getValueAsString, hashCode, hasValue, readExternal, setValue, setValueAsString, toString, updateStringValue, writeExternalMethods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setIdMethods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Constructor Details
-
CodeDt
public CodeDt()Constructor -
CodeDt
Constructor which accepts a string code
-
-
Method Details
-
isEmpty
- Specified by:
isEmptyin interfaceIBase- Overrides:
isEmptyin classBasePrimitive<String>
-
compareTo
- Specified by:
compareToin interfaceComparable<CodeDt>
-
parse
Description copied from class:BasePrimitiveSubclasses must override to convert an encoded representation of this datatype into a "coerced" one- Specified by:
parsein classBasePrimitive<String>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
encode
Description copied from class:BasePrimitiveSubclasses must override to convert a "coerced" value into an encoded one.- Specified by:
encodein classBasePrimitive<String>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-