|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xpath.ExtensionFunctionHandler
Class handling an extension namespace for XPath. Provides functions to test a function's existence and call a function
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Inner Class Summary | |
static interface |
ExtensionFunctionHandler.ExtensionLiaison
Interface for connecting extension functions to xalan. |
Field Summary | |
protected boolean |
componentStarted
|
static java.lang.String |
DEFAULT_EXTENSION_LIAISON
|
protected java.util.Hashtable |
elements
|
protected ExtensionFunctionHandler.ExtensionLiaison |
extensionLiaison
Patch from Costin Manolache Remove BSF Specific code, create new Interface ExtensionLiaison and move BSF Specific code to XSLTJavaClassEngine |
protected java.util.Hashtable |
functions
|
java.lang.String |
namespaceUri
|
java.lang.String |
scriptLang
|
java.lang.String |
scriptSrc
|
java.lang.String |
scriptSrcURL
|
Constructor Summary | |
ExtensionFunctionHandler(java.lang.String namespaceUri)
Construct a new extension namespace handler for a given extension NS. |
|
ExtensionFunctionHandler(java.lang.String namespaceUri,
java.lang.String funcNames,
java.lang.String lang,
java.lang.String srcURL,
java.lang.String src)
Construct a new extension namespace handler given all the information needed. |
Method Summary | |
java.lang.Object |
callFunction(java.lang.String funcName,
java.util.Vector args,
java.lang.Object methodKey,
java.lang.Class javaClass)
Process a call to a function. |
java.lang.Object |
callJava(java.lang.Object object,
java.lang.String method,
java.lang.Object[] args,
java.lang.Object methodKey)
call the named method on the object that was loaded by eval. |
boolean |
isElementAvailable(java.lang.String element)
Tests whether a certain element name is known within this namespace. |
boolean |
isFunctionAvailable(java.lang.String function)
Tests whether a certain function name is known within this namespace. |
void |
setElements(java.lang.String elemNames)
Set element local parts of extension NS. |
void |
setFunctions(java.lang.String funcNames)
Set function local parts of extension NS. |
void |
setScript(java.lang.String lang,
java.lang.String srcURL,
java.lang.String scriptSrc)
Set the script data for this extension NS. |
protected void |
startupComponent(java.lang.Class classObj)
Start the component up by executing any script that needs to run at startup time. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected ExtensionFunctionHandler.ExtensionLiaison extensionLiaison
public java.lang.String namespaceUri
public java.lang.String scriptLang
public java.lang.String scriptSrc
public java.lang.String scriptSrcURL
protected java.util.Hashtable functions
protected java.util.Hashtable elements
protected boolean componentStarted
public static final java.lang.String DEFAULT_EXTENSION_LIAISON
Constructor Detail |
public ExtensionFunctionHandler(java.lang.String namespaceUri)
namespaceUri
- the extension namespace URI that I'm implementingpublic ExtensionFunctionHandler(java.lang.String namespaceUri, java.lang.String funcNames, java.lang.String lang, java.lang.String srcURL, java.lang.String src)
namespaceUri
- the extension namespace URI that I'm implementingfuncNames
- string containing list of functions of extension NSlang
- language of code implementing the extensionsrcURL
- value of src attribute (if any) - treated as a URL
or a classname depending on the value of lang. If
srcURL is not null, then scriptSrc is ignored.scriptSrc
- the actual script code (if any)Method Detail |
public void setFunctions(java.lang.String funcNames)
functions
- whitespace separated list of function names defined
by this extension namespace.public void setElements(java.lang.String elemNames)
elements
- whitespace separated list of element names defined
by this extension namespace.public void setScript(java.lang.String lang, java.lang.String srcURL, java.lang.String scriptSrc)
lang
- language of the script.srcURL
- value of src attribute (if any) - treated as a URL
or a classname depending on the value of lang. If
srcURL is not null, then scriptSrc is ignored.scriptSrc
- the actual script code (if any)public boolean isFunctionAvailable(java.lang.String function)
function
- name of the function being testedpublic boolean isElementAvailable(java.lang.String element)
function
- name of the function being testedpublic java.lang.Object callJava(java.lang.Object object, java.lang.String method, java.lang.Object[] args, java.lang.Object methodKey) throws XPathException
object
- ignored - should always be nullpublic java.lang.Object callFunction(java.lang.String funcName, java.util.Vector args, java.lang.Object methodKey, java.lang.Class javaClass) throws XPathException
funcName
- Function name.args
- The arguments of the function call.protected void startupComponent(java.lang.Class classObj) throws XPathProcessorException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |