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.