|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.extensions.ExtensionsTable
public class ExtensionsTable
Class holding a table registered extension namespace handlers
Field Summary | |
---|---|
java.util.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(java.lang.String uri,
ExtensionHandler extNS)
Register an extension namespace handler. |
boolean |
elementAvailable(java.lang.String ns,
java.lang.String elemName)
Execute the element-available() function. |
java.lang.Object |
extFunction(FuncExtFunction extFunction,
java.util.Vector argVec,
ExpressionContext exprContext)
Handle an extension function. |
java.lang.Object |
extFunction(java.lang.String ns,
java.lang.String funcName,
java.util.Vector argVec,
java.lang.Object methodKey,
ExpressionContext exprContext)
Handle an extension function. |
boolean |
functionAvailable(java.lang.String ns,
java.lang.String funcName)
Execute the function-available() function. |
ExtensionHandler |
get(java.lang.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 java.util.Hashtable m_extensionFunctionNamespaces
private StylesheetRoot m_sroot
Constructor Detail |
---|
public ExtensionsTable(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
Method Detail |
---|
public ExtensionHandler get(java.lang.String extns)
extns
- A valid extension namespace.
public void addExtensionNamespace(java.lang.String uri, ExtensionHandler extNS)
uri
- the URI for the extension.extNS
- the extension handler.public boolean functionAvailable(java.lang.String ns, java.lang.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(java.lang.String ns, java.lang.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 java.lang.Object extFunction(java.lang.String ns, java.lang.String funcName, java.util.Vector argVec, java.lang.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
public java.lang.Object extFunction(FuncExtFunction extFunction, java.util.Vector argVec, ExpressionContext exprContext) throws javax.xml.transform.TransformerException
extFunction
- the extension functionargVec
- arguments to the function in a vectorexprContext
- 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 |