Class DateTime
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
DateTimeEvaluator
public class DateTime
extends OperatorExpression
implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The DateTime operator constructs a DateTime value from the given components.
At least one component other than timezoneOffset must be specified, and no component may be specified at a precision below an unspecified precision. For example, hour may be null, but if it is, minute, second, and millisecond must all be null as well.
Although the milliseconds are specified with a separate component, seconds and milliseconds are combined and represented as a Decimal for the purposes of comparison.
If timezoneOffset is not specified, it is defaulted to the timezone offset of the evaluation request.
Java class for DateTime complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="DateTime">
<complexContent>
<extension base="{urn:hl7-org:elm:r1}OperatorExpression">
<sequence>
<element name="year" type="{urn:hl7-org:elm:r1}Expression"/>
<element name="month" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="day" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="hour" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="minute" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="second" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="millisecond" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="timezoneOffset" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected Expressionprotected Expressionprotected Expressionprotected Expressionprotected Expressionprotected Expressionprotected ExpressionFields inherited from class org.cqframework.cql.elm.execution.OperatorExpression
signatureFields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) getDay()Gets the value of the day property.getHour()Gets the value of the hour property.Gets the value of the millisecond property.Gets the value of the minute property.getMonth()Gets the value of the month property.Gets the value of the second property.Gets the value of the timezoneOffset property.getYear()Gets the value of the year property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) voidsetDay(Expression value) Sets the value of the day property.voidsetHour(Expression value) Sets the value of the hour property.voidsetMillisecond(Expression value) Sets the value of the millisecond property.voidsetMinute(Expression value) Sets the value of the minute property.voidsetMonth(Expression value) Sets the value of the month property.voidsetSecond(Expression value) Sets the value of the second property.voidsetTimezoneOffset(Expression value) Sets the value of the timezoneOffset property.voidsetYear(Expression value) Sets the value of the year property.toString()withAnnotation(Collection<CqlToElmBase> values) withAnnotation(CqlToElmBase... values) withDay(Expression value) withHour(Expression value) withLocalId(String value) withLocator(String value) withMillisecond(Expression value) withMinute(Expression value) withMonth(Expression value) withResultTypeName(QName value) withSecond(Expression value) withSignature(Collection<TypeSpecifier> values) withSignature(TypeSpecifier... values) withTimezoneOffset(Expression value) withYear(Expression value) Methods inherited from class org.cqframework.cql.elm.execution.OperatorExpression
getSignatureMethods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifierMethods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
Field Details
-
year
-
month
-
day
-
hour
-
minute
-
second
-
millisecond
-
timezoneOffset
-
-
Constructor Details
-
DateTime
public DateTime()
-
-
Method Details
-
getYear
Gets the value of the year property.- Returns:
- possible object is
Expression
-
setYear
Sets the value of the year property.- Parameters:
value- allowed object isExpression
-
getMonth
Gets the value of the month property.- Returns:
- possible object is
Expression
-
setMonth
Sets the value of the month property.- Parameters:
value- allowed object isExpression
-
getDay
Gets the value of the day property.- Returns:
- possible object is
Expression
-
setDay
Sets the value of the day property.- Parameters:
value- allowed object isExpression
-
getHour
Gets the value of the hour property.- Returns:
- possible object is
Expression
-
setHour
Sets the value of the hour property.- Parameters:
value- allowed object isExpression
-
getMinute
Gets the value of the minute property.- Returns:
- possible object is
Expression
-
setMinute
Sets the value of the minute property.- Parameters:
value- allowed object isExpression
-
getSecond
Gets the value of the second property.- Returns:
- possible object is
Expression
-
setSecond
Sets the value of the second property.- Parameters:
value- allowed object isExpression
-
getMillisecond
Gets the value of the millisecond property.- Returns:
- possible object is
Expression
-
setMillisecond
Sets the value of the millisecond property.- Parameters:
value- allowed object isExpression
-
getTimezoneOffset
Gets the value of the timezoneOffset property.- Returns:
- possible object is
Expression
-
setTimezoneOffset
Sets the value of the timezoneOffset property.- Parameters:
value- allowed object isExpression
-
withYear
-
withMonth
-
withDay
-
withHour
-
withMinute
-
withSecond
-
withMillisecond
-
withTimezoneOffset
-
withSignature
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
- Overrides:
withResultTypeNamein classOperatorExpression
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classOperatorExpression
-
equals
- Overrides:
equalsin classOperatorExpression
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) - Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classOperatorExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classOperatorExpression
-
toString
- Overrides:
toStringin classOperatorExpression
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classOperatorExpression
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classOperatorExpression
-