Class CsdlIf
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.annotation.CsdlExpression
org.apache.olingo.commons.api.edm.provider.annotation.CsdlDynamicExpression
org.apache.olingo.commons.api.edm.provider.annotation.CsdlIf
- All Implemented Interfaces:
CsdlAnnotatable
Represents a edm:If expression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a list of annotationsgetElse()
Return the third expression of the edm:If expression.getGuard()
Returns the first expression of the edm:If expression.getThen()
Return the second expression of the edm:If expression.int
hashCode()
setAnnotations
(List<CsdlAnnotation> annotations) setElse
(CsdlExpression _else) setGuard
(CsdlExpression guard) setThen
(CsdlExpression _then) Methods inherited from class org.apache.olingo.commons.api.edm.provider.annotation.CsdlDynamicExpression
asAnnotationPath, asApply, asCast, asCollection, asIf, asIsOf, asLabeledElement, asLabeledElementReference, asLogicalOrComparison, asNavigationPropertyPath, asNull, asPath, asPropertyPath, asRecord, asUrlRef, isAnnotationPath, isApply, isCast, isCollection, isIf, isIsOf, isLabeledElement, isLabeledElementReference, isLogicalOrComparison, isNavigationPropertyPath, isNull, isPath, isPropertyPath, isRecord, isUrlRef
Methods inherited from class org.apache.olingo.commons.api.edm.provider.annotation.CsdlExpression
asConstant, asDynamic, isConstant, isDynamic
Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Constructor Details
-
CsdlIf
public CsdlIf()
-
-
Method Details
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
-
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
-
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
-
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
-
equals
-
hashCode
public int hashCode()
-