Package ca.uhn.fhir.model.primitive
Class CodeDt
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.api.BasePrimitive<String>
-
- ca.uhn.fhir.model.primitive.CodeDt
-
- All Implemented Interfaces:
IDatatype,IElement,IIdentifiableElement,IPrimitiveDatatype<String>,ISupportsUndeclaredExtensions,Externalizable,Serializable,Comparable<CodeDt>,IBase,IBaseDatatype,IPrimitiveType<String>
- Direct Known Subclasses:
BoundCodeDt
public class CodeDt extends BasePrimitive<String> implements Comparable<CodeDt>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CodeDt theCode)protected Stringencode(String theValue)Subclasses must override to convert a "coerced" value into an encoded one.booleanisEmpty()protected Stringparse(String theValue)Subclasses must override to convert an encoded representation of this datatype into a "coerced" one-
Methods inherited from class ca.uhn.fhir.model.api.BasePrimitive
equals, getValue, getValueAsString, hashCode, hasValue, readExternal, setValue, setValueAsString, toString, updateStringValue, writeExternal
-
Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceIBase- Overrides:
isEmptyin classBasePrimitive<String>
-
compareTo
public int compareTo(CodeDt theCode)
- Specified by:
compareToin interfaceComparable<CodeDt>
-
parse
protected String parse(String theValue)
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
protected String encode(String theValue)
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
-
-