org.geotools.filter
Class MapScaleDenominatorImpl

java.lang.Object
  extended by org.geotools.filter.expression.ExpressionAbstract
      extended by org.geotools.filter.DefaultExpression
          extended by 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

Field Summary
 
Fields inherited from class org.geotools.filter.DefaultExpression
expressionType, permissiveConstruction
 
Fields inherited from interface org.geotools.filter.MapScaleDenominator
EV_NAME
 
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
 
Constructor Summary
MapScaleDenominatorImpl()
          Creates a new instance of MapScaleDenominatorImpl
 
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 org.geotools.filter.expression.ExpressionAbstract
eval, eval, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.filter.EnvironmentVariable
getValue
 
Methods inherited from interface org.geotools.filter.Expression
accept, evaluate, getType
 
Methods inherited from interface org.opengis.filter.expression.Expression
evaluate
 

Constructor Detail

MapScaleDenominatorImpl

public MapScaleDenominatorImpl()
Creates a new instance of MapScaleDenominatorImpl

Method Detail

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.