@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface OperationParam
| Modifier and Type | Fields and Description |
|---|---|
static int |
MAX_DEFAULT
Value for
max() indicating that the maximum will be inferred
from the type. |
static int |
MAX_UNLIMITED
Value for
max() indicating no maximum |
| Modifier and Type | Required Element and Description |
|---|---|
String |
name
The name of the parameter
|
| Modifier and Type | Optional Element and Description |
|---|---|
int |
max
The maximum number of repetitions allowed for this child.
|
int |
min
The minimum number of repetitions allowed for this child (default is 0)
|
Class<? extends IBase> |
type
The type of the parameter.
|
String |
typeName
Optionally specifies the type of the parameter as a string, such as
Coding or
base64Binary. |
public static final int MAX_UNLIMITED
max() indicating no maximumpublic static final int MAX_DEFAULT
max() 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 be
1.
If the type is a collection, e.g.
List<StringDt> or List<TokenOrListParam>
the maximum will be set to *. If the param is a search parameter
"and" type, such as TokenAndListParam the maximum will also be
set to *
public abstract Class<? extends IBase> type
@OperationParam
annotations specified as values for Operation.returnParameters(), otherwise the
value will be ignored. Value should be one of:
Patient.classStringDt.class or CodeableConceptDt.class
StringParam.class
public abstract String typeName
Coding or
base64Binary. This can be useful if you want to use a generic interface type
on the actual method,such as IPrimitiveType or
@org.hl7.fhir.instance.model.api.ICompositeType.public abstract int min
public abstract int max
MAX_UNLIMITED if there is no limit to the number of
repetitions. See MAX_DEFAULT for a description of the default
behaviour.Copyright © 2014–2019 University Health Network. All rights reserved.