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
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected Booleanprotected Expressionprotected Expressionprotected Booleanprotected ExpressionFields 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) getHigh()Gets the value of the high property.Gets the value of the highClosedExpression property.getLow()Gets the value of the low property.Gets the value of the lowClosedExpression property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) booleanGets the value of the highClosed property.booleanGets the value of the lowClosed property.voidsetHigh(Expression value) Sets the value of the high property.voidsetHighClosed(Boolean value) Sets the value of the highClosed property.voidSets the value of the highClosedExpression property.voidsetLow(Expression value) Sets the value of the low property.voidsetLowClosed(Boolean value) Sets the value of the lowClosed property.voidsetLowClosedExpression(Expression value) Sets the value of the lowClosedExpression property.toString()withAnnotation(Collection<CqlToElmBase> values) withAnnotation(CqlToElmBase... values) withHigh(Expression value) withHighClosed(Boolean value) withLocalId(String value) withLocator(String value) withLow(Expression value) withLowClosed(Boolean value) withResultTypeName(QName value) Methods 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
-
low
-
lowClosedExpression
-
high
-
highClosedExpression
-
lowClosed
-
highClosed
-
-
Constructor Details
-
Interval
public Interval()
-
-
Method Details
-
getLow
Gets the value of the low property.- Returns:
- possible object is
Expression
-
setLow
Sets the value of the low property.- Parameters:
value- allowed object isExpression
-
getLowClosedExpression
Gets the value of the lowClosedExpression property.- Returns:
- possible object is
Expression
-
setLowClosedExpression
Sets the value of the lowClosedExpression property.- Parameters:
value- allowed object isExpression
-
getHigh
Gets the value of the high property.- Returns:
- possible object is
Expression
-
setHigh
Sets the value of the high property.- Parameters:
value- allowed object isExpression
-
getHighClosedExpression
Gets the value of the highClosedExpression property.- Returns:
- possible object is
Expression
-
setHighClosedExpression
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
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
Sets the value of the highClosed property.- Parameters:
value- allowed object isBoolean
-
withLow
-
withLowClosedExpression
-
withHigh
-
withHighClosedExpression
-
withLowClosed
-
withHighClosed
-
withAnnotation
- Overrides:
withAnnotationin classExpression
-
withAnnotation
- Overrides:
withAnnotationin classExpression
-
withResultTypeSpecifier
- Overrides:
withResultTypeSpecifierin classExpression
-
withLocalId
- Overrides:
withLocalIdin classExpression
-
withLocator
- Overrides:
withLocatorin classExpression
-
withResultTypeName
- Overrides:
withResultTypeNamein classExpression
-
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 classExpression
-
equals
- 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
- Overrides:
toStringin classExpression
-
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 classExpression
-
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 classExpression
-