
Package ca.uhn.fhir.rest.param
Class TokenParam
java.lang.Object
ca.uhn.fhir.rest.param.BaseParam
ca.uhn.fhir.rest.param.TokenParam
- All Implemented Interfaces:
IQueryParameterType,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorTokenParam(BaseCodingDt theCodingDt) Constructor which copies thesystemandcodefrom aInternalCodingDtinstance and adds it as a parameterTokenParam(BaseIdentifierDt theIdentifierDt) Constructor which copies thesystemandvaluefrom aBaseIdentifierDtinstance and adds it as a parameterTokenParam(String theCode) Constructor that takes a code but no systemTokenParam(String theSystem, String theValue) TokenParam(String theSystem, String theValue, boolean theText) TokenParam(IBaseCoding theCoding) Construct aTokenParamfrom theIBaseCoding.getSystem()() system} andIBaseCoding.getCode()() code} of aIBaseCodinginstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the modifier for this tokenReturns the system for this token.getValue()Returns the value for the token (generally the value to the right of the vertical bar on the URL)inthashCode()booleanisEmpty()Returns true if this parameter has a null or emptyBaseParam.getValueAsQueryToken()value, and doesn't have aBaseParam.getMissing()value.booleanbooleanisText()Returns true ifgetModifier()returnsTokenParamModifier.TEXTsetMdmExpand(boolean theMdmExpand) setModifier(TokenParamModifier theModifier) setText(boolean theText) Deprecated.toString()Methods inherited from class ca.uhn.fhir.rest.param.BaseParam
getMissing, getQueryParameterQualifier, getValueAsQueryToken, isSupportsChain, setMissing, setValueAsQueryTokenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.fhir.model.api.IQueryParameterType
getValueAsQueryToken
-
Constructor Details
-
TokenParam
public TokenParam()Constructor -
TokenParam
Constructor which copies thesystemandcodefrom aInternalCodingDtinstance and adds it as a parameter- Parameters:
theCodingDt- The coding
-
TokenParam
Constructor which copies thesystemandvaluefrom aBaseIdentifierDtinstance and adds it as a parameter- Parameters:
theIdentifierDt- The identifier
-
TokenParam
Construct aTokenParamfrom theIBaseCoding.getSystem()() system} andIBaseCoding.getCode()() code} of aIBaseCodinginstance.- Parameters:
theCoding- The coding
-
TokenParam
-
TokenParam
-
TokenParam
Constructor that takes a code but no system
-
-
Method Details
-
isMdmExpand
-
setMdmExpand
-
getModifier
Returns the modifier for this token -
setModifier
-
getSystem
Returns the system for this token. Note that if agetModifier()is being used, the entire value of the parameter will be placed invalueand this method will returnnull.Also note that this value may be
nullor""(empty string) and that each of these have a different meaning. When a token is passed on a URL and it has no vertical bar (often meaning "return values that match the given code in any codesystem") this method will returnnull. When a token is passed on a URL and it has a vetical bar but nothing before the bar (often meaning "return values that match the given code but that have no codesystem) this method will return"" -
setSystem
-
getValue
Returns the value for the token (generally the value to the right of the vertical bar on the URL) -
setValue
-
getValueAsCoding
-
getValueNotNull
-
isEmpty
Description copied from class:BaseParamReturns true if this parameter has a null or emptyBaseParam.getValueAsQueryToken()value, and doesn't have aBaseParam.getMissing()value.- Specified by:
isEmptyin interfaceIQueryParameterType- Overrides:
isEmptyin classBaseParam
-
isText
Returns true ifgetModifier()returnsTokenParamModifier.TEXT -
setText
Deprecated.UsesetModifier(TokenParamModifier)instead -
toString
-
equals
-
hashCode
-
setModifier(TokenParamModifier)instead