Interface EdmConstantExpression
- All Superinterfaces:
EdmExpression
Represents a constant expression
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.olingo.commons.api.edm.annotation.EdmExpression
EdmExpression.EdmExpressionType
-
Method Summary
Modifier and TypeMethodDescriptionA list of enum members or empty list if this expression is of type primitive or geospatial.Return the geospatial object or null if this expression is of type primitive or enum.The value object of this expression or null if it is of type enum or geospatial.Return the Enum type name or null if this expression is of type primitive or geospatial.Returns the value of the expression as String.Methods inherited from interface org.apache.olingo.commons.api.edm.annotation.EdmExpression
asConstant, asDynamic, getExpressionName, getExpressionType, isConstant, isDynamic
-
Method Details
-
asPrimitive
Object asPrimitive()The value object of this expression or null if it is of type enum or geospatial.- Returns:
- a value object or null
-
asEnumMembers
A list of enum members or empty list if this expression is of type primitive or geospatial.- Returns:
- a list of all enum members or empty list
-
getEnumTypeName
String getEnumTypeName()Return the Enum type name or null if this expression is of type primitive or geospatial.- Returns:
- enum type name or null
-
asGeospatial
Geospatial asGeospatial()Return the geospatial object or null if this expression is of type primitive or enum.- Returns:
- geospatial object or null
-
getValueAsString
String getValueAsString()Returns the value of the expression as String.- Returns:
- String representation of the expression
-