Class If

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

    public class If
    extends Expression
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    The If operator evaluates a condition, and returns the then argument if the condition evaluates to true; if the condition evaluates to false or null, the result of the else argument is returned. The static type of the then argument determines the result type of the conditional, and the else argument must be of that same type.

    Java class for If complex type.

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

     <complexType name="If">
       <complexContent>
         <extension base="{urn:hl7-org:elm:r1}Expression">
           <sequence>
             <element name="condition" type="{urn:hl7-org:elm:r1}Expression"/>
             <element name="then" type="{urn:hl7-org:elm:r1}Expression"/>
             <element name="else" type="{urn:hl7-org:elm:r1}Expression"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • If

        public If()
    • Method Detail

      • getCondition

        public Expression getCondition()
        Gets the value of the condition property.
        Returns:
        possible object is Expression
      • setCondition

        public void setCondition​(Expression value)
        Sets the value of the condition property.
        Parameters:
        value - allowed object is Expression
      • getThen

        public Expression getThen()
        Gets the value of the then property.
        Returns:
        possible object is Expression
      • setThen

        public void setThen​(Expression value)
        Sets the value of the then property.
        Parameters:
        value - allowed object is Expression
      • getElse

        public Expression getElse()
        Gets the value of the else property.
        Returns:
        possible object is Expression
      • setElse

        public void setElse​(Expression value)
        Sets the value of the else property.
        Parameters:
        value - allowed object is Expression
      • withCondition

        public If withCondition​(Expression 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