public class ExtensionsTable extends Object
Modifier and Type | Field and Description |
---|---|
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(String uri,
ExtensionHandler extNS)
Register an extension namespace handler.
|
boolean |
elementAvailable(String ns,
String elemName)
Execute the element-available() function.
|
Object |
extFunction(FuncExtFunction extFunction,
Vector argVec,
ExpressionContext exprContext)
Handle an extension function.
|
Object |
extFunction(String ns,
String funcName,
Vector argVec,
Object methodKey,
ExpressionContext exprContext)
Handle an extension function.
|
boolean |
functionAvailable(String ns,
String funcName)
Execute the function-available() function.
|
ExtensionHandler |
get(String extns)
Get an ExtensionHandler object that represents the
given namespace.
|
public Hashtable m_extensionFunctionNamespaces
public ExtensionsTable(StylesheetRoot sroot) throws TransformerException
TransformerException
public ExtensionHandler get(String extns)
extns
- A valid extension namespace.public void addExtensionNamespace(String uri, ExtensionHandler extNS)
uri
- the URI for the extension.extNS
- the extension handler.public boolean functionAvailable(String ns, String funcName) throws TransformerException
ns
- the URI of namespace in which the function is neededfuncName
- the function name being testedTransformerException
public boolean elementAvailable(String ns, String elemName) throws TransformerException
ns
- the URI of namespace in which the function is neededelemName
- name of element being testedTransformerException
public Object extFunction(String ns, String funcName, Vector argVec, 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 environmentTransformerException
public Object extFunction(FuncExtFunction extFunction, 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 environmentTransformerException
Copyright © 2019 JBoss by Red Hat. All rights reserved.