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.
XPath for dom4j,
XPath for JDOM,
XPath for W3C DOM,
Serialized Form| Constructor and Description |
|---|
ContextSupport()
Construct an empty
ContextSupport. |
ContextSupport(NamespaceContext namespaceContext,
FunctionContext functionContext,
VariableContext variableContext,
Navigator navigator)
Create a new ContextSupport object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ContextSupport()
ContextSupport.public ContextSupport(NamespaceContext namespaceContext, FunctionContext functionContext, VariableContext variableContext, Navigator navigator)
namespaceContext - the NamespaceContextfunctionContext - the FunctionContextvariableContext - the VariableContextnavigator - the model navigatorpublic void setNamespaceContext(NamespaceContext namespaceContext)
NamespaceContext.namespaceContext - the namespace contextpublic NamespaceContext getNamespaceContext()
NamespaceContext.public void setFunctionContext(FunctionContext functionContext)
FunctionContext.functionContext - the function contextpublic FunctionContext getFunctionContext()
FunctionContext.public void setVariableContext(VariableContext variableContext)
VariableContext.variableContext - the variable contextpublic VariableContext getVariableContext()
VariableContext.public Navigator getNavigator()
Navigator.public String translateNamespacePrefixToUri(String prefix)
prefix - The prefixpublic Object getVariableValue(String namespaceURI, String prefix, String localName) throws UnresolvableException
namespaceURI - the function namespace URIprefix - the function prefixlocalName - the function nameUnresolvableException - if unable to locate a bound variable.public Function getFunction(String namespaceURI, String prefix, String localName) throws UnresolvableException
Function.namespaceURI - the function namespace URIprefix - the function prefixlocalName - the function nameUnresolvableException - if unable to locate a bound functionCopyright © 2001-2012 Codehaus. All Rights Reserved.