Class QueryParameterValue
- java.lang.Object
-
- org.linuxforhealth.fhir.search.parameters.QueryParameterValue
-
public class QueryParameterValue extends java.lang.Object
A 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 void
addComponent(QueryParameter... component)
java.util.List<QueryParameter>
getComponent()
SearchConstants.Prefix
getPrefix()
java.lang.String
getValueCode()
java.lang.String
getValueDate()
java.time.Instant
getValueDateLowerBound()
java.time.Instant
getValueDateUpperBound()
java.math.BigDecimal
getValueNumber()
java.lang.String
getValueString()
java.lang.String
getValueSystem()
boolean
isHidden()
boolean
isOfTypeModifier()
Gets whether the value is of an :of-type modifier.void
setComponent(java.util.Collection<QueryParameter> component)
void
setHidden(boolean hidden)
void
setOfTypeModifier(boolean ofTypeModifier)
Sets whether the value is of an :of-type modifier.void
setPrefix(SearchConstants.Prefix prefix)
void
setValueCode(java.lang.String valueCode)
void
setValueDate(java.lang.String valueDate)
void
setValueDateLowerBound(java.time.Instant valueDateLowerBound)
void
setValueDateUpperBound(java.time.Instant valueDateUpperBound)
void
setValueNumber(java.math.BigDecimal valueNumber)
void
setValueString(java.lang.String valueString)
void
setValueSystem(java.lang.String valueSystem)
java.lang.String
toString()
Serialize the ParameterValue to a query parameter stringQueryParameterValue
withPrefix(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:
toString
in classjava.lang.Object
-
-