|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.xml.crypto.dsig.spec.XPathType
public class XPathType
W3C Recommendation for XML-Signature XPath Filter 2.0 中所定義的 XPath 元素的 XML 網要定義:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xf="http://www.w3.org/2002/06/xmldsig-filter2"
targetNamespace="http://www.w3.org/2002/06/xmldsig-filter2"
version="0.1" elementFormDefault="qualified">
<element name="XPath"
type="xf:XPathType"/>
<complexType name="XPathType">
<simpleContent>
<extension base="string">
<attribute name="Filter">
<simpleType>
<restriction base="string">
<enumeration value="intersect"/>
<enumeration value="subtract"/>
<enumeration value="union"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
XPathFilter2ParameterSpec| 巢狀類別摘要 | |
|---|---|
static class |
XPathType.Filter
表示過濾器設置操作。 |
| 建構子摘要 | |
|---|---|
XPathType(String expression,
XPathType.Filter filter)
創建帶有指定 XPath 表達式和過濾器的 XPathType 實例。 |
|
XPathType(String expression,
XPathType.Filter filter,
Map namespaceMap)
創建帶有指定 XPath 表達式、過濾器和名稱空間映射表的 XPathType 實例。 |
|
| 方法摘要 | |
|---|---|
String |
getExpression()
返回要計算的 XPath 表達式。 |
XPathType.Filter |
getFilter()
返回過濾操作。 |
Map |
getNamespaceMap()
返回名稱空間前綴的映射表。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public XPathType(String expression,
XPathType.Filter filter)
XPathType 實例。
expression - 要計算的 XPath 表達式filter - 過濾操作 (XPathType.Filter.INTERSECT、XPathType.Filter.SUBTRACT 或 XPathType.Filter.UNION)
NullPointerException - 如果 expression 或 filter 為 null
public XPathType(String expression,
XPathType.Filter filter,
Map namespaceMap)
XPathType 實例。複製該映射表,以防止隨後被修改。
expression - 要計算的 XPath 表達式filter - 過濾操作 (XPathType.Filter.INTERSECT、XPathType.Filter.SUBTRACT 或 XPathType.Filter.UNION)namespaceMap - 名稱空間前綴的映射表。每個密鑰都是一個命名空間前綴 String,它將映射到相應的命名空間 URI String。
NullPointerException - 如果 expression、filter 或 namespaceMap 為 null
ClassCastException - 如果任何映射密鑰或條目的型別不是 String| 方法詳細資訊 |
|---|
public String getExpression()
public XPathType.Filter getFilter()
public Map getNamespaceMap()
String,它將映射到相應的命名空間 URI String。
此實作返回一個不可修改的映射表。
Map(可以為空,但不能為 null)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。