|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xalan.extensions.ExtensionHandler
org.apache.xalan.extensions.ExtensionHandlerExsltFunction
Execute EXSLT functions, determine the availability of EXSLT functions, and the availability of an EXSLT result element.
Constructor Summary | |
ExtensionHandlerExsltFunction(String ns,
StylesheetRoot stylesheet)
Constructor called from ElemExsltFunction runtimeInit(). |
Method Summary | |
Object |
callFunction(FuncExtFunction extFunction,
Vector args,
ExpressionContext exprContext)
Execute the EXSLT function and return the result value. |
Object |
callFunction(String funcName,
Vector args,
Object methodKey,
ExpressionContext exprContext)
Execute the EXSLT function and return the result value. |
ElemExsltFunction |
getFunction(String funcName)
Get the ElemExsltFunction element associated with the function. |
boolean |
isElementAvailable(String elemName)
If an element-available() call applies to an EXSLT result element within an EXSLT function element, return true. |
boolean |
isFunctionAvailable(String funcName)
Does the EXSLT function exist? |
void |
processElement(String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
Object methodKey)
Required by ExtensionHandler (an abstract method). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtensionHandlerExsltFunction(String ns, StylesheetRoot stylesheet)
Method Detail |
public void processElement(String localPart, ElemTemplateElement element, TransformerImpl transformer, Stylesheet stylesheetTree, Object methodKey) throws TransformerException, 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.
IOException
- if loading trouble
TransformerException
- if parsing troublepublic ElemExsltFunction getFunction(String funcName)
funcName
- Local name of the function.
public boolean isFunctionAvailable(String funcName)
isFunctionAvailable
in class ExtensionHandler
funcName
- Local name of the function.
public boolean isElementAvailable(String elemName)
isElementAvailable
in class ExtensionHandler
elemName
- Name of element to check
public Object callFunction(String funcName, Vector args, Object methodKey, ExpressionContext exprContext) throws 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.
TransformerException
public Object callFunction(FuncExtFunction extFunction, Vector args, ExpressionContext exprContext) throws 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.
TransformerException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |