Package ca.uhn.fhir.model.api.annotation
Annotation Type Child
Field annotation for fields within resource and datatype definitions, indicating
a child of that type.
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
The maximum number of repetitions allowed for this child.int
The minimum number of repetitions allowed for this childboolean
Is this element a modifier?int
The order in which this field comes within its parent.boolean
Should this element be included in the summary viewLists the allowable types for this field, if the field supports multiple types (otherwise does not need to be populated). -
Field Summary
-
Field Details
-
ORDER_UNKNOWN
Constant value to supply fororder()
when the order is defined elsewhere- See Also:
-
MAX_UNLIMITED
Constant value to supply formax()
to indicate '*' (no maximum)- See Also:
-
REPLACE_PARENT
Constant value to supply fororder()
to indicate that this child should replace the entry in the superclass with the same name (and take itsorder
value in the process). This is useful if you wish to redefine an existing field in a resource/type definition in order to constrain/extend it.- See Also:
-
-
Element Details
-
name
The name of this field, as it will appear in serialized versions of the message -
order
int orderThe order in which this field comes within its parent. The first field should have a value of 0, the second a value of 1, etc.- Default:
-1
-
min
int minThe minimum number of repetitions allowed for this child- Default:
0
-
max
int maxThe maximum number of repetitions allowed for this child. Should be set toMAX_UNLIMITED
if there is no limit to the number of repetitions.- Default:
1
-
type
Lists the allowable types for this field, if the field supports multiple types (otherwise does not need to be populated).For example, if this field supports either DateTimeDt or BooleanDt types, those two classes should be supplied here.
- Default:
{}
-
modifier
boolean modifierIs this element a modifier?- Default:
false
-
summary
boolean summaryShould this element be included in the summary view- Default:
false
-