Class EdmConstantExpressionImpl
java.lang.Object
org.apache.olingo.commons.core.edm.annotation.AbstractEdmExpression
org.apache.olingo.commons.core.edm.annotation.EdmConstantExpressionImpl
- All Implemented Interfaces:
EdmConstantExpression,EdmExpression
public class EdmConstantExpressionImpl
extends AbstractEdmExpression
implements EdmConstantExpression
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.olingo.commons.api.edm.annotation.EdmExpression
EdmExpression.EdmExpressionType -
Field Summary
Fields inherited from class org.apache.olingo.commons.core.edm.annotation.AbstractEdmExpression
edm -
Constructor Summary
ConstructorsConstructorDescriptionEdmConstantExpressionImpl(Edm edm, CsdlConstantExpression constExprConstruct) -
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.SeeEdmExpression.EdmExpressionTypefor details.Returns the value of the expression as String.Methods inherited from class org.apache.olingo.commons.core.edm.annotation.AbstractEdmExpression
asConstant, asDynamic, getExpression, getExpressionName, isConstant, isDynamicMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.olingo.commons.api.edm.annotation.EdmExpression
asConstant, asDynamic, getExpressionName, isConstant, isDynamic
-
Constructor Details
-
EdmConstantExpressionImpl
-
-
Method Details
-
getValueAsString
Description copied from interface:EdmConstantExpressionReturns the value of the expression as String.- Specified by:
getValueAsStringin interfaceEdmConstantExpression- Returns:
- String representation of the expression
-
getExpressionType
Description copied from interface:EdmExpressionSeeEdmExpression.EdmExpressionTypefor details.- Specified by:
getExpressionTypein interfaceEdmExpression- Returns:
- the type of this expression
-
asPrimitive
Description copied from interface:EdmConstantExpressionThe value object of this expression or null if it is of type enum or geospatial.- Specified by:
asPrimitivein interfaceEdmConstantExpression- Returns:
- a value object or null
-
asEnumMembers
Description copied from interface:EdmConstantExpressionA list of enum members or empty list if this expression is of type primitive or geospatial.- Specified by:
asEnumMembersin interfaceEdmConstantExpression- Returns:
- a list of all enum members or empty list
-
getEnumTypeName
Description copied from interface:EdmConstantExpressionReturn the Enum type name or null if this expression is of type primitive or geospatial.- Specified by:
getEnumTypeNamein interfaceEdmConstantExpression- Returns:
- enum type name or null
-
asGeospatial
Description copied from interface:EdmConstantExpressionReturn the geospatial object or null if this expression is of type primitive or enum.- Specified by:
asGeospatialin interfaceEdmConstantExpression- Returns:
- geospatial object or null
-