|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.werken.xpath.ContextSupport
public class ContextSupport
ContextSupport maintains information to aid in the execution of the XPath against a context node.
It separates the knowledge of functions, variables and namespace-bindings from the context node to be walked.
| Constructor Summary | |
|---|---|
ContextSupport()
Construct a semantically empty ContextSupport |
|
ContextSupport(NamespaceContext nsContext,
FunctionContext functionContext,
VariableContext variableContext)
Construct a semantically initialized ContextSupport |
|
| Method Summary | |
|---|---|
Function |
getFunction(java.lang.String name)
Retrieve a named function |
java.lang.Object |
getVariableValue(java.lang.String name)
Resolve a variable binding |
void |
setFunctionContext(FunctionContext functionContext)
Set the FunctionContext implementation |
void |
setNamespaceContext(NamespaceContext nsContext)
Set the NamespaceContext implementation |
void |
setVariableContext(VariableContext variableContext)
Set the VariableContext implementation |
java.lang.String |
translateNamespacePrefix(java.lang.String prefix)
Translate a namespace prefix into a URI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextSupport()
public ContextSupport(NamespaceContext nsContext,
FunctionContext functionContext,
VariableContext variableContext)
nsContext - The NamespaceContext implementationfunctionContext - The FunctionContext implementationvariableContext - The VariableContext implementation| Method Detail |
|---|
public void setNamespaceContext(NamespaceContext nsContext)
nsContext - The NamespaceContext implementationpublic void setFunctionContext(FunctionContext functionContext)
functionContext - The FunctionContext implementationpublic void setVariableContext(VariableContext variableContext)
variableContext - The FunctionContext implementationpublic java.lang.String translateNamespacePrefix(java.lang.String prefix)
Using the NamespaceContext
implementation, translate the prefix used in a component of an XPath
into its expanded namespace URI.
prefix - The namespace prefix
setNamespaceContext(com.werken.xpath.NamespaceContext)public Function getFunction(java.lang.String name)
Retrieve the named function object, or null
if no such function exists. Delegates to the
FunctionContext implementation
provided, if any.
name - The name of the function sought.
Function
matching the specified name.setFunctionContext(com.werken.xpath.FunctionContext)public java.lang.Object getVariableValue(java.lang.String name)
Retrieve the currently bound value of the named
variable, or null if no such binding exists. Delegates
to the VariableContext implementation
provided, if any.
name - The name of the variable sought.
setVariableContext(com.werken.xpath.VariableContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||