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
-
Method Summary
Modifier and TypeMethodDescriptionList
<ca.uhn.fhir.rest.api.QualifiedParamList> getName()
ca.uhn.fhir.rest.api.RestSearchParameterTypeEnum
Returns null if blacklist is "none"Returns null if whitelist is "all"Class
<?> getType()
boolean
Parameter should return true ifBaseQueryParameter.parse(FhirContext, List)
should be called even if the query string contained no values for the given parameterboolean
parse
(ca.uhn.fhir.context.FhirContext theContext, List<ca.uhn.fhir.rest.api.QualifiedParamList> theString) void
setChainLists
(String[] theChainWhitelist, String[] theChainBlacklist) void
setCompositeTypes
(Class<? extends ca.uhn.fhir.model.api.IQueryParameterType>[] theCompositeTypes) void
setDeclaredTypes
(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>[] theTypes) void
setDescription
(String theDescription) void
void
setRequired
(boolean required) void
setType
(ca.uhn.fhir.context.FhirContext theContext, Class<?> theType, Class<? extends Collection<?>> theInnerCollectionType, Class<? extends Collection<?>> theOuterCollectionType) protected boolean
toString()
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:
encode
in classBaseQueryParameter
- Throws:
ca.uhn.fhir.rest.server.exceptions.InternalErrorException
-
getDeclaredTypes
-
getDescription
-
getName
- Specified by:
getName
in classBaseQueryParameter
-
getParamType
- Specified by:
getParamType
in classBaseQueryParameter
-
getQualifierBlacklist
Description copied from class:BaseQueryParameter
Returns null if blacklist is "none"- Overrides:
getQualifierBlacklist
in classBaseQueryParameter
-
getQualifierWhitelist
Description copied from class:BaseQueryParameter
Returns null if whitelist is "all"- Overrides:
getQualifierWhitelist
in classBaseQueryParameter
-
getType
-
handlesMissing
Description copied from class:BaseQueryParameter
Parameter should return true ifBaseQueryParameter.parse(FhirContext, List)
should be called even if the query string contained no values for the given parameter- Specified by:
handlesMissing
in classBaseQueryParameter
-
isRequired
- Specified by:
isRequired
in 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:
parse
in classBaseQueryParameter
- Throws:
ca.uhn.fhir.rest.server.exceptions.InternalErrorException
ca.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:
supportsRepetition
in classBaseQueryParameter
-
setType
public void setType(ca.uhn.fhir.context.FhirContext theContext, Class<?> theType, Class<? extends Collection<?>> theInnerCollectionType, Class<? extends Collection<?>> theOuterCollectionType) -
toString
-