org.geotools.filter
Class MapScaleDenominatorImpl
java.lang.Object
org.geotools.filter.expression.ExpressionAbstract
org.geotools.filter.DefaultExpression
org.geotools.filter.MapScaleDenominatorImpl
- All Implemented Interfaces:
- EnvironmentVariable, ExpressionType, MapScaleDenominator, org.opengis.filter.expression.Expression, org.opengis.filter.expression.Literal
public class MapScaleDenominatorImpl
- extends DefaultExpression
- implements MapScaleDenominator, org.opengis.filter.expression.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 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 |
accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
|
java.lang.Object |
evaluate(java.lang.Object f)
This method checks if the object is an instance of Feature and
if so, calls through to #evaluate(Feature) . |
java.lang.Object |
getValue()
|
void |
setValue(java.lang.Object constant)
|
java.lang.String |
toString()
|
Methods inherited from class org.geotools.filter.DefaultExpression |
accept, evaluate, getType, getValue, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.filter.expression.Expression |
evaluate |
MapScaleDenominatorImpl
public MapScaleDenominatorImpl()
- Creates a new instance of MapScaleDenominatorImpl
evaluate
public java.lang.Object evaluate(java.lang.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 org.opengis.filter.expression.Expression
- Overrides:
evaluate
in class DefaultExpression
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface org.opengis.filter.expression.Literal
setValue
public void setValue(java.lang.Object constant)
accept
public java.lang.Object accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
- Specified by:
accept
in interface org.opengis.filter.expression.Expression
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1996-2010 Geotools. All Rights Reserved.