Class Date
- 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:
DateEvaluator
public class Date extends OperatorExpression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Date operator constructs a date value from the given components. At least one component must be specified, and no component may be specified at a precision below an unspecified precision. For example, month may be null, but if it is, day must be null as well.Java class for Date complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Date"> <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"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressiondayprotected Expressionmonthprotected 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 Date()
-
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.ExpressiongetMonth()Gets the value of the month 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.voidsetMonth(Expression value)Sets the value of the month property.voidsetYear(Expression value)Sets the value of the year property.java.lang.StringtoString()DatewithAnnotation(java.util.Collection<CqlToElmBase> values)DatewithAnnotation(CqlToElmBase... values)DatewithDay(Expression value)DatewithLocalId(java.lang.String value)DatewithLocator(java.lang.String value)DatewithMonth(Expression value)DatewithResultTypeName(javax.xml.namespace.QName value)DatewithResultTypeSpecifier(TypeSpecifier value)DatewithSignature(java.util.Collection<TypeSpecifier> values)DatewithSignature(TypeSpecifier... values)DatewithYear(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
-
-
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
-
withYear
public Date withYear(Expression value)
-
withMonth
public Date withMonth(Expression value)
-
withDay
public Date withDay(Expression value)
-
withSignature
public Date withSignature(TypeSpecifier... values)
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
public Date withSignature(java.util.Collection<TypeSpecifier> values)
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
public Date withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
public Date withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
public Date withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
public Date withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
public Date withLocator(java.lang.String value)
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
public Date 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
-
-