org.geotools.filter.function
Class DefaultFunctionFactory

Object
  extended by DefaultFunctionFactory
All Implemented Interfaces:
FunctionFactory

public class DefaultFunctionFactory
extends Object
implements FunctionFactory

Filter function factory that uses the spi lookup mechanism to create functions.

Author:
Justin Deoliveira, OpenGeo

Constructor Summary
DefaultFunctionFactory()
           
 
Method Summary
 Function function(Name name, List<Expression> parameters, Literal fallback)
          Returns a function with the specified name.
 Function function(String name, List<Expression> parameters, Literal fallback)
          Returns a function with the specified name.
 List<FunctionName> getFunctionNames()
          Returns the list of function names the factory provides.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFunctionFactory

public DefaultFunctionFactory()
Method Detail

getFunctionNames

public List<FunctionName> getFunctionNames()
Description copied from interface: FunctionFactory
Returns the list of function names the factory provides.

Specified by:
getFunctionNames in interface FunctionFactory
Returns:
A list of function names, possibly empty, never null.

function

public Function function(String name,
                         List<Expression> parameters,
                         Literal fallback)
Description copied from interface: FunctionFactory
Returns a function with the specified name.

Specified by:
function in interface FunctionFactory
Parameters:
name - The name of the function
parameters - Variable list of expression arguments for the function.
fallback - A fallback literal to use in cases where the function does not exist or can not be created. This argument may be null.

function

public Function function(Name name,
                         List<Expression> parameters,
                         Literal fallback)
Description copied from interface: FunctionFactory
Returns a function with the specified name.

Specified by:
function in interface FunctionFactory
Parameters:
name - The name of the function
parameters - Variable list of expression arguments for the function.
fallback - A fallback literal to use in cases where the function does not exist or can not be created. This argument may be null.


Copyright © 1996-2014 Geotools. All Rights Reserved.