
Package ca.uhn.fhir.rest.server.method
Class SearchParameter
java.lang.Object
ca.uhn.fhir.rest.server.method.BaseQueryParameter
ca.uhn.fhir.rest.server.method.SearchParameter
- All Implemented Interfaces:
IParameter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<ca.uhn.fhir.rest.api.QualifiedParamList> getName()ca.uhn.fhir.rest.api.RestSearchParameterTypeEnumReturns null if blacklist is "none"Returns null if whitelist is "all"Class<?> getType()booleanParameter should return true ifBaseQueryParameter.parse(FhirContext, List)should be called even if the query string contained no values for the given parameterbooleanparse(ca.uhn.fhir.context.FhirContext theContext, List<ca.uhn.fhir.rest.api.QualifiedParamList> theString) voidsetChainLists(String[] theChainWhitelist, String[] theChainBlacklist) voidsetCompositeTypes(Class<? extends ca.uhn.fhir.model.api.IQueryParameterType>[] theCompositeTypes) voidsetDeclaredTypes(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>[] theTypes) voidsetDescription(String theDescription) voidvoidsetRequired(boolean required) voidsetType(ca.uhn.fhir.context.FhirContext theContext, Class<?> theType, Class<? extends Collection<?>> theInnerCollectionType, Class<? extends Collection<?>> theOuterCollectionType) protected booleantoString()Methods inherited from class ca.uhn.fhir.rest.server.method.BaseQueryParameter
initializeTypes, translateQueryParametersIntoServerArgument
-
Constructor Details
-
SearchParameter
public SearchParameter() -
SearchParameter
-
-
Method Details
-
encode
public List<ca.uhn.fhir.rest.api.QualifiedParamList> encode(ca.uhn.fhir.context.FhirContext theContext, Object theObject) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException - Specified by:
encodein classBaseQueryParameter- Throws:
ca.uhn.fhir.rest.server.exceptions.InternalErrorException
-
getDeclaredTypes
-
getDescription
-
getName
- Specified by:
getNamein classBaseQueryParameter
-
getParamType
- Specified by:
getParamTypein classBaseQueryParameter
-
getQualifierBlacklist
Description copied from class:BaseQueryParameterReturns null if blacklist is "none"- Overrides:
getQualifierBlacklistin classBaseQueryParameter
-
getQualifierWhitelist
Description copied from class:BaseQueryParameterReturns null if whitelist is "all"- Overrides:
getQualifierWhitelistin classBaseQueryParameter
-
getType
-
handlesMissing
Description copied from class:BaseQueryParameterParameter should return true ifBaseQueryParameter.parse(FhirContext, List)should be called even if the query string contained no values for the given parameter- Specified by:
handlesMissingin classBaseQueryParameter
-
isRequired
- Specified by:
isRequiredin classBaseQueryParameter
-
parse
public Object parse(ca.uhn.fhir.context.FhirContext theContext, List<ca.uhn.fhir.rest.api.QualifiedParamList> theString) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException, ca.uhn.fhir.rest.server.exceptions.InvalidRequestException - Specified by:
parsein classBaseQueryParameter- Throws:
ca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionca.uhn.fhir.rest.server.exceptions.InvalidRequestException
-
setChainLists
-
setCompositeTypes
public void setCompositeTypes(Class<? extends ca.uhn.fhir.model.api.IQueryParameterType>[] theCompositeTypes) -
setDeclaredTypes
public void setDeclaredTypes(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>[] theTypes) -
setDescription
-
setName
-
setRequired
-
supportsRepetition
- Specified by:
supportsRepetitionin classBaseQueryParameter
-
setType
public void setType(ca.uhn.fhir.context.FhirContext theContext, Class<?> theType, Class<? extends Collection<?>> theInnerCollectionType, Class<? extends Collection<?>> theOuterCollectionType) -
toString
-