org.geotools.filter
Class MapScaleDenominatorImpl

java.lang.Object
  extended byorg.geotools.filter.DefaultExpression
      extended byorg.geotools.filter.MapScaleDenominatorImpl
All Implemented Interfaces:
EnvironmentVariable, Expression, ExpressionType, MapScaleDenominator

public class MapScaleDenominatorImpl
extends DefaultExpression
implements MapScaleDenominator

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_STRING, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT
 
Constructor Summary
MapScaleDenominatorImpl()
          Creates a new instance of MapScaleDenominatorImpl
 
Method Summary
 void accept(FilterVisitor visitor)
          Used by FilterVisitors to perform some action on this filter instance.
 java.lang.Object getValue(Feature f)
          Gets the attribute value at the path held by this expression from the feature.
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.filter.DefaultExpression
getType, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.filter.Expression
getType
 

Constructor Detail

MapScaleDenominatorImpl

public MapScaleDenominatorImpl()
Creates a new instance of MapScaleDenominatorImpl

Method Detail

getValue

public java.lang.Object getValue(Feature f)
Description copied from interface: EnvironmentVariable
Gets the attribute value at the path held by this expression from the feature.

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

accept

public void accept(FilterVisitor visitor)
Used by FilterVisitors to perform some action on this filter instance. Typicaly used by Filter decoders, but may also be used by any thing which needs infomration from filter structure. Implementations should always call: visitor.visit(this); It is importatant that this is not left to a parent class unless the parents API is identical.

Specified by:
accept in interface Expression
Parameters:
visitor - The visitor which requires access to this filter, the method must call visitor.visit(this);

toString

public java.lang.String toString()


Copyright © GeoTools. All Rights Reserved.