org.geotools.filter
Interface LiteralExpression

All Superinterfaces:
Expression, ExpressionType, Literal
All Known Subinterfaces:
BBoxExpression
All Known Implementing Classes:
BBoxExpressionImpl, ConstantExpression, LiteralExpressionImpl, OverlapBehavior

Deprecated. use Literal

public interface LiteralExpression
extends Expression, Literal

Defines an expression that holds a literal for return.

Author:
Rob Hranac, Vision for New York, Chris Holmes, TOPP

Field Summary
 
Fields inherited from interface ExpressionType
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_LONG, LITERAL_STRING, LITERAL_UNDECLARED, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT
 
Fields inherited from interface Expression
NIL
 
Method Summary
 Object getLiteral()
          Deprecated. use Literal.getValue().
 short getType()
          Deprecated. Returns the literal type.
 Object getValue(SimpleFeature feature)
          Deprecated. use Expression#evaluate(Feature).
 void setLiteral(Object literal)
          Deprecated. use Literal#setValue(Object)
 
Methods inherited from interface Expression
accept, evaluate
 
Methods inherited from interface Literal
getValue
 
Methods inherited from interface Expression
accept, evaluate, evaluate
 

Method Detail

setLiteral

void setLiteral(Object literal)
                throws IllegalFilterException
Deprecated. use Literal#setValue(Object)

Sets the literal.

Parameters:
literal - The literal to store inside this expression.
Throws:
IllegalFilterException - This literal type is not in scope.

getValue

Object getValue(SimpleFeature feature)
Deprecated. use Expression#evaluate(Feature).

Gets the value of this literal.

Parameters:
feature - Required by the interface but not used.
Returns:
the literal held by this expression. Ignores the passed in feature.

getType

short getType()
Deprecated. 
Returns the literal type.

Returns:
the short representation of the literal expression type.

getLiteral

Object getLiteral()
Deprecated. use Literal.getValue().

Retrieves the literal of this expression.

Returns:
the literal held by this expression.


Copyright © 1996-2014 Geotools. All Rights Reserved.