public class ExtensionsTable
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.Hashtable |
m_extensionFunctionNamespaces
Table of extensions that may be called from the expression language
via the call(name, ...) function.
|
| Constructor and Description |
|---|
ExtensionsTable(StylesheetRoot sroot)
The constructor (called from TransformerImpl) registers the
StylesheetRoot for the transformation and instantiates an
ExtensionHandler for each extension namespace.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtensionNamespace(java.lang.String uri,
ExtensionHandler extNS)
Register an extension namespace handler.
|
boolean |
elementAvailable(java.lang.String ns,
java.lang.String elemName)
Execute the element-available() function.
|
java.lang.Object |
extFunction(FuncExtFunction extFunction,
java.util.Vector argVec,
ExpressionContext exprContext)
Handle an extension function.
|
java.lang.Object |
extFunction(java.lang.String ns,
java.lang.String funcName,
java.util.Vector argVec,
java.lang.Object methodKey,
ExpressionContext exprContext)
Handle an extension function.
|
boolean |
functionAvailable(java.lang.String ns,
java.lang.String funcName)
Execute the function-available() function.
|
ExtensionHandler |
get(java.lang.String extns)
Get an ExtensionHandler object that represents the
given namespace.
|
public java.util.Hashtable m_extensionFunctionNamespaces
public ExtensionsTable(StylesheetRoot sroot) throws TransformerException
TransformerExceptionpublic ExtensionHandler get(java.lang.String extns)
extns - A valid extension namespace.public void addExtensionNamespace(java.lang.String uri,
ExtensionHandler extNS)
uri - the URI for the extension.extNS - the extension handler.public boolean functionAvailable(java.lang.String ns,
java.lang.String funcName)
throws TransformerException
ns - the URI of namespace in which the function is neededfuncName - the function name being testedTransformerExceptionpublic boolean elementAvailable(java.lang.String ns,
java.lang.String elemName)
throws TransformerException
ns - the URI of namespace in which the function is neededelemName - name of element being testedTransformerExceptionpublic java.lang.Object extFunction(java.lang.String ns,
java.lang.String funcName,
java.util.Vector argVec,
java.lang.Object methodKey,
ExpressionContext exprContext)
throws TransformerException
ns - the URI of namespace in which the function is neededfuncName - the function name being calledargVec - arguments to the function in a vectormethodKey - a unique key identifying this function instance in the
stylesheetexprContext - a context which may be passed to an extension function
and provides callback functions to access various
areas in the environmentTransformerExceptionpublic java.lang.Object extFunction(FuncExtFunction extFunction, java.util.Vector argVec, ExpressionContext exprContext) throws TransformerException
extFunction - the extension functionargVec - arguments to the function in a vectorexprContext - a context which may be passed to an extension function
and provides callback functions to access various
areas in the environmentTransformerExceptionCopyright © 2014 Apache XML Project. All Rights Reserved.