
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 int
MAX_UNLIMITED
Constant value to supply formax()
to indicate '*' (no maximum)static int
ORDER_UNKNOWN
Constant value to supply fororder()
when the order is defined elsewherestatic int
REPLACE_PARENT
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
max
The maximum number of repetitions allowed for this child.int
min
The minimum number of repetitions allowed for this childboolean
modifier
Is this element a modifier?int
order
The order in which this field comes within its parent.boolean
summary
Should this element be included in the summary viewClass<? extends IElement>[]
type
Lists 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_UNLIMITED
if 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
-
-