org.geotools.filter
Interface LiteralExpression

All Superinterfaces:
org.opengis.filter.expression.Expression, ExpressionType, org.opengis.filter.expression.Literal
All Known Subinterfaces:
BBoxExpression
All Known Implementing Classes:
BBoxExpressionImpl, ConstantExpression, LiteralExpressionImpl, OverlapBehavior

Deprecated. use Literal

public interface LiteralExpression
extends Expression, org.opengis.filter.expression.Literal

Defines an expression that holds a literal for return.

Version:
$Id: LiteralExpression.java 30642 2008-06-12 17:52:06Z acuster $
Author:
Rob Hranac, Vision for New York, Chris Holmes, TOPP

Field Summary
 
Fields inherited from interface org.geotools.filter.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 org.opengis.filter.expression.Expression
NIL
 
Method Summary
 java.lang.Object getLiteral()
          Deprecated. use Literal.getValue().
 short getType()
          Deprecated. Returns the literal type.
 java.lang.Object getValue(org.opengis.feature.simple.SimpleFeature feature)
          Deprecated. use Expression#evaluate(Feature).
 void setLiteral(java.lang.Object literal)
          Deprecated. use Literal#setValue(Object)
 
Methods inherited from interface org.geotools.filter.Expression
accept, evaluate
 
Methods inherited from interface org.opengis.filter.expression.Literal
getValue
 
Methods inherited from interface org.opengis.filter.expression.Expression
accept, evaluate, evaluate
 

Method Detail

setLiteral

void setLiteral(java.lang.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

java.lang.Object getValue(org.opengis.feature.simple.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

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

Retrieves the literal of this expression.

Returns:
the literal held by this expression.


Copyright © 1996-2010 Geotools. All Rights Reserved.