com.werken.xpath
クラス ContextSupport

java.lang.Object
  |
  +--com.werken.xpath.ContextSupport

public class ContextSupport
extends java.lang.Object

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.

作成者:
bob mcwhirter (bob @ werken.com)

コンストラクタの概要
ContextSupport()
          Construct a semantically empty ContextSupport
ContextSupport(NamespaceContext nsContext, FunctionContext functionContext, VariableContext variableContext)
          Construct a semantically initialized ContextSupport
 
メソッドの概要
 Function getFunction(java.lang.String name)
          Retrieve a named function Retrieve the named function object, or null if no such function exists.
 java.lang.Object getVariableValue(java.lang.String name)
          Resolve a variable binding Retrieve the currently bound value of the named variable, or null if no such binding exists.
 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 Using the NamespaceContext implementation, translate the prefix used in a component of an XPath into its expanded namespace URI.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ContextSupport

public ContextSupport()
Construct a semantically empty ContextSupport

ContextSupport

public ContextSupport(NamespaceContext nsContext,
                      FunctionContext functionContext,
                      VariableContext variableContext)
Construct a semantically initialized ContextSupport
パラメータ:
nsContext - The NamespaceContext implementation
functionContext - The FunctionContext implementation
variableContext - The VariableContext implementation
メソッドの詳細

setNamespaceContext

public void setNamespaceContext(NamespaceContext nsContext)
Set the NamespaceContext implementation
パラメータ:
nsContext - The NamespaceContext implementation

setFunctionContext

public void setFunctionContext(FunctionContext functionContext)
Set the FunctionContext implementation
パラメータ:
functionContext - The FunctionContext implementation

setVariableContext

public void setVariableContext(VariableContext variableContext)
Set the VariableContext implementation
パラメータ:
variableContext - The FunctionContext implementation

translateNamespacePrefix

public java.lang.String translateNamespacePrefix(java.lang.String prefix)
Translate a namespace prefix into a URI

Using the NamespaceContext implementation, translate the prefix used in a component of an XPath into its expanded namespace URI.

パラメータ:
prefix - The namespace prefix
戻り値:
The URI matching the prefix
関連項目:
setNamespaceContext(com.werken.xpath.NamespaceContext)

getFunction

public Function getFunction(java.lang.String name)
Retrieve a named function

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.
戻り値:
The Function matching the specified name.
関連項目:
setFunctionContext(com.werken.xpath.FunctionContext)

getVariableValue

public java.lang.Object getVariableValue(java.lang.String name)
Resolve a variable binding

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.
戻り値:
The currently bound value of the variable, or null.
関連項目:
setVariableContext(com.werken.xpath.VariableContext)


Copyright ? 2000 bob mcwhirter and The Werken & Sons Company. All Rights Reserved.