Class Slice

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    Direct Known Subclasses:
    SliceEvaluator

    public class Slice
    extends OperatorExpression
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    The Slice operator returns a portion of the elements in a list, beginning at the start index and ending just before the ending index. If the source list is null, the result is null. If the startIndex is null, the slice begins at the first element of the list. If the endIndex is null, the slice continues to the last element of the list. If the startIndex or endIndex is less than 0, or if the endIndex is less than the startIndex, the result is an empty list.

    Java class for Slice complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Slice">
       <complexContent>
         <extension base="{urn:hl7-org:elm:r1}OperatorExpression">
           <sequence>
             <element name="source" type="{urn:hl7-org:elm:r1}Expression"/>
             <element name="startIndex" type="{urn:hl7-org:elm:r1}Expression"/>
             <element name="endIndex" type="{urn:hl7-org:elm:r1}Expression"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Slice

        public Slice()
    • Method Detail

      • getSource

        public Expression getSource()
        Gets the value of the source property.
        Returns:
        possible object is Expression
      • setSource

        public void setSource​(Expression value)
        Sets the value of the source property.
        Parameters:
        value - allowed object is Expression
      • getStartIndex

        public Expression getStartIndex()
        Gets the value of the startIndex property.
        Returns:
        possible object is Expression
      • setStartIndex

        public void setStartIndex​(Expression value)
        Sets the value of the startIndex property.
        Parameters:
        value - allowed object is Expression
      • getEndIndex

        public Expression getEndIndex()
        Gets the value of the endIndex property.
        Returns:
        possible object is Expression
      • setEndIndex

        public void setEndIndex​(Expression value)
        Sets the value of the endIndex property.
        Parameters:
        value - allowed object is Expression
      • 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 OperatorExpression
      • 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 OperatorExpression
      • 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 OperatorExpression
      • 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 OperatorExpression