Package ca.uhn.fhir.rest.annotation
Annotation Type OperationParam
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface OperationParam
-
-
Field Summary
Fields Modifier and Type Fields Description static intMAX_DEFAULTValue formax()indicating that the maximum will be inferred from the type.static intMAX_UNLIMITEDValue formax()indicating no maximum
-
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 child (default is 0)Class<? extends IBase>typeThe type of the parameter.StringtypeNameOptionally specifies the type of the parameter as a string, such asCodingorbase64Binary.
-
-
-
Field Detail
-
MAX_UNLIMITED
static final int MAX_UNLIMITED
Value formax()indicating no maximum
-
-
-
MAX_DEFAULT
static final int 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 asTokenAndListParamthe maximum will also be set to*- Since:
- 1.5
-
-
-
type
Class<? extends IBase> type
The type of the parameter. This will only have effect on@OperationParamannotations 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
String typeName
Optionally specifies the type of the parameter as a string, such asCodingorbase64Binary. This can be useful if you want to use a generic interface type on the actual method,such asIPrimitiveTypeor {@link @org.hl7.fhir.instance.model.api.ICompositeType}.- Default:
- ""
-
-
-
min
int min
The minimum number of repetitions allowed for this child (default is 0)- 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. SeeMAX_DEFAULTfor a description of the default behaviour.- Default:
- -2
-
-