uTools-Manuals/docs/java/javax/xml/xpath/XPathFunctionResolver.html

114 lines
4.8 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact2, compact3
</div>
<div class="subTitle">
javax.xml.xpath
</div>
<h2 class="title" title="Interface XPathFunctionResolver">Interface XPathFunctionResolver</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public interface <span class="typeNameLabel">XPathFunctionResolver</span></pre>
<div class="block">
<p> <span><code>XPathFunctionResolver</code>提供访问一组用户定义的<code>XPathFunction</code>秒。</span> </p>
<p> <span>XPath函数通过名称和空间来解决。</span> <span>XPath内置函数不需要解析器解析器<strong><em>不能</em></strong>用于覆盖这些函数。</span> </p>
<p> <span>特别地,解析器仅被称为另一命名空间中的函数(具有明确前缀的函数)。</span> <span>这意味着您不能使用<code>XPathFunctionResolver</code>来实现像<a href="http://www.w3.org/TR/xmldsig-core/">XML-Signature Syntax and Processing</a>这样的<a href="http://www.w3.org/TR/xmldsig-core/">规范</a> 它将XPath 1.0的功能库扩展到相同的命名空间中。</span> <span>这是解析器设计的结果。</span> </p>
<p> <span>如果您希望实现其他内置函数,则必须直接扩展底层实现。</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.5
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="http://www.w3.org/TR/xpath#corelib">XML Path Language (XPath) Version 1.0, Core Function Library</a>
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../../javax/xml/xpath/XPathFunction.html" title="interface in javax.xml.xpath">XPathFunction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/xpath/XPathFunctionResolver.html#resolveFunction-javax.xml.namespace.QName-int-">resolveFunction</a></span>(<a href="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</a> functionName, int arity)</code>
<div class="block">
在一组可用函数中查找一个函数。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="resolveFunction-javax.xml.namespace.QName-int-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>resolveFunction</h4> <pre><a href="../../../javax/xml/xpath/XPathFunction.html" title="interface in javax.xml.xpath">XPathFunction</a> resolveFunction(<a href="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</a> functionName,
int arity)</pre>
<div class="block">
<p> <span>在一组可用函数中查找一个函数。</span> </p>
<p> <span>如果<code>functionName</code><code>arity</code><code>null</code> ,则抛出一个<code>NullPointerException</code></span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>functionName</code> - 函数名。
</dd>
<dd>
<code>arity</code> - 返回函数必须接受的参数数。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
该功能或
<code>null</code>如果没有功能命名为
<code>functionName</code>
<code>arity</code>参数存在。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</a></code> - 如果
<code>functionName</code>
<code>arity</code>
<code>null</code>
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>