Class 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 Details

    • low

      protected Expression low
    • lowClosedExpression

      protected Expression lowClosedExpression
    • high

      protected Expression high
    • highClosedExpression

      protected Expression highClosedExpression
    • lowClosed

      protected Boolean lowClosed
    • highClosed

      protected Boolean highClosed
  • Constructor Details

    • Interval

      public Interval()
  • Method Details

    • 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 is Expression
    • 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 is Expression
    • 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 is Expression
    • 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 is Expression
    • isLowClosed

      public boolean isLowClosed()
      Gets the value of the lowClosed property.
      Returns:
      possible object is Boolean
    • setLowClosed

      public void setLowClosed(Boolean value)
      Sets the value of the lowClosed property.
      Parameters:
      value - allowed object is Boolean
    • isHighClosed

      public boolean isHighClosed()
      Gets the value of the highClosed property.
      Returns:
      possible object is Boolean
    • setHighClosed

      public void setHighClosed(Boolean value)
      Sets the value of the highClosed property.
      Parameters:
      value - allowed object is Boolean
    • 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(Boolean value)
    • withHighClosed

      public Interval withHighClosed(Boolean value)
    • withAnnotation

      public Interval withAnnotation(CqlToElmBase... values)
      Overrides:
      withAnnotation in class Expression
    • withAnnotation

      public Interval withAnnotation(Collection<CqlToElmBase> values)
      Overrides:
      withAnnotation in class Expression
    • withResultTypeSpecifier

      public Interval withResultTypeSpecifier(TypeSpecifier value)
      Overrides:
      withResultTypeSpecifier in class Expression
    • withLocalId

      public Interval withLocalId(String value)
      Overrides:
      withLocalId in class Expression
    • withLocator

      public Interval withLocator(String value)
      Overrides:
      withLocator in class Expression
    • withResultTypeName

      public Interval withResultTypeName(QName value)
      Overrides:
      withResultTypeName in class Expression
    • 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:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class Expression
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Expression
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class Expression
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Expression
    • toString

      public String toString()
      Overrides:
      toString in class Expression
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class Expression
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class Expression