|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface XPathFunctionResolver
XPathFunctionResolver 提供了对用户定义的 XPathFunction 集的访问。
XPath 函数通过名称和 arity 解析。XPath 的内置函数无需解析器,且解析器不能 用于重写这些函数。
尤其是,解析器仅供另一个名称空间中的函数(带有显式前缀的函数)调用。这意味着不能使用 XPathFunctionResolver 来实现像 XML-Signature Syntax and Processing 这样的规范(此规范在相同名称空间中扩充了 XPath 1.0 的函数库)。这是解析器的设计结果。
如果要实现额外的内置函数,必须直接扩展基础实现。
| 方法摘要 | |
|---|---|
XPathFunction |
resolveFunction(QName functionName,
int arity)
在可用的函数集中查找函数。 |
| 方法详细信息 |
|---|
XPathFunction resolveFunction(QName functionName,
int arity)
在可用的函数集中查找函数。
如果 functionName 或 arity 为 null,则抛出 NullPointerException。
functionName - 函数名称。arity - 返回的函数必须接受的参数数量。
arity 个参数的命名为 functionName 的函数,则返回 null。
NullPointerException - 如果 functionName 或 arity 为 null。
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。