public class SearchParameter extends BaseQueryParameter
| Constructor and Description |
|---|
SearchParameter() |
SearchParameter(String theName,
boolean theRequired) |
| Modifier and Type | Method and 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() |
String |
getDescription() |
String |
getName() |
ca.uhn.fhir.rest.api.RestSearchParameterTypeEnum |
getParamType() |
Class<?> |
getType() |
boolean |
handlesMissing()
Parameter should return true if
BaseQueryParameter.parse(FhirContext, List) should be called even if the query string
contained no values for the given parameter |
boolean |
isRequired() |
Object |
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 |
setName(String name) |
void |
setRequired(boolean required) |
void |
setType(ca.uhn.fhir.context.FhirContext theContext,
Class<?> type,
Class<? extends Collection<?>> theInnerCollectionType,
Class<? extends Collection<?>> theOuterCollectionType) |
String |
toString() |
initializeTypes, translateClientArgumentIntoQueryArgumentpublic SearchParameter()
public SearchParameter(String theName, boolean theRequired)
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
encode in class BaseQueryParameterca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionpublic List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> getDeclaredTypes()
public String getDescription()
public String getName()
getName in class BaseQueryParameterpublic ca.uhn.fhir.rest.api.RestSearchParameterTypeEnum getParamType()
getParamType in class BaseQueryParameterpublic boolean handlesMissing()
BaseQueryParameterBaseQueryParameter.parse(FhirContext, List) should be called even if the query string
contained no values for the given parameterhandlesMissing in class BaseQueryParameterpublic boolean isRequired()
isRequired in class BaseQueryParameterpublic 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
parse in class BaseQueryParameterca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionca.uhn.fhir.rest.server.exceptions.InvalidRequestExceptionpublic void setChainlists(String[] theChainWhitelist, String[] theChainBlacklist)
public void setCompositeTypes(Class<? extends ca.uhn.fhir.model.api.IQueryParameterType>[] theCompositeTypes)
public void setDeclaredTypes(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>[] theTypes)
public void setDescription(String theDescription)
public void setRequired(boolean required)
public void setType(ca.uhn.fhir.context.FhirContext theContext, Class<?> type, Class<? extends Collection<?>> theInnerCollectionType, Class<? extends Collection<?>> theOuterCollectionType)
Copyright © 2014–2019 University Health Network. All rights reserved.