org.apache.xalan.extensions
Class ExtensionHandlerExsltFunction
public class ExtensionHandlerExsltFunction
Execute EXSLT functions, determine the availability of EXSLT functions, and the
availability of an EXSLT result element.
Object | callFunction(String funcName, Vector args, Object methodKey, ExpressionContext exprContext) - Execute the EXSLT function and return the result value.
|
Object | callFunction(FuncExtFunction extFunction, Vector args, 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).
|
ExtensionHandlerExsltFunction
public ExtensionHandlerExsltFunction(String ns,
StylesheetRoot stylesheet)
Constructor called from ElemExsltFunction runtimeInit().
callFunction
public Object callFunction(String funcName,
Vector args,
Object methodKey,
ExpressionContext exprContext)
throws TransformerException
Execute the EXSLT function and return the result value.
- callFunction in interface ExtensionHandler
funcName
- Name of the EXSLT function.args
- The arguments of the function call.methodKey
- Not used.exprContext
- Used to get the XPathContext.
- the return value of the function evaluation.
callFunction
public Object callFunction(FuncExtFunction extFunction,
Vector args,
ExpressionContext exprContext)
throws TransformerException
Execute the EXSLT function and return the result value.
- callFunction in interface ExtensionHandler
extFunction
- The XPath extension functionargs
- The arguments of the function call.exprContext
- The context in which this expression is being executed.
- the return value of the function evaluation.
getFunction
public ElemExsltFunction getFunction(String funcName)
Get the ElemExsltFunction element associated with the
function.
funcName
- Local name of the function.
- the ElemExsltFunction element associated with
the function, null if none exists.
isElementAvailable
public boolean isElementAvailable(String elemName)
If an element-available() call applies to an EXSLT result element within
an EXSLT function element, return true.
Note: The EXSLT function element is a template-level element, and
element-available() returns false for it.
- isElementAvailable in interface ExtensionHandler
- true if the function is available.
isFunctionAvailable
public boolean isFunctionAvailable(String funcName)
Does the EXSLT function exist?
- isFunctionAvailable in interface ExtensionHandler
funcName
- Local name of the function.
- true if the function exists.
Copyright B) 2004 Apache XML Project. All Rights Reserved.