org.geotools.filter
Class MapScaleDenominatorImpl

java.lang.Object
  extended byorg.geotools.filter.expression.ExpressionAbstract
      extended byorg.geotools.filter.DefaultExpression
          extended byorg.geotools.filter.MapScaleDenominatorImpl
All Implemented Interfaces:
EnvironmentVariable, org.opengis.filter.expression.Expression, Expression, ExpressionType, org.opengis.filter.expression.Literal, MapScaleDenominator

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.expression.ExpressionType
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_STRING, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT
 
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)
          Subclass should override, default implementation just returns extraData
 java.lang.Object evaluate(Feature f)
          Evaluates the expression against an instance of 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, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression
 
Methods inherited from class org.geotools.filter.expression.ExpressionAbstract
eval
 
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.Expression
accept, 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(Feature f)
Description copied from interface: Expression
Evaluates the expression against an instance of Feature.

Specified by:
evaluate in interface Expression
Overrides:
evaluate in class DefaultExpression
Parameters:
f - Specified feature to use when returning value.
Returns:
The value of this expression based on the feature.

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface org.opengis.filter.expression.Literal

setValue

public void setValue(java.lang.Object constant)
Specified by:
setValue in interface org.opengis.filter.expression.Literal

accept

public java.lang.Object accept(org.opengis.filter.expression.ExpressionVisitor visitor,
                               java.lang.Object extraData)
Description copied from class: ExpressionAbstract
Subclass should override, default implementation just returns extraData

Specified by:
accept in interface org.opengis.filter.expression.Expression
Overrides:
accept in class ExpressionAbstract

toString

public java.lang.String toString()


Copyright © GeoTools. All Rights Reserved.