All Implemented Interfaces:
CsdlAnnotatable

public class CsdlIf extends CsdlDynamicExpression implements CsdlAnnotatable
Represents a edm:If expression
  • Constructor Details

    • CsdlIf

      public CsdlIf()
  • Method Details

    • getAnnotations

      public List<CsdlAnnotation> getAnnotations()
      Description copied from interface: CsdlAnnotatable
      Returns a list of annotations
      Specified by:
      getAnnotations in interface CsdlAnnotatable
      Returns:
      list of annotations
    • setAnnotations

      public CsdlIf setAnnotations(List<CsdlAnnotation> annotations)
    • getGuard

      public CsdlExpression getGuard()
      Returns the first expression of the edm:If expression. This expression represents the condition of the if expression
      Returns:
      First expression of the if expression
    • setGuard

      public CsdlIf setGuard(CsdlExpression guard)
    • getThen

      public CsdlExpression getThen()
      Return the second expression of the edm:If expression. If the condition of the condition is evaluated to true, this expression as to be executed.
      Returns:
      Second Expression of the edm:If expression
    • setThen

      public CsdlIf setThen(CsdlExpression _then)
    • getElse

      public CsdlExpression getElse()
      Return the third expression of the edm:If expression. If the condition of the condition is evaluated to false, this expression as to be executed.
      Returns:
      Third Expression of the edm:If expression
    • setElse

      public CsdlIf setElse(CsdlExpression _else)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object