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>
 
  • Field Details

  • Constructor Details

    • If

      public If()
  • Method Details

    • 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)
    • withThen

      public If withThen(Expression value)
    • withElse

      public If withElse(Expression value)
    • withAnnotation

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

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

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

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

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

      public If 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