Class DateTime
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected Expressiondayprotected Expressionhourprotected Expressionmillisecondprotected Expressionminuteprotected Expressionmonthprotected Expressionsecondprotected ExpressiontimezoneOffsetprotected Expressionyear-
Fields inherited from class org.cqframework.cql.elm.execution.OperatorExpression
signature
-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description DateTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)ExpressiongetDay()Gets the value of the day property.ExpressiongetHour()Gets the value of the hour property.ExpressiongetMillisecond()Gets the value of the millisecond property.ExpressiongetMinute()Gets the value of the minute property.ExpressiongetMonth()Gets the value of the month property.ExpressiongetSecond()Gets the value of the second property.ExpressiongetTimezoneOffset()Gets the value of the timezoneOffset property.ExpressiongetYear()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.java.lang.StringtoString()DateTimewithAnnotation(java.util.Collection<CqlToElmBase> values)DateTimewithAnnotation(CqlToElmBase... values)DateTimewithDay(Expression value)DateTimewithHour(Expression value)DateTimewithLocalId(java.lang.String value)DateTimewithLocator(java.lang.String value)DateTimewithMillisecond(Expression value)DateTimewithMinute(Expression value)DateTimewithMonth(Expression value)DateTimewithResultTypeName(javax.xml.namespace.QName value)DateTimewithResultTypeSpecifier(TypeSpecifier value)DateTimewithSecond(Expression value)DateTimewithSignature(java.util.Collection<TypeSpecifier> values)DateTimewithSignature(TypeSpecifier... values)DateTimewithTimezoneOffset(Expression value)DateTimewithYear(Expression value)-
Methods inherited from class org.cqframework.cql.elm.execution.OperatorExpression
getSignature
-
Methods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifier
-
Methods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
-
-
-
Field Detail
-
year
protected Expression year
-
month
protected Expression month
-
day
protected Expression day
-
hour
protected Expression hour
-
minute
protected Expression minute
-
second
protected Expression second
-
millisecond
protected Expression millisecond
-
timezoneOffset
protected Expression timezoneOffset
-
-
Method Detail
-
getYear
public Expression getYear()
Gets the value of the year property.- Returns:
- possible object is
Expression
-
setYear
public void setYear(Expression value)
Sets the value of the year property.- Parameters:
value- allowed object isExpression
-
getMonth
public Expression getMonth()
Gets the value of the month property.- Returns:
- possible object is
Expression
-
setMonth
public void setMonth(Expression value)
Sets the value of the month property.- Parameters:
value- allowed object isExpression
-
getDay
public Expression getDay()
Gets the value of the day property.- Returns:
- possible object is
Expression
-
setDay
public void setDay(Expression value)
Sets the value of the day property.- Parameters:
value- allowed object isExpression
-
getHour
public Expression getHour()
Gets the value of the hour property.- Returns:
- possible object is
Expression
-
setHour
public void setHour(Expression value)
Sets the value of the hour property.- Parameters:
value- allowed object isExpression
-
getMinute
public Expression getMinute()
Gets the value of the minute property.- Returns:
- possible object is
Expression
-
setMinute
public void setMinute(Expression value)
Sets the value of the minute property.- Parameters:
value- allowed object isExpression
-
getSecond
public Expression getSecond()
Gets the value of the second property.- Returns:
- possible object is
Expression
-
setSecond
public void setSecond(Expression value)
Sets the value of the second property.- Parameters:
value- allowed object isExpression
-
getMillisecond
public Expression getMillisecond()
Gets the value of the millisecond property.- Returns:
- possible object is
Expression
-
setMillisecond
public void setMillisecond(Expression value)
Sets the value of the millisecond property.- Parameters:
value- allowed object isExpression
-
getTimezoneOffset
public Expression getTimezoneOffset()
Gets the value of the timezoneOffset property.- Returns:
- possible object is
Expression
-
setTimezoneOffset
public void setTimezoneOffset(Expression value)
Sets the value of the timezoneOffset property.- Parameters:
value- allowed object isExpression
-
withYear
public DateTime withYear(Expression value)
-
withMonth
public DateTime withMonth(Expression value)
-
withDay
public DateTime withDay(Expression value)
-
withHour
public DateTime withHour(Expression value)
-
withMinute
public DateTime withMinute(Expression value)
-
withSecond
public DateTime withSecond(Expression value)
-
withMillisecond
public DateTime withMillisecond(Expression value)
-
withTimezoneOffset
public DateTime withTimezoneOffset(Expression value)
-
withSignature
public DateTime withSignature(TypeSpecifier... values)
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
public DateTime withSignature(java.util.Collection<TypeSpecifier> values)
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
public DateTime withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
public DateTime withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
public DateTime withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
public DateTime withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
public DateTime withLocator(java.lang.String value)
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
public DateTime withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classOperatorExpression
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classOperatorExpression
-
equals
public boolean equals(java.lang.Object object)
- 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
public java.lang.String toString()
- Overrides:
toStringin classOperatorExpression
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classOperatorExpression
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classOperatorExpression
-
-