org.apache.xalan.extensions
public class ExtensionsTable extends Object
UNKNOWN: internal
Field Summary | |
---|---|
Hashtable | m_extensionFunctionNamespaces
Table of extensions that may be called from the expression language
via the call(name, ...) function. |
Constructor Summary | |
---|---|
ExtensionsTable(StylesheetRoot sroot)
The constructor (called from TransformerImpl) registers the
StylesheetRoot for the transformation and instantiates an
ExtensionHandler for each extension namespace. |
Method Summary | |
---|---|
void | addExtensionNamespace(String uri, ExtensionHandler extNS)
Register an extension namespace handler. |
boolean | elementAvailable(String ns, String elemName)
Execute the element-available() function. |
Object | extFunction(String ns, String funcName, Vector argVec, Object methodKey, ExpressionContext exprContext)
Handle an extension function. |
Object | extFunction(FuncExtFunction extFunction, Vector argVec, 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. |
UNKNOWN: internal
UNKNOWN: advanced
Parameters: uri the URI for the extension. extNS the extension handler.
UNKNOWN: advanced
Parameters: ns the URI of namespace in which the function is needed elemName name of element being tested
Returns: whether the given element is available or not.
Throws: javax.xml.transform.TransformerException
Parameters: ns the URI of namespace in which the function is needed funcName the function name being called argVec arguments to the function in a vector methodKey a unique key identifying this function instance in the stylesheet exprContext a context which may be passed to an extension function and provides callback functions to access various areas in the environment
Returns: result of executing the function
Throws: javax.xml.transform.TransformerException
Parameters: extFunction the extension function argVec arguments to the function in a vector exprContext a context which may be passed to an extension function and provides callback functions to access various areas in the environment
Returns: result of executing the function
Throws: javax.xml.transform.TransformerException
Parameters: ns the URI of namespace in which the function is needed funcName the function name being tested
Returns: whether the given function is available or not.
Throws: javax.xml.transform.TransformerException
Parameters: extns A valid extension namespace.
Returns: ExtensionHandler object that represents the given namespace.