org.jaxen
public class ContextSupport extends Object implements Serializable
NOTE: This class is not typically used directly, but is exposed for writers of implementation-specific XPath packages.
Version: $Id: ContextSupport.java,v 1.13 2006/06/03 20:06:06 elharo Exp $
See Also: XPath for dom4j
XPath for JDOM
XPath for W3C DOM
Field Summary | |
---|---|
FunctionContext | functionContext Function context. |
NamespaceContext | namespaceContext Namespace context. |
Navigator | navigator Model navigator. |
static long | serialVersionUID |
VariableContext | variableContext Variable context. |
Constructor Summary | |
---|---|
ContextSupport() Construct an empty ContextSupport . | |
ContextSupport(NamespaceContext namespaceContext, FunctionContext functionContext, VariableContext variableContext, Navigator navigator) Create a new ContextSupport object.
|
Method Summary | |
---|---|
Function | getFunction(String namespaceURI, String prefix, String localName) Retrieve a Function .
|
FunctionContext | getFunctionContext() Retrieve the FunctionContext .
|
NamespaceContext | getNamespaceContext() Retrieve the NamespaceContext .
|
Navigator | getNavigator() Retrieve the Navigator .
|
VariableContext | getVariableContext() Retrieve the VariableContext .
|
Object | getVariableValue(String namespaceURI, String prefix, String localName) Retrieve a variable value.
|
void | setFunctionContext(FunctionContext functionContext) Set the FunctionContext .
|
void | setNamespaceContext(NamespaceContext namespaceContext) Set the NamespaceContext .
|
void | setVariableContext(VariableContext variableContext) Set the VariableContext .
|
String | translateNamespacePrefixToUri(String prefix) Translate a namespace prefix to its URI.
|
ContextSupport
.Parameters: namespaceContext the NamespaceContext functionContext the FunctionContext variableContext the VariableContext navigator the model navigator
Function
.
Parameters: namespaceURI the function namespace URI prefix the function prefix localName the function name
Returns: the function object
Throws: UnresolvableException if unable to locate a bound function
FunctionContext
.
Returns: the function context
NamespaceContext
.
Returns: the namespace context
Navigator
.
Returns: the navigator
VariableContext
.
Returns: the variable context
Parameters: namespaceURI the function namespace URI prefix the function prefix localName the function name
Returns: the variable value.
Throws: UnresolvableException if unable to locate a bound variable.
FunctionContext
.
Parameters: functionContext the function context
NamespaceContext
.
Parameters: namespaceContext the namespace context
VariableContext
.
Parameters: variableContext the variable context
Parameters: prefix The prefix
Returns: the namespace URI mapped to the prefix