Package ca.uhn.fhir.model.api.annotation
Annotation Type Child
-
@Retention(RUNTIME) @Target(FIELD) public @interface Child
Field annotation for fields within resource and datatype definitions, indicating a child of that type.
-
-
Field Summary
Fields Modifier and Type Fields Description static intMAX_UNLIMITEDConstant value to supply formax()to indicate '*' (no maximum)static intORDER_UNKNOWNConstant value to supply fororder()when the order is defined elsewherestatic intREPLACE_PARENT
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intmaxThe maximum number of repetitions allowed for this child.intminThe minimum number of repetitions allowed for this childbooleanmodifierIs this element a modifier?intorderThe order in which this field comes within its parent.booleansummaryShould this element be included in the summary viewClass<? extends IElement>[]typeLists the allowable types for this field, if the field supports multiple types (otherwise does not need to be populated).
-
-
-
Field Detail
-
ORDER_UNKNOWN
static final int ORDER_UNKNOWN
Constant value to supply fororder()when the order is defined elsewhere
-
-
-
MAX_UNLIMITED
static final int MAX_UNLIMITED
Constant value to supply formax()to indicate '*' (no maximum)
-
-
-
REPLACE_PARENT
static final int REPLACE_PARENT
-
-
-
order
int order
The 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 min
The minimum number of repetitions allowed for this child- Default:
- 0
-
-
-
max
int max
The maximum number of repetitions allowed for this child. Should be set toMAX_UNLIMITEDif there is no limit to the number of repetitions.- Default:
- 1
-
-
-
modifier
boolean modifier
Is this element a modifier?- Default:
- false
-
-
-
summary
boolean summary
Should this element be included in the summary view- Default:
- false
-
-