public interface XPathFunctionResolver
XPathFunctionResolver
提供访问用户定义的设置XPathFunction
s。
XPath函数的名称和数量决定。解析器是不需要XPath的内置函数和解析不能用于覆盖这些功能。
特别是,解析器只为在另一个命名空间的功能(一个明确的前缀函数)。这意味着你不能使用XPathFunctionResolver
实施规范像XML-Signature Syntax and Processing延伸XPath 1的库函数在同一命名空间。这是一个旋转变压器的设计结果。
如果你想实现额外的内置函数,你将不得不直接扩展底层的实现。
Modifier and Type | Method and Description |
---|---|
XPathFunction |
resolveFunction(QName functionName, int arity)
在可用函数集合中查找一个函数。
|
XPathFunction resolveFunction(QName functionName, int arity)
在可用函数集合中查找一个函数。
如果functionName
或arity
是null
,然后NullPointerException
抛出。
functionName
-函数名。
arity
-参数,返回的函数必须接受数。
null
如果没有功能命名的
arity
functionName
存在争论。
NullPointerException
-如果
functionName
或
arity
是
null
。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.