org.geotools.filter
Class MapScaleDenominatorImpl
Object
ExpressionAbstract
DefaultExpression
MapScaleDenominatorImpl
- All Implemented Interfaces:
- EnvironmentVariable, ExpressionType, MapScaleDenominator, Expression, Literal
public class MapScaleDenominatorImpl
- extends DefaultExpression
- implements MapScaleDenominator, Literal
This class is actualy a place holder. It resolves to 1.0 but should actualy be substituted for
a literal that actualy contains the current map scale before use.
- Author:
- James
- Module:
modules/library/main (gt-main.jar)
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 |
Methods inherited from class DefaultExpression |
accept, evaluate, getType, getValue, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression |
Methods inherited from interface Expression |
evaluate |
MapScaleDenominatorImpl
public MapScaleDenominatorImpl()
- Creates a new instance of MapScaleDenominatorImpl
evaluate
public Object evaluate(Object f)
- Description copied from class:
DefaultExpression
- This method checks if the object is an instance of
Feature
and
if so, calls through to #evaluate(Feature)
. This is done
to maintain backwards compatability with previous version of Expression api
which depended on Feature. If the object is not an instance of feature
the super implementation is called.
- Specified by:
evaluate
in interface Expression
- Overrides:
evaluate
in class DefaultExpression
getValue
public Object getValue()
- Specified by:
getValue
in interface Literal
setValue
public void setValue(Object constant)
accept
public Object accept(ExpressionVisitor visitor,
Object extraData)
- Specified by:
accept
in interface Expression
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1996-2010 Geotools. All Rights Reserved.