Package org.n52.svalbard.odata.core.expr
Class GeoValueExpr
- java.lang.Object
-
- org.n52.svalbard.odata.core.expr.GeoValueExpr
-
-
Constructor Summary
Constructors Constructor Description GeoValueExpr(String value)Creates a newValueExpr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,X extends Throwable>
Taccept(ExprVisitor<T,X> visitor)Acceptsvisitorfor this expression.Optional<GeoValueExpr>asGeometry()Get this expression as a geometry expressionbooleanequals(Object o)StringgetGeometry()Gets the value.inthashCode()booleanisGeometry()Check if this expression is a geometry expresion.StringtoODataString()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.odata.core.expr.Expr
asArithmetic, asBinary, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asMember, asMethodCall, asNumericValue, asTextValue, asTime, asUnary, isArithmetic, isBinary, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isMember, isMethodCall, isNumericValue, isTextValue, isTime, isUnary
-
-
-
-
Constructor Detail
-
GeoValueExpr
public GeoValueExpr(String value)
Creates a newValueExpr.- Parameters:
value- the value
-
-
Method Detail
-
getGeometry
public String getGeometry()
Gets the value.- Returns:
- the value
-
isGeometry
public boolean isGeometry()
Description copied from interface:ExprCheck if this expression is a geometry expresion.- Specified by:
isGeometryin interfaceExpr- Returns:
- if it is a geometry expression
-
asGeometry
public Optional<GeoValueExpr> asGeometry()
Description copied from interface:ExprGet this expression as a geometry expression- Specified by:
asGeometryin interfaceExpr- Returns:
- the expression or
Optional.empty()if the type does not match
-
toODataString
public String toODataString()
- Specified by:
toODataStringin interfaceODataExpr
-
accept
public <T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
Description copied from interface:ExprAcceptsvisitorfor this expression.
-
-