|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jaxen.ContextSupport
Supporting context information for resolving namespace prefixess, 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 FormConstructor Summary | |
ContextSupport()
Construct an empty ContextSupport . |
|
ContextSupport(NamespaceContext namespaceContext,
FunctionContext functionContext,
VariableContext variableContext,
Navigator navigator)
Construct. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextSupport()
ContextSupport
.
public ContextSupport(NamespaceContext namespaceContext, FunctionContext functionContext, VariableContext variableContext, Navigator navigator)
namespaceContext
- The NamespaceContext.functionContext
- The FunctionContext.variableContext
- The VariableContext.navigator
- The model navigator.Method Detail |
public void setNamespaceContext(NamespaceContext namespaceContext)
NamespaceContext
.
namespaceContext
- The namespace context.public NamespaceContext getNamespaceContext()
NamespaceContext
.
public void setFunctionContext(FunctionContext functionContext)
FunctionContext
.
functionContext
- The function context.public FunctionContext getFunctionContext()
FunctionContext
.
public void setVariableContext(VariableContext variableContext)
VariableContext
.
variableContext
- The variable context.public VariableContext getVariableContext()
VariableContext
.
public Navigator getNavigator()
Navigator
.
public String translateNamespacePrefixToUri(String prefix)
prefix
- The prefix.
public Object getVariableValue(String namespaceURI, String prefix, String localName) throws UnresolvableException
namespaceURI
- The function namespace URI.prefix
- The function prefix.localName
- The function name.
UnresolvableException
- If unable to locate a bound variable.public Function getFunction(String namespaceURI, String prefix, String localName) throws UnresolvableException
Function
.
namespaceURI
- The function namespace URI.prefix
- The function prefix.localName
- 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 |