public class ExtensionHandlerExsltFunction extends ExtensionHandler
Constructor and Description |
---|
ExtensionHandlerExsltFunction(java.lang.String ns,
StylesheetRoot stylesheet)
Constructor called from ElemExsltFunction runtimeInit().
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
callFunction(FuncExtFunction extFunction,
java.util.Vector args,
ExpressionContext exprContext)
Execute the EXSLT function and return the result value.
|
java.lang.Object |
callFunction(java.lang.String funcName,
java.util.Vector args,
java.lang.Object methodKey,
ExpressionContext exprContext)
Execute the EXSLT function and return the result value.
|
ElemExsltFunction |
getFunction(java.lang.String funcName)
Get the ElemExsltFunction element associated with the
function.
|
boolean |
isElementAvailable(java.lang.String elemName)
If an element-available() call applies to an EXSLT result element within
an EXSLT function element, return true.
|
boolean |
isFunctionAvailable(java.lang.String funcName)
Does the EXSLT function exist?
|
void |
processElement(java.lang.String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
java.lang.Object methodKey)
Required by ExtensionHandler (an abstract method).
|
public ExtensionHandlerExsltFunction(java.lang.String ns, StylesheetRoot stylesheet)
public void processElement(java.lang.String localPart, ElemTemplateElement element, TransformerImpl transformer, Stylesheet stylesheetTree, java.lang.Object methodKey) throws javax.xml.transform.TransformerException, java.io.IOException
processElement
in class ExtensionHandler
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.javax.xml.transform.TransformerException
- if parsing troublejava.io.IOException
- if loading troublepublic ElemExsltFunction getFunction(java.lang.String funcName)
funcName
- Local name of the function.public boolean isFunctionAvailable(java.lang.String funcName)
isFunctionAvailable
in class ExtensionHandler
funcName
- Local name of the function.public boolean isElementAvailable(java.lang.String elemName)
isElementAvailable
in class ExtensionHandler
elemName
- name of the element.public java.lang.Object callFunction(java.lang.String funcName, java.util.Vector args, java.lang.Object methodKey, ExpressionContext exprContext) throws javax.xml.transform.TransformerException
callFunction
in class ExtensionHandler
funcName
- Name of the EXSLT function.args
- The arguments of the function call.methodKey
- Not used.exprContext
- Used to get the XPathContext.javax.xml.transform.TransformerException
public java.lang.Object callFunction(FuncExtFunction extFunction, java.util.Vector args, ExpressionContext exprContext) throws javax.xml.transform.TransformerException
callFunction
in class ExtensionHandler
extFunction
- The XPath extension functionargs
- The arguments of the function call.exprContext
- The context in which this expression is being executed.javax.xml.transform.TransformerException
Copyright © 2006 Apache XML Project. All Rights Reserved.