public final class XPathFilterParameterSpec extends Object implements TransformParameterSpec
Map XPath表达式。变换参数的XPath过滤XML架构定义的定义是:
<element name="XPath" type="string"/>
Transform
| Constructor and Description |
|---|
XPathFilterParameterSpec(String xPath)
创建具有指定XPath表达式的一个
XPathFilterParameterSpec。
|
XPathFilterParameterSpec(String xPath, Map namespaceMap)
创建一个
XPathFilterParameterSpec与指定的XPath表达式和命名空间映射。
|
public XPathFilterParameterSpec(String xPath)
XPathFilterParameterSpec。
xPath的XPath表达式进行评估
null
xPath
NullPointerException
public XPathFilterParameterSpec(String xPath, Map namespaceMap)
XPathFilterParameterSpec与指定的XPath表达式和命名空间映射。复制Map以防止后续修改。
xPath的XPath表达式进行评估
namespaceMap -命名空间前缀的Map。每一个键都
String命名空间前缀映射到相应的命名空间URI
String。
NullPointerException -如果
xPath或
namespaceMap是
null
ClassCastException -如果任何Map的钥匙或条目不
String型
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.