Package com.ibm.fhir.search.parameters
Class QueryParameterValue
- java.lang.Object
-
- com.ibm.fhir.search.parameters.QueryParameterValue
-
public class QueryParameterValue extends java.lang.ObjectA search parameter value for a given search parameter that was passed in a search query
-
-
Constructor Summary
Constructors Constructor Description QueryParameterValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponent(QueryParameter... component)java.util.List<QueryParameter>getComponent()SearchConstants.PrefixgetPrefix()java.lang.StringgetValueCode()java.lang.StringgetValueDate()java.time.InstantgetValueDateLowerBound()java.time.InstantgetValueDateUpperBound()java.math.BigDecimalgetValueNumber()java.lang.StringgetValueString()java.lang.StringgetValueSystem()booleanisHidden()booleanisOfTypeModifier()Gets whether the value is of an :of-type modifier.voidsetComponent(java.util.Collection<QueryParameter> component)voidsetHidden(boolean hidden)voidsetOfTypeModifier(boolean ofTypeModifier)Sets whether the value is of an :of-type modifier.voidsetPrefix(SearchConstants.Prefix prefix)voidsetValueCode(java.lang.String valueCode)voidsetValueDate(java.lang.String valueDate)voidsetValueDateLowerBound(java.time.Instant valueDateLowerBound)voidsetValueDateUpperBound(java.time.Instant valueDateUpperBound)voidsetValueNumber(java.math.BigDecimal valueNumber)voidsetValueString(java.lang.String valueString)voidsetValueSystem(java.lang.String valueSystem)java.lang.StringtoString()Serialize the ParameterValue to a query parameter stringQueryParameterValuewithPrefix(SearchConstants.Prefix prefix)
-
-
-
Method Detail
-
setPrefix
public void setPrefix(SearchConstants.Prefix prefix)
-
withPrefix
public QueryParameterValue withPrefix(SearchConstants.Prefix prefix)
-
getPrefix
public SearchConstants.Prefix getPrefix()
-
getValueString
public java.lang.String getValueString()
-
setValueString
public void setValueString(java.lang.String valueString)
-
getValueNumber
public java.math.BigDecimal getValueNumber()
-
setValueNumber
public void setValueNumber(java.math.BigDecimal valueNumber)
-
getValueSystem
public java.lang.String getValueSystem()
-
setValueSystem
public void setValueSystem(java.lang.String valueSystem)
-
getValueCode
public java.lang.String getValueCode()
-
setValueCode
public void setValueCode(java.lang.String valueCode)
-
getValueDate
public java.lang.String getValueDate()
-
setValueDate
public void setValueDate(java.lang.String valueDate)
-
getValueDateLowerBound
public java.time.Instant getValueDateLowerBound()
-
setValueDateLowerBound
public void setValueDateLowerBound(java.time.Instant valueDateLowerBound)
-
getValueDateUpperBound
public java.time.Instant getValueDateUpperBound()
-
setValueDateUpperBound
public void setValueDateUpperBound(java.time.Instant valueDateUpperBound)
-
getComponent
public java.util.List<QueryParameter> getComponent()
- Returns:
- the component
-
addComponent
public void addComponent(QueryParameter... component)
- Parameters:
component- the components to add
-
setComponent
public void setComponent(java.util.Collection<QueryParameter> component)
- Parameters:
component- the component to set
-
isHidden
public boolean isHidden()
- Returns:
- the hidden
-
setHidden
public void setHidden(boolean hidden)
- Parameters:
b-
-
isOfTypeModifier
public boolean isOfTypeModifier()
Gets whether the value is of an :of-type modifier.- Returns:
- true or false
-
setOfTypeModifier
public void setOfTypeModifier(boolean ofTypeModifier)
Sets whether the value is of an :of-type modifier.- Parameters:
ofTypeModifier- true if value is of an :of-type modifier, otherwise false
-
toString
public java.lang.String toString()
Serialize the ParameterValue to a query parameter string- Overrides:
toStringin classjava.lang.Object
-
-