Package ca.uhn.fhir.model.api.annotation
Annotation Type DatatypeDef
Class annotation to note a class which defines a datatype
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Set this to true (default is false) for any types that are really only a specialization of another type.Class
<? extends IBaseDatatype> Indicates that this datatype is a profile of the given datatype, which implies certain parsing/encoding rules (e.g.
-
Element Details
-
name
The defined name of this datatype -
isSpecialization
boolean isSpecializationSet this to true (default is false) for any types that are really only a specialization of another type. For example,BoundCodeDt
is really just a specific type ofCodeDt
and not a separate datatype, so it should have this set to true.- Default:
false
-
profileOf
Class<? extends IBaseDatatype> profileOfIndicates that this datatype is a profile of the given datatype, which implies certain parsing/encoding rules (e.g. a choice element named foo[x] which allows a Markdown value will still be encoded as fooString because Markdown is a profile of string.- Default:
org.hl7.fhir.instance.model.api.IBaseDatatype.class
-