|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaxen.ContextSupport
public class ContextSupport
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.
XPath for dom4j
,
XPath for JDOM
,
XPath for W3C DOM
,
Serialized FormField Summary | |
---|---|
private FunctionContext |
functionContext
Function context. |
private NamespaceContext |
namespaceContext
Namespace context. |
private Navigator |
navigator
Model navigator. |
private static long |
serialVersionUID
|
private 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(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.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 . |
java.lang.Object |
getVariableValue(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.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 . |
java.lang.String |
translateNamespacePrefixToUri(java.lang.String prefix)
Translate a namespace prefix to its URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private transient FunctionContext functionContext
private NamespaceContext namespaceContext
private VariableContext variableContext
private Navigator navigator
Constructor Detail |
---|
public ContextSupport()
ContextSupport
.
public ContextSupport(NamespaceContext namespaceContext, FunctionContext functionContext, VariableContext variableContext, Navigator navigator)
namespaceContext
- the NamespaceContextfunctionContext
- the FunctionContextvariableContext
- the VariableContextnavigator
- the model navigatorMethod Detail |
---|
public 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 java.lang.String translateNamespacePrefixToUri(java.lang.String prefix)
prefix
- The prefix
public java.lang.Object getVariableValue(java.lang.String namespaceURI, java.lang.String prefix, java.lang.String localName) throws UnresolvableException
namespaceURI
- the function namespace URIprefix
- the function prefixlocalName
- the function name
UnresolvableException
- if unable to locate a bound variable.public Function getFunction(java.lang.String namespaceURI, java.lang.String prefix, java.lang.String localName) throws UnresolvableException
Function
.
namespaceURI
- the function namespace URIprefix
- the function prefixlocalName
- the function name
UnresolvableException
- if unable to locate a bound function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |