
Package ca.uhn.fhir.rest.annotation
Annotation Interface OperationParam
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionintThe maximum number of repetitions allowed for this child.intThe 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 asCodingorbase64Binary.
- 
Field SummaryFields
- 
Field Details- 
MAX_UNLIMITEDValue formax()indicating no maximum- See Also:
 
- 
MAX_DEFAULTValue 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
- See Also:
 
 
- 
- 
Element Details- 
nameThe name of the parameter
- 
typeThe 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. StringDt.class
- A RESTful search parameter type, e.g. StringParam.class
 - Default:
- org.hl7.fhir.instance.model.api.IBase.class
 
- A resource type, e.g. 
- 
typeNameOptionally 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 asIPrimitiveTypeorICompositeType.- Default:
- ""
 
- 
minint minThe minimum number of repetitions allowed for this child (default is 0)- Default:
- 0
 
- 
maxint maxThe 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
 
 
-