Class Interval
- java.lang.Object
-
- org.opencds.cqf.cql.engine.elm.execution.Executable
-
- org.cqframework.cql.elm.execution.Element
-
- org.cqframework.cql.elm.execution.Expression
-
- org.cqframework.cql.elm.execution.Interval
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
IntervalEvaluator
public class Interval extends Expression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Interval selector defines an interval value. An interval must be defined using a point type that supports comparison, as well as Successor and Predecessor operations, and Minimum and Maximum Value operations. The low and high bounds of the interval may each be defined as open or closed. Following standard terminology usage in interval mathematics, an open interval is defined to exclude the specified point, whereas a closed interval includes the point. The default is closed, indicating an inclusive interval. The low and high elements are both optional. If the low element is not specified, the low bound of the resulting interval is null. If the high element is not specified, the high bound of the resulting interval is null. The static type of the low bound determines the type of the interval, and the high bound must be of the same type. If the low bound of the interval is null and open, the low bound of the interval is interpreted as unknown, and computations involving the low boundary will result in null. If the low bound of the interval is null and closed, the interval is interpreted to start at the minimum value of the point type, and computations involving the low boundary will be performed with that value. If the high bound of the interval is null and open, the high bound of the interval is unknown, and computations involving the high boundary will result in null. If the high bound of the interval is null and closed, the interval is interpreted to end at the maximum value of the point type, and computations involving the high boundary will be performed with that interpretation.Java class for Interval complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Interval"> <complexContent> <extension base="{urn:hl7-org:elm:r1}Expression"> <sequence> <element name="low" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="lowClosedExpression" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="high" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="highClosedExpression" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> </sequence> <attribute name="lowClosed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> <attribute name="highClosed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressionhighprotected java.lang.BooleanhighClosedprotected ExpressionhighClosedExpressionprotected Expressionlowprotected java.lang.BooleanlowClosedprotected ExpressionlowClosedExpression-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description Interval()
-
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)ExpressiongetHigh()Gets the value of the high property.ExpressiongetHighClosedExpression()Gets the value of the highClosedExpression property.ExpressiongetLow()Gets the value of the low property.ExpressiongetLowClosedExpression()Gets the value of the lowClosedExpression property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)booleanisHighClosed()Gets the value of the highClosed property.booleanisLowClosed()Gets the value of the lowClosed property.voidsetHigh(Expression value)Sets the value of the high property.voidsetHighClosed(java.lang.Boolean value)Sets the value of the highClosed property.voidsetHighClosedExpression(Expression value)Sets the value of the highClosedExpression property.voidsetLow(Expression value)Sets the value of the low property.voidsetLowClosed(java.lang.Boolean value)Sets the value of the lowClosed property.voidsetLowClosedExpression(Expression value)Sets the value of the lowClosedExpression property.java.lang.StringtoString()IntervalwithAnnotation(java.util.Collection<CqlToElmBase> values)IntervalwithAnnotation(CqlToElmBase... values)IntervalwithHigh(Expression value)IntervalwithHighClosed(java.lang.Boolean value)IntervalwithHighClosedExpression(Expression value)IntervalwithLocalId(java.lang.String value)IntervalwithLocator(java.lang.String value)IntervalwithLow(Expression value)IntervalwithLowClosed(java.lang.Boolean value)IntervalwithLowClosedExpression(Expression value)IntervalwithResultTypeName(javax.xml.namespace.QName value)IntervalwithResultTypeSpecifier(TypeSpecifier value)-
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
-
low
protected Expression low
-
lowClosedExpression
protected Expression lowClosedExpression
-
high
protected Expression high
-
highClosedExpression
protected Expression highClosedExpression
-
lowClosed
protected java.lang.Boolean lowClosed
-
highClosed
protected java.lang.Boolean highClosed
-
-
Method Detail
-
getLow
public Expression getLow()
Gets the value of the low property.- Returns:
- possible object is
Expression
-
setLow
public void setLow(Expression value)
Sets the value of the low property.- Parameters:
value- allowed object isExpression
-
getLowClosedExpression
public Expression getLowClosedExpression()
Gets the value of the lowClosedExpression property.- Returns:
- possible object is
Expression
-
setLowClosedExpression
public void setLowClosedExpression(Expression value)
Sets the value of the lowClosedExpression property.- Parameters:
value- allowed object isExpression
-
getHigh
public Expression getHigh()
Gets the value of the high property.- Returns:
- possible object is
Expression
-
setHigh
public void setHigh(Expression value)
Sets the value of the high property.- Parameters:
value- allowed object isExpression
-
getHighClosedExpression
public Expression getHighClosedExpression()
Gets the value of the highClosedExpression property.- Returns:
- possible object is
Expression
-
setHighClosedExpression
public void setHighClosedExpression(Expression value)
Sets the value of the highClosedExpression property.- Parameters:
value- allowed object isExpression
-
isLowClosed
public boolean isLowClosed()
Gets the value of the lowClosed property.- Returns:
- possible object is
Boolean
-
setLowClosed
public void setLowClosed(java.lang.Boolean value)
Sets the value of the lowClosed property.- Parameters:
value- allowed object isBoolean
-
isHighClosed
public boolean isHighClosed()
Gets the value of the highClosed property.- Returns:
- possible object is
Boolean
-
setHighClosed
public void setHighClosed(java.lang.Boolean value)
Sets the value of the highClosed property.- Parameters:
value- allowed object isBoolean
-
withLow
public Interval withLow(Expression value)
-
withLowClosedExpression
public Interval withLowClosedExpression(Expression value)
-
withHigh
public Interval withHigh(Expression value)
-
withHighClosedExpression
public Interval withHighClosedExpression(Expression value)
-
withLowClosed
public Interval withLowClosed(java.lang.Boolean value)
-
withHighClosed
public Interval withHighClosed(java.lang.Boolean value)
-
withAnnotation
public Interval withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classExpression
-
withAnnotation
public Interval withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classExpression
-
withResultTypeSpecifier
public Interval withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classExpression
-
withLocalId
public Interval withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classExpression
-
withLocator
public Interval withLocator(java.lang.String value)
- Overrides:
withLocatorin classExpression
-
withResultTypeName
public Interval withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classExpression
-
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 classExpression
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classExpression
-
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 classExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classExpression
-
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 classExpression
-
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 classExpression
-
-