|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。