public class XPathType extends Object
XPath
元:
<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
Modifier and Type | Class and Description |
---|---|
static class |
XPathType.Filter
表示筛选器集操作。
|
Constructor and Description |
---|
XPathType(String expression, XPathType.Filter filter)
创建具有指定XPath表达式和滤波器的
XPathType 实例。
|
XPathType(String expression, XPathType.Filter filter, Map namespaceMap)
创建一个具有指定XPath表达式,
XPathType 实例滤波器和命名空间映射。
|
Modifier and Type | Method and Description |
---|---|
String |
getExpression()
返回XPath表达式进行评估。
|
XPathType.Filter |
getFilter()
返回筛选器操作。
|
Map |
getNamespaceMap()
返回Map的命名空间前缀。
|
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
实例滤波器和命名空间映射。复制Map以防止后续修改。
expression
的XPath表达式进行评估
filter
-过滤操作(
XPathType.Filter.INTERSECT
,
XPathType.Filter.SUBTRACT
,或
XPathType.Filter.UNION
)
namespaceMap
-命名空间前缀的Map。每一个键都
String
命名空间前缀映射到相应的命名空间URI
String
。
NullPointerException
-如果
expression
,
filter
或
namespaceMap
是
null
ClassCastException
-如果任何Map的钥匙或条目不
String
型
public String getExpression()
public XPathType.Filter getFilter()
public Map getNamespaceMap()
Map
命名空间前缀的命名空间URI(可能是空的,但从来没有
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.