org.geotools.filter
Class MapScaleDenominatorImpl

Object
  extended by ExpressionAbstract
      extended by DefaultExpression
          extended by 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:

Field Summary
 
Fields inherited from class DefaultExpression
expressionType, permissiveConstruction
 
Fields inherited from interface MapScaleDenominator
EV_NAME
 
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
 
Constructor Summary
MapScaleDenominatorImpl()
          Creates a new instance of MapScaleDenominatorImpl
 
Method Summary
 Object accept(ExpressionVisitor visitor, Object extraData)
          Subclass should override, default implementation just returns extraData
 Object evaluate(Object f)
          This method checks if the object is an instance of Feature and if so, calls through to #evaluate(Feature).
 Object getValue()
           
 void setValue(Object constant)
           
 String toString()
           
 
Methods inherited from class DefaultExpression
accept, evaluate, getType, getValue, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression
 
Methods inherited from class ExpressionAbstract
eval, eval, evaluate
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface EnvironmentVariable
getValue
 
Methods inherited from interface Expression
accept, evaluate, getType
 
Methods inherited from interface Expression
evaluate
 

Constructor Detail

MapScaleDenominatorImpl

public MapScaleDenominatorImpl()
Creates a new instance of MapScaleDenominatorImpl

Method Detail

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)
Description copied from class: ExpressionAbstract
Subclass should override, default implementation just returns extraData

Specified by:
accept in interface Expression
Overrides:
accept in class ExpressionAbstract

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2009 Geotools. All Rights Reserved.