org.deegree.filter.function
Interface FunctionProvider

All Known Implementing Classes:
Area, Centroid, ExtraProp, GeometryFromWKT, IDiv, IMod, InteriorPoint, IsCurve, IsPoint, IsSurface, Length, Lower, MoveGeometry, Upper

public interface FunctionProvider

Implementations of this class provide Function implementations.

Version:
$Revision: 31923 $, $Date: 2011-09-19 15:31:07 +0200 (Mon, 19 Sep 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Method Summary
 Function create(List<Expression> params)
          Creates a new Function instance.
 void destroy()
          Called by FunctionManager once when this FunctionProvider is being taken out of service.
 List<ParameterType> getArgs()
          Returns the type information for the inputs of the provided function.
 String getName()
          Returns the name of the provided function.
 ParameterType getReturnType()
          Returns the type information for the output of the provided function.
 void init(DeegreeWorkspace ws)
          Called by FunctionManager once when this FunctionProvider is being taken into service.
 

Method Detail

init

void init(DeegreeWorkspace ws)
          throws ResourceInitException
Called by FunctionManager once when this FunctionProvider is being taken into service.

Parameters:
ws - workspace context, never null
Throws:
ResourceInitException - if the initialization fails

destroy

void destroy()
Called by FunctionManager once when this FunctionProvider is being taken out of service.


getName

String getName()
Returns the name of the provided function.

Returns:
the name of the provided function, never null

getArgs

List<ParameterType> getArgs()
Returns the type information for the inputs of the provided function.

Returns:
type information for the inputs, can be empty, but never null

getReturnType

ParameterType getReturnType()
Returns the type information for the output of the provided function.

Returns:
type information for the output, never null

create

Function create(List<Expression> params)
Creates a new Function instance.

Parameters:
params - params for the new function, may be empty, but never null
Returns:
the new function instance, never null


Copyright © 2011. All Rights Reserved.