|
|||||
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(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.String localName)
First look at the locally defined function and if none found calls the wrapped context. |
void |
registerFunction(java.lang.String localName,
org.jaxen.Function function)
Registers a function for this context. |
Methods inherited from class java.lang.Object |
---|
equals, 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(java.lang.String namespaceURI, java.lang.String prefix, java.lang.String localName) throws org.jaxen.UnresolvableException
getFunction
in interface org.jaxen.FunctionContext
org.jaxen.UnresolvableException
public void registerFunction(java.lang.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 |