|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.extensions.ExtensionsTable
Class holding a table registered extension namespace handlers
Field Summary | |
Hashtable |
m_extensionFunctionNamespaces
Table of extensions that may be called from the expression language via the call(name, ...) function. |
private StylesheetRoot |
m_sroot
The StylesheetRoot associated with this extensions table. |
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. |
boolean |
functionAvailable(String ns,
String funcName)
Execute the function-available() function. |
ExtensionHandler |
get(String extns)
Get an ExtensionHandler object that represents the given namespace. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Hashtable m_extensionFunctionNamespaces
private StylesheetRoot m_sroot
Constructor Detail |
public ExtensionsTable(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
Method Detail |
public ExtensionHandler get(String extns)
extns
- A valid extension namespace.
public void addExtensionNamespace(String uri, ExtensionHandler extNS)
uri
- the URI for the extension.extNS
- the extension handler.public boolean functionAvailable(String ns, String funcName) throws javax.xml.transform.TransformerException
ns
- the URI of namespace in which the function is neededfuncName
- the function name being tested
javax.xml.transform.TransformerException
public boolean elementAvailable(String ns, String elemName) throws javax.xml.transform.TransformerException
ns
- the URI of namespace in which the function is neededelemName
- name of element being tested
javax.xml.transform.TransformerException
public Object extFunction(String ns, String funcName, Vector argVec, Object methodKey, ExpressionContext exprContext) throws javax.xml.transform.TransformerException
ns
- the URI of namespace in which the function is neededfuncName
- the function name being calledargVec
- arguments to the function in a vectormethodKey
- a unique key identifying this function instance in the
stylesheetexprContext
- a context which may be passed to an extension function
and provides callback functions to access various
areas in the environment
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |