|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.xml.xpath.FunctionLibraryImpl
com.novell.xsl.extensions.ExtensibleFunctionLibrary
public class ExtensibleFunctionLibrary
Class implementing XPath FunctionLibrary interface for
use with XPath Parser. This class adds support for java
and ecmascript extension functions.
| Field Summary | |
|---|---|
protected ClassLoader |
loader
|
| Constructor Summary | |
|---|---|
ExtensibleFunctionLibrary()
Construct a function library for XSLT containing the built-in XPath and nxsl functions. |
|
ExtensibleFunctionLibrary(ClassLoader loader)
Construct a function library for XSLT containing the built-in XPath and XSLT functions. |
|
| Method Summary | |
|---|---|
ClassLoader |
getClassLoader()
Get the class loader to use for Java extension functions. |
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 |
void |
setClassLoader(ClassLoader loader)
Set the class loader to use for Java extension functions. |
| Methods inherited from class com.novell.xml.xpath.FunctionLibraryImpl |
|---|
addFunction, findFunction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClassLoader loader
| Constructor Detail |
|---|
public ExtensibleFunctionLibrary()
public ExtensibleFunctionLibrary(ClassLoader loader)
loader - ClassLoader instance to use to load extension functions.| Method Detail |
|---|
public void setClassLoader(ClassLoader loader)
loader - ClassLoader instance to use to load extension functions.public ClassLoader getClassLoader()
public Function getFunction(ExpandedQName name)
throws XPathParserException
getFunction in interface FunctionLibrarygetFunction in class FunctionLibraryImplname - The name of the function
XPathParserException
public boolean isFunctionAvailable(ExpressionContext context,
ExpandedQName name)
isFunctionAvailable in interface FunctionLibraryisFunctionAvailable in class FunctionLibraryImplcontext - the expression contextname - name of the function
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||