org.geotools.filter.function.string
Class ConcatenateFunction

java.lang.Object
  extended by org.geotools.filter.expression.ExpressionAbstract
      extended by org.geotools.filter.FunctionImpl
          extended by org.geotools.filter.function.string.ConcatenateFunction
All Implemented Interfaces:
org.opengis.filter.expression.Expression, org.opengis.filter.expression.Function

public class ConcatenateFunction
extends FunctionImpl

The function concatenates strings.

It is used to create concatenated strings as arguments of functions.

Implementation of Concatenate as defined by SE1.1.

Author:
Jody Garnett (Refractions Research, Inc.)

Nested Class Summary
static class ConcatenateFunction.Name
          Describe how this function works.
 
Field Summary
static org.opengis.filter.capability.FunctionName NAME
          Make the instance of FunctionName available in a consistent spot.
 
Fields inherited from interface org.opengis.filter.expression.Expression
NIL
 
Constructor Summary
ConcatenateFunction()
           
 
Method Summary
 java.lang.Object evaluate(java.lang.Object feature)
          Default implementation simply returns the fallbackValue.
 int getArgCount()
           
 java.lang.String getName()
          Gets the name of this function.
 
Methods inherited from class org.geotools.filter.FunctionImpl
accept, getFallbackValue, getParameters, setFallbackValue, setName, setParameters
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.filter.expression.Expression
evaluate
 

Field Detail

NAME

public static final org.opengis.filter.capability.FunctionName NAME
Make the instance of FunctionName available in a consistent spot.

Constructor Detail

ConcatenateFunction

public ConcatenateFunction()
Method Detail

getName

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

Specified by:
getName in interface org.opengis.filter.expression.Function
Overrides:
getName in class FunctionImpl
Returns:
the name of the function.

getArgCount

public int getArgCount()

evaluate

public java.lang.Object evaluate(java.lang.Object feature)
Description copied from class: FunctionImpl
Default implementation simply returns the fallbackValue.

Please override this method to produce a value based on the provided arguments.

Specified by:
evaluate in interface org.opengis.filter.expression.Expression
Overrides:
evaluate in class FunctionImpl
Parameters:
feature - Object being evaluated; often a Feature
Returns:
value for the provided object


Copyright © 1996-2010 Geotools. All Rights Reserved.