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
ConstructorDescriptionConstructorTokenParam
(BaseCodingDt theCodingDt) Constructor which copies thesystem
andcode
from aInternalCodingDt
instance and adds it as a parameterTokenParam
(BaseIdentifierDt theIdentifierDt) Constructor which copies thesystem
andvalue
from aBaseIdentifierDt
instance 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 aTokenParam
from theIBaseCoding.getSystem()
() system} andIBaseCoding.getCode()
() code} of aIBaseCoding
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns 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)int
hashCode()
boolean
isEmpty()
boolean
boolean
isText()
Returns true ifgetModifier()
returnsTokenParamModifier.TEXT
setMdmExpand
(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, setValueAsQueryToken
-
Constructor Details
-
TokenParam
public TokenParam()Constructor -
TokenParam
Constructor which copies thesystem
andcode
from aInternalCodingDt
instance and adds it as a parameter- Parameters:
theCodingDt
- The coding
-
TokenParam
Constructor which copies thesystem
andvalue
from aBaseIdentifierDt
instance and adds it as a parameter- Parameters:
theIdentifierDt
- The identifier
-
TokenParam
Construct aTokenParam
from theIBaseCoding.getSystem()
() system} andIBaseCoding.getCode()
() code} of aIBaseCoding
instance.- 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 invalue
and this method will returnnull
. invalid input: '<'p Also note that this value may benull
or""
(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
-
isText
Returns true ifgetModifier()
returnsTokenParamModifier.TEXT
-
setText
Deprecated.UsesetModifier(TokenParamModifier)
instead -
toString
-
equals
-
hashCode
-
setModifier(TokenParamModifier)
instead