public abstract class BaseQueryParameter extends Object implements IParameter
| Constructor and Description |
|---|
BaseQueryParameter() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<QualifiedParamList> |
encode(FhirContext theContext,
Object theObject) |
abstract String |
getName() |
abstract RestSearchParameterTypeEnum |
getParamType() |
abstract boolean |
handlesMissing()
Parameter should return true if
parse(FhirContext, List) should be called even if the query string
contained no values for the given parameter |
void |
initializeTypes(Method theMethod,
Class<? extends Collection<?>> theOuterCollectionType,
Class<? extends Collection<?>> theInnerCollectionType,
Class<?> theParameterType) |
abstract boolean |
isRequired() |
abstract Object |
parse(FhirContext theContext,
List<QualifiedParamList> theString) |
void |
translateClientArgumentIntoQueryArgument(FhirContext theContext,
Object theSourceClientArgument,
Map<String,List<String>> theTargetQueryArguments,
IBaseResource theTargetResource) |
public BaseQueryParameter()
public abstract List<QualifiedParamList> encode(FhirContext theContext, Object theObject) throws InternalErrorException
InternalErrorExceptionpublic abstract RestSearchParameterTypeEnum getParamType()
public abstract boolean handlesMissing()
parse(FhirContext, List) should be called even if the query string
contained no values for the given parameterpublic void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)
initializeTypes in interface IParameterpublic abstract boolean isRequired()
public abstract Object parse(FhirContext theContext, List<QualifiedParamList> theString) throws InternalErrorException, InvalidRequestException
public void translateClientArgumentIntoQueryArgument(FhirContext theContext, Object theSourceClientArgument, Map<String,List<String>> theTargetQueryArguments, IBaseResource theTargetResource) throws InternalErrorException
translateClientArgumentIntoQueryArgument in interface IParameterInternalErrorExceptionCopyright © 2014–2018 University Health Network. All rights reserved.