Package ca.uhn.fhir.rest.annotation
Annotation Type OperationParam
-
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 child (default is 0)The type of the parameter.Optionally specifies the type of the parameter as a string, such asCoding
orbase64Binary
. -
Field Summary
-
Field Details
-
MAX_UNLIMITED
Value formax()
indicating no maximum- See Also:
-
MAX_DEFAULT
Value formax()
indicating that the maximum will be inferred from the type. If the type is a single parameter type (e.g.StringDt
,TokenParam
,IBaseResource
) the maximum will be1
.If the type is a collection, e.g.
List<StringDt>
orList<TokenOrListParam>
the maximum will be set to*
. If the param is a search parameter "and" type, such asTokenAndListParam
the maximum will also be set to*
- Since:
- 1.5
- See Also:
-
-
Element Details
-
name
The name of the parameter -
type
The type of the parameter. This will only have effect on@OperationParam
annotations specified as values forOperation.returnParameters()
, otherwise the value will be ignored. Value should be one of:- A resource type, e.g.
Patient.class
- A datatype, e.g.
or CodeableConceptDt.classStringDt
.class - A RESTful search parameter type, e.g.
StringParam
.class
- Default:
org.hl7.fhir.instance.model.api.IBase.class
- A resource type, e.g.
-
typeName
Optionally specifies the type of the parameter as a string, such asCoding
orbase64Binary
. This can be useful if you want to use a generic interface type on the actual method,such asIPrimitiveType
orinvalid @link
{@link @org.hl7.fhir.instance.model.api.ICompositeType
- Default:
""
-
min
int minThe minimum number of repetitions allowed for this child (default is 0)- 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. SeeMAX_DEFAULT
for a description of the default behaviour.- Default:
-2
-