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 Detail

      • lowClosedExpression

        protected Expression lowClosedExpression
      • highClosedExpression

        protected Expression highClosedExpression
      • lowClosed

        protected java.lang.Boolean lowClosed
      • highClosed

        protected java.lang.Boolean highClosed
    • Constructor Detail

      • Interval

        public Interval()
    • 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 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​(java.lang.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​(java.lang.Boolean value)
        Sets the value of the highClosed property.
        Parameters:
        value - allowed object is Boolean
      • withHighClosedExpression

        public Interval withHighClosedExpression​(Expression value)
      • withLowClosed

        public Interval withLowClosed​(java.lang.Boolean value)
      • withHighClosed

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

        public boolean equals​(java.lang.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
      • 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:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class Expression
      • 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:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class Expression