org.jaxen
Class ContextSupport
- Serializable
public class ContextSupport
extends java.lang.Object
implements Serializable
Supporting context information for resolving
namespace prefixes, functions, and variables.
NOTE: This class is not typically used directly,
but is exposed for writers of implementation-specific
XPath packages.
$Id: ContextSupport.java,v 1.13 2006/06/03 20:06:06 elharo Exp $
navigator
private Navigator navigator
Model navigator.
serialVersionUID
private static final long serialVersionUID
ContextSupport
public ContextSupport()
Construct an empty ContextSupport.
ContextSupport
public ContextSupport(NamespaceContext namespaceContext,
FunctionContext functionContext,
VariableContext variableContext,
Navigator navigator)Create a new ContextSupport object.
namespaceContext - the NamespaceContextfunctionContext - the FunctionContextvariableContext - the VariableContextnavigator - the model navigator
getFunction
public Function getFunction(String namespaceURI,
String prefix,
String localName)
throws UnresolvableExceptionRetrieve a Function.
namespaceURI - the function namespace URIprefix - the function prefixlocalName - the function name
getFunctionContext
public FunctionContext getFunctionContext()
Retrieve the FunctionContext.
getNamespaceContext
public NamespaceContext getNamespaceContext()
Retrieve the NamespaceContext.
getNavigator
public Navigator getNavigator()
Retrieve the Navigator.
getVariableContext
public VariableContext getVariableContext()
Retrieve the VariableContext.
getVariableValue
public Object getVariableValue(String namespaceURI,
String prefix,
String localName)
throws UnresolvableExceptionRetrieve a variable value.
namespaceURI - the function namespace URIprefix - the function prefixlocalName - the function name
setFunctionContext
public void setFunctionContext(FunctionContext functionContext)
Set the FunctionContext.
functionContext - the function context
setNamespaceContext
public void setNamespaceContext(NamespaceContext namespaceContext)
Set the NamespaceContext.
namespaceContext - the namespace context
setVariableContext
public void setVariableContext(VariableContext variableContext)
Set the VariableContext.
variableContext - the variable context
translateNamespacePrefixToUri
public String translateNamespacePrefixToUri(String prefix)
Translate a namespace prefix to its URI.
- the namespace URI mapped to the prefix