public class DateParam extends DateTimeDt implements IQueryParameterType, IQueryParameterOr<DateParam>
DEFAULT_PRECISION| Constructor and Description |
|---|
DateParam()
Constructor
|
DateParam(QuantityCompararatorEnum theComparator,
Date theDate)
Constructor
|
DateParam(QuantityCompararatorEnum theComparator,
DateTimeDt theDate)
Constructor
|
DateParam(QuantityCompararatorEnum theComparator,
IPrimitiveType<Date> theDate)
Constructor
|
DateParam(QuantityCompararatorEnum theComparator,
long theDate)
Constructor
|
DateParam(QuantityCompararatorEnum theComparator,
String theDate)
Constructor
|
DateParam(String theString)
Constructor which takes a complete [qualifier]{date} string.
|
| Modifier and Type | Method and Description |
|---|---|
QuantityCompararatorEnum |
getComparator()
Returns the comparator, or
null if none has been set |
Boolean |
getMissing()
If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale
instead of a normal value
|
String |
getQueryParameterQualifier()
This method will return any qualifier that should be appended to the parameter name (e.g ":exact")
|
DateTimeDt |
getValueAsDateTimeDt() |
InstantDt |
getValueAsInstantDt() |
String |
getValueAsQueryToken()
Returns a representation of this parameter's value as it will be represented "over the wire".
|
List<DateParam> |
getValuesAsQueryTokens() |
boolean |
isEmpty()
Returns
true if no date/time is specified. |
void |
setComparator(QuantityCompararatorEnum theComparator) |
void |
setMissing(Boolean theMissing)
If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale
instead of a normal value
|
DateParam |
setValue(Date theValue)
Sets the value for this type using the given Java Date object as the time, and using the default precision for this datatype, as well as the local timezone as determined by the local operating
system.
|
void |
setValueAsQueryToken(String theQualifier,
String theValue)
This method is generally only called by HAPI itself, and should not need to be called from user code.
|
void |
setValuesAsQueryTokens(QualifiedParamList theParameters) |
String |
toString() |
getDefaultPrecisionForDatatype, withCurrentTimeencode, getPrecision, getTimeZone, isTimeZoneZulu, isToday, parse, setPrecision, setTimeZone, setTimeZoneZulu, setValue, setValueAsString, toHumanDisplay, toHumanDisplayLocalTimezoneequals, getValue, getValueAsString, hashCode, readExternal, updateStringValue, writeExternalgetElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic DateParam()
public DateParam(QuantityCompararatorEnum theComparator, Date theDate)
public DateParam(QuantityCompararatorEnum theComparator, DateTimeDt theDate)
public DateParam(QuantityCompararatorEnum theComparator, IPrimitiveType<Date> theDate)
public DateParam(QuantityCompararatorEnum theComparator, long theDate)
public DateParam(QuantityCompararatorEnum theComparator, String theDate)
public QuantityCompararatorEnum getComparator()
null if none has been setpublic Boolean getMissing()
IQueryParameterTypegetMissing in interface IQueryParameterTypepublic String getQueryParameterQualifier()
IQueryParameterTypegetQueryParameterQualifier in interface IQueryParameterTypepublic DateTimeDt getValueAsDateTimeDt()
public InstantDt getValueAsInstantDt()
public String getValueAsQueryToken()
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
getValueAsQueryToken in interface IQueryParameterTypepublic List<DateParam> getValuesAsQueryTokens()
getValuesAsQueryTokens in interface IQueryParameterOr<DateParam>public boolean isEmpty()
true if no date/time is specified. Note that this method does not check the comparator, so a
QualifiedDateParam with only a comparator and no date/time is considered empty.isEmpty in interface IBaseisEmpty in class BasePrimitive<Date>public void setComparator(QuantityCompararatorEnum theComparator)
public void setMissing(Boolean theMissing)
IQueryParameterTypesetMissing in interface IQueryParameterTypepublic DateParam setValue(Date theValue)
BaseDateTimeDtsetValue in interface IPrimitiveDatatype<Date>setValue in interface IPrimitiveType<Date>setValue in class BaseDateTimeDtpublic void setValueAsQueryToken(String theQualifier, String theValue)
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
setValueAsQueryToken in interface IQueryParameterTypetheQualifier - The parameter name qualifier that accompanied this value. For example, if the complete query was
http://foo?name:exact=John, qualifier would be ":exact"theValue - The actual parameter value. For example, if the complete query was
http://foo?name:exact=John, the value would be "John"public void setValuesAsQueryTokens(QualifiedParamList theParameters)
setValuesAsQueryTokens in interface IQueryParameterOr<DateParam>public String toString()
toString in class BasePrimitive<Date>Copyright © 2014–2016 University Health Network. All rights reserved.