org.geotools.filter.function
Class UniqueIntervalFunction

java.lang.Object
  extended byorg.geotools.filter.expression.ExpressionAbstract
      extended byorg.geotools.filter.DefaultExpression
          extended byorg.geotools.filter.FunctionExpressionImpl
              extended byorg.geotools.filter.function.ClassificationFunction
                  extended byorg.geotools.filter.function.ExplicitClassificationFunction
                      extended byorg.geotools.filter.function.UniqueIntervalFunction
All Implemented Interfaces:
org.opengis.filter.expression.Expression, Expression, ExpressionType, Factory, org.opengis.filter.expression.Function, FunctionExpression

public class UniqueIntervalFunction
extends ExplicitClassificationFunction

Clone of EqualIntervalFunction for unique values

Author:
Cory Horner

Field Summary
 
Fields inherited from class org.geotools.filter.DefaultExpression
expressionType, permissiveConstruction
 
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
UniqueIntervalFunction()
           
 
Method Summary
 java.lang.Object evaluate(Feature feature)
          Evaluates the expression against an instance of Feature.
 java.lang.String getName()
          Gets the name of this function.
 java.lang.Object getValue(int index)
          Determines the value(s) for the indexed slot/bin/bucket.
 void setExpression(Expression e)
           
 
Methods inherited from class org.geotools.filter.function.ClassificationFunction
decimalPlaces, fixRound, getArgCount, getArgs, getCollection, getExpression, getNumberOfClasses, getProgressListener, round, setArgs, setCollection, setNumberOfClasses, setProgressListener
 
Methods inherited from class org.geotools.filter.FunctionExpressionImpl
accept, getImplementationHints, getParameters, getType, setName, setParameters
 
Methods inherited from class org.geotools.filter.DefaultExpression
accept, evaluate, 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, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.filter.expression.FunctionExpression
getType
 
Methods inherited from interface org.geotools.filter.expression.Expression
accept, getValue
 
Methods inherited from interface org.opengis.filter.expression.Expression
accept, evaluate
 
Methods inherited from interface org.geotools.factory.Factory
getImplementationHints
 
Methods inherited from interface org.opengis.filter.expression.Function
getParameters, setName, setParameters
 

Constructor Detail

UniqueIntervalFunction

public UniqueIntervalFunction()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: FunctionExpression
Gets the name of this function.

Specified by:
getName in interface FunctionExpression
Specified by:
getName in class ExplicitClassificationFunction

evaluate

public java.lang.Object evaluate(Feature feature)
Description copied from interface: Expression
Evaluates the expression against an instance of Feature.

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class ExplicitClassificationFunction

setExpression

public void setExpression(Expression e)
Overrides:
setExpression in class ClassificationFunction

getValue

public java.lang.Object getValue(int index)
Determines the value(s) for the indexed slot/bin/bucket.

Specified by:
getValue in class ExplicitClassificationFunction
Returns:
the value


Copyright © GeoTools. All Rights Reserved.