com.novell.xml.xpath
Interface FunctionLibrary

All Known Implementing Classes:
FunctionLibraryImpl, StylesheetParser

public interface FunctionLibrary

An interface for binding providing a function library for evaluating XPath expressions

See Also:
ExpressionContext

Method Summary
 void addFunction(Function function)
          Add a function to the library
 Function getFunction(ExpandedQName name)
          Return an object of type Function given the function name.
 boolean isFunctionAvailable(ExpressionContext context, ExpandedQName name)
          Return true if a function under a given name is available
 

Method Detail

getFunction

public Function getFunction(ExpandedQName name)
                     throws XPathParserException
Return an object of type Function given the function name.

Parameters:
name - The name of the function
Returns:
a Function object
Throws:
XPathParserException

isFunctionAvailable

public boolean isFunctionAvailable(ExpressionContext context,
                                   ExpandedQName name)
Return true if a function under a given name is available

Parameters:
context - the expression context
name - name of the function

addFunction

public void addFunction(Function function)
Add a function to the library

Parameters:
function - The function to bind.