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