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:
- Serialized Form
-
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()booleanisText()Returns true ifgetModifier()returnsTokenParamModifier.TEXTsetModifier(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 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
-
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.null 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