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
public class SearchParameter extends BaseQueryParameter
-
-
Constructor Summary
Constructors Constructor Description SearchParameter()SearchParameter(String theName, boolean theRequired)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ca.uhn.fhir.rest.api.QualifiedParamList>encode(ca.uhn.fhir.context.FhirContext theContext, Object theObject)List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>>getDeclaredTypes()StringgetDescription()StringgetName()ca.uhn.fhir.rest.api.RestSearchParameterTypeEnumgetParamType()Set<String>getQualifierBlacklist()Returns null if blacklist is "none"Set<String>getQualifierWhitelist()Returns null if whitelist is "all"Class<?>getType()booleanhandlesMissing()Parameter should return true ifBaseQueryParameter.parse(FhirContext, List)should be called even if the query string contained no values for the given parameterbooleanisRequired()Objectparse(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)voidsetName(String name)voidsetRequired(boolean required)voidsetType(ca.uhn.fhir.context.FhirContext theContext, Class<?> type, Class<? extends Collection<?>> theInnerCollectionType, Class<? extends Collection<?>> theOuterCollectionType)StringtoString()-
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseQueryParameter
initializeTypes, translateQueryParametersIntoServerArgument
-
-
-
-
Constructor Detail
-
SearchParameter
public SearchParameter()
-
SearchParameter
public SearchParameter(String theName, boolean theRequired)
-
-
Method Detail
-
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
public List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> getDeclaredTypes()
-
getDescription
public String getDescription()
-
getName
public String getName()
- Specified by:
getNamein classBaseQueryParameter
-
getParamType
public ca.uhn.fhir.rest.api.RestSearchParameterTypeEnum getParamType()
- Specified by:
getParamTypein classBaseQueryParameter
-
getQualifierBlacklist
public Set<String> getQualifierBlacklist()
Description copied from class:BaseQueryParameterReturns null if blacklist is "none"- Overrides:
getQualifierBlacklistin classBaseQueryParameter
-
getQualifierWhitelist
public Set<String> getQualifierWhitelist()
Description copied from class:BaseQueryParameterReturns null if whitelist is "all"- Overrides:
getQualifierWhitelistin classBaseQueryParameter
-
handlesMissing
public boolean 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
public boolean 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
public void setChainlists(String[] theChainWhitelist, String[] theChainBlacklist)
-
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
public void setDescription(String theDescription)
-
setRequired
public void setRequired(boolean required)
-
setType
public void setType(ca.uhn.fhir.context.FhirContext theContext, Class<?> type, Class<? extends Collection<?>> theInnerCollectionType, Class<? extends Collection<?>> theOuterCollectionType)
-
-