|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.xpath.FunctionContextWrapper
public class FunctionContextWrapper
A wrapper allowing to add new functions without affecting the original context.
Constructor Summary | |
---|---|
FunctionContextWrapper(org.jaxen.FunctionContext functionContext)
Wraps an existing context |
Method Summary | |
---|---|
org.jaxen.Function |
getFunction(String namespaceURI,
String prefix,
String localName)
First look at the locally defined function and if none found calls the wrapped context. |
void |
registerFunction(String localName,
org.jaxen.Function function)
Registers a function for this context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionContextWrapper(org.jaxen.FunctionContext functionContext)
functionContext
- the context to wrapMethod Detail |
---|
public org.jaxen.Function getFunction(String namespaceURI, String prefix, String localName) throws org.jaxen.UnresolvableException
getFunction
in interface org.jaxen.FunctionContext
org.jaxen.UnresolvableException
public void registerFunction(String localName, org.jaxen.Function function)
localName
- The non-prefixed local portion of the function to be registered with this context.function
- the object to be used when evaluating the function.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |