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
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 |
Methods inherited from class DefaultExpression |
accept, evaluate, getType, getValue, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression |
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()
- Description copied from interface:
Literal
- Returns the constant value held by this object.
- Specified by:
getValue
in interface Literal
setValue
public void setValue(Object constant)
accept
public Object accept(ExpressionVisitor visitor,
Object extraData)
- Description copied from interface:
Expression
- Accepts a visitor. Subclasses must implement with a method whose content is the following:
return visitor.visit(this, extraData);
- Specified by:
accept
in interface Expression
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1996-2014 Geotools. All Rights Reserved.