public abstract class ExtensionHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
m_namespaceUri
uri of the extension namespace
|
protected String |
m_scriptLang
scripting language of implementation
|
Modifier | Constructor and Description |
---|---|
protected |
ExtensionHandler(String namespaceUri,
String scriptLang)
Construct a new extension namespace handler given all the information
needed.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
callFunction(FuncExtFunction extFunction,
Vector args,
ExpressionContext exprContext)
Process a call to a function.
|
abstract Object |
callFunction(String funcName,
Vector args,
Object methodKey,
ExpressionContext exprContext)
Process a call to a function.
|
abstract boolean |
isElementAvailable(String element)
Tests whether a certain element name is known within this namespace.
|
abstract boolean |
isFunctionAvailable(String function)
Tests whether a certain function name is known within this namespace.
|
abstract void |
processElement(String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
Object methodKey)
Process a call to this extension namespace via an element.
|
protected String m_namespaceUri
protected String m_scriptLang
public abstract boolean isFunctionAvailable(String function)
function
- name of the function being testedpublic abstract boolean isElementAvailable(String element)
element
- Name of element to checkpublic abstract Object callFunction(String funcName, Vector args, Object methodKey, ExpressionContext exprContext) throws TransformerException
funcName
- Function name.args
- The arguments of the function call.methodKey
- A key that uniquely identifies this class and method call.exprContext
- The context in which this expression is being executed.TransformerException
- if parsing troublepublic abstract Object callFunction(FuncExtFunction extFunction, Vector args, ExpressionContext exprContext) throws TransformerException
extFunction
- The XPath extension function.args
- The arguments of the function call.exprContext
- The context in which this expression is being executed.TransformerException
- if parsing troublepublic abstract void processElement(String localPart, ElemTemplateElement element, TransformerImpl transformer, Stylesheet stylesheetTree, Object methodKey) throws TransformerException, IOException
localPart
- Element name's local part.element
- The extension element being processed.transformer
- Handle to TransformerImpl.stylesheetTree
- The compiled stylesheet tree.methodKey
- A key that uniquely identifies this class and method call.XSLProcessorException
- thrown if something goes wrong
while running the extension handler.MalformedURLException
- if loading troubleFileNotFoundException
- if loading troubleIOException
- if loading troubleTransformerException
- if parsing troubleCopyright © 2018 JBoss by Red Hat. All rights reserved.