com.werken.xpath
クラス XPathFunctionContext

java.lang.Object
  |
  +--com.werken.xpath.XPathFunctionContext
すべての実装インタフェース:
FunctionContext

public class XPathFunctionContext
extends java.lang.Object
implements FunctionContext

Implementation of FunctionContext which matches the core function library as described by the W3C XPath Specification.

May be directly instantiated or subclassed. A Singleton is provided for ease-of-use in the default case of bare XPaths.

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

コンストラクタの概要
XPathFunctionContext()
           
 
メソッドの概要
protected  void addFunction(java.lang.String name, Function func)
          Add a function to this FunctionContext
 Function getFunction(java.lang.String name)
          Retrieve a named function Retrieve the named function object, or null if no such function exists.
static XPathFunctionContext getInstance()
          Get the XPathFunctionContext singleton.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

XPathFunctionContext

public XPathFunctionContext()
メソッドの詳細

getInstance

public static XPathFunctionContext getInstance()
Get the XPathFunctionContext singleton.
戻り値:
The global, immutable FunctionContext which matches the functions as described by the W3C XPath specification.

addFunction

protected void addFunction(java.lang.String name,
                           Function func)
Add a function to this FunctionContext
パラメータ:
name - The name of the function.
func - The implementing Function Object.

getFunction

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

Retrieve the named function object, or null if no such function exists.

定義:
インタフェース FunctionContext 内の getFunction
パラメータ:
name - The name of the function sought.
戻り値:
The Function matching the specified name.
関連項目:
com.werken.xpath.ContextHelper#setFunctionContext


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