
Package ca.uhn.fhir.model.primitive
Class BoundCodeDt<T extends Enum<?>>
- 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
-
- ca.uhn.fhir.model.primitive.BoundCodeDt<T>
-
- All Implemented Interfaces:
IDatatype
,IElement
,IIdentifiableElement
,IPrimitiveDatatype<String>
,ISupportsUndeclaredExtensions
,Externalizable
,Serializable
,Comparable<CodeDt>
,IBase
,IBaseDatatype
,IPrimitiveType<String>
public class BoundCodeDt<T extends Enum<?>> extends CodeDt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundCodeDt()
Deprecated.This constructor is provided only for serialization support.BoundCodeDt(IValueSetEnumBinder<T> theBinder)
BoundCodeDt(IValueSetEnumBinder<T> theBinder, T theValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IValueSetEnumBinder<T>
getBinder()
T
getValueAsEnum()
void
readExternal(ObjectInput theIn)
void
setValueAsEnum(T theValue)
void
writeExternal(ObjectOutput theOut)
-
Methods inherited from class ca.uhn.fhir.model.api.BasePrimitive
equals, getValue, getValueAsString, hashCode, hasValue, setValue, setValueAsString, toString, updateStringValue
-
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
-
-
-
-
Constructor Detail
-
BoundCodeDt
@Deprecated public BoundCodeDt()
Deprecated.This constructor is provided only for serialization support. Do not call it directly!
-
BoundCodeDt
public BoundCodeDt(IValueSetEnumBinder<T> theBinder)
-
BoundCodeDt
public BoundCodeDt(IValueSetEnumBinder<T> theBinder, T theValue)
-
-
Method Detail
-
getBinder
public IValueSetEnumBinder<T> getBinder()
-
getValueAsEnum
public T getValueAsEnum()
-
readExternal
public void readExternal(ObjectInput theIn) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classBasePrimitive<String>
- Throws:
IOException
ClassNotFoundException
-
setValueAsEnum
public void setValueAsEnum(T theValue)
-
writeExternal
public void writeExternal(ObjectOutput theOut) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classBasePrimitive<String>
- Throws:
IOException
-
-