Package ca.uhn.fhir.rest.param
Class UriParam
- java.lang.Object
-
- ca.uhn.fhir.rest.param.UriParam
-
- All Implemented Interfaces:
IQueryParameterType,Serializable
public class UriParam extends Object implements IQueryParameterType
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetMissing()If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal valueUriParamQualifierEnumgetQualifier()Gets the qualifier for this param (may benulland generally will be)StringgetQueryParameterQualifier()This method will return any qualifier that should be appended to the parameter name (e.g ":exact").StringgetValue()StringgetValueAsQueryToken(FhirContext theContext)Returns a representation of this parameter's value as it will be represented "over the wire".StringDtgetValueAsStringDt()UriDtgetValueAsUriDt()StringgetValueNotNull()booleanisEmpty()protected booleanisSupportsChain()Does this parameter type support chained parameters (only reference should returntruefor this)ca.uhn.fhir.rest.param.BaseParamsetMissing(Boolean theMissing)If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal valueUriParamsetQualifier(UriParamQualifierEnum theQualifier)Sets the qualifier for this param (may benulland generally will be)UriParamsetValue(String theValue)Sets the value for this paramvoidsetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue)This method is generally only called by HAPI itself, and should not need to be called from user code.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ca.uhn.fhir.model.api.IQueryParameterType
getMissing, getQueryParameterQualifier, getValueAsQueryToken, setMissing, setValueAsQueryToken
-
-
-
-
Method Detail
-
getQualifier
public UriParamQualifierEnum getQualifier()
Gets the qualifier for this param (may benulland generally will be)
-
getValueAsStringDt
public StringDt getValueAsStringDt()
-
getValueAsUriDt
public UriDt getValueAsUriDt()
-
getValueNotNull
public String getValueNotNull()
-
isEmpty
public boolean isEmpty()
-
setQualifier
public UriParam setQualifier(UriParamQualifierEnum theQualifier)
Sets the qualifier for this param (may benulland generally will be)- Returns:
- Returns a reference to
thisfor easy method chanining
-
setValue
public UriParam setValue(String theValue)
Sets the value for this param- Returns:
- Returns a reference to
thisfor easy method chanining
-
getMissing
public Boolean getMissing()
If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal value- Specified by:
getMissingin interfaceIQueryParameterType
-
getQueryParameterQualifier
public final String getQueryParameterQualifier()
Description copied from interface:IQueryParameterTypeThis method will return any qualifier that should be appended to the parameter name (e.g ":exact"). Returns null if none are present.- Specified by:
getQueryParameterQualifierin interfaceIQueryParameterType
-
getValueAsQueryToken
public final String getValueAsQueryToken(FhirContext theContext)
Description copied from interface:IQueryParameterTypeReturns a representation of this parameter's value as it will be represented "over the wire". In other words, how it will be presented in a URL (although not URL escaped)See FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
- Specified by:
getValueAsQueryTokenin interfaceIQueryParameterType- Parameters:
theContext- TODO- Returns:
- Returns a representation of this parameter's value as it will be represented "over the wire". In other words, how it will be presented in a URL (although not URL escaped)
-
isSupportsChain
protected boolean isSupportsChain()
Does this parameter type support chained parameters (only reference should returntruefor this)
-
setMissing
public ca.uhn.fhir.rest.param.BaseParam setMissing(Boolean theMissing)
If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal value- Specified by:
setMissingin interfaceIQueryParameterType- Returns:
- Returns a reference to
thisfor easier method chaining
-
setValueAsQueryToken
public final void setValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue)
Description copied from interface:IQueryParameterTypeThis method is generally only called by HAPI itself, and should not need to be called from user code.See FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
- Specified by:
setValueAsQueryTokenin interfaceIQueryParameterType- Parameters:
theContext- TODOtheParamName- TODOtheQualifier- The parameter name qualifier that accompanied this value. For example, if the complete query washttp://foo?name:exact=John, qualifier would be ":exact"theValue- The actual parameter value. For example, if the complete query washttp://foo?name:exact=John, the value would be "John"
-
-