public interface XPathVariableResolver
XPathVariableResolver提供对用户定义的XPath变量集的访问。
XPathVariableResolver和XPath评估程序必须遵守不能由API直接实施的合同。 虽然变量可以是可变的,即,一个应用程序可能希望评估相同的XPath表达式不止一次具有不同的变量值,在评价任何单个XPath表达式的过程中,一个变量的值不能改变。
| Modifier and Type | Method and Description |
|---|---|
Object |
resolveVariable(QName variableName)
在可用变量集中找到一个变量。
|
Object resolveVariable(QName variableName)
在可用变量集中找到一个变量。
如果variableName是null ,那么抛出一个NullPointerException 。
variableName - 变量名称的
QName 。
null如果没有名为variableName变量存在。
返回的值必须是适合于底层对象模型的类型。
NullPointerException - If
variableName is
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.