public class FunctionContextWrapper extends Object implements org.jaxen.FunctionContext
Constructor and Description |
---|
FunctionContextWrapper(org.jaxen.FunctionContext functionContext)
Wraps an existing context
|
Modifier and Type | Method and Description |
---|---|
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.
|
public FunctionContextWrapper(org.jaxen.FunctionContext functionContext)
functionContext
- the context to wrappublic 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.Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.