javax.xml.xpath
14 classes of the module java.xml.
Load them with:
using {
"javax.xml.xpath"
}
XPath#
interface · javax.xml.xpath.XPath
Methods
| Method | Ring call | Java overloads |
|---|---|---|
compile | compile(expression) | XPathExpression compile(String expression) |
evaluate | evaluate([expression,item])evaluate([ :expression = v, :item = v ])evaluate([expression,item,returnType])evaluate([ :expression = v, :item = v, :returnType = v ]) | String evaluate(String expression, Object item)String evaluate(String expression, InputSource source)Object evaluate(String expression, Object item, QName returnType)Object evaluate(String expression, InputSource source, QName returnType) |
evaluateExpression | evaluateExpression([expression,item])evaluateExpression([ :expression = v, :item = v ])evaluateExpression([expression,item,type])evaluateExpression([ :expression = v, :item = v, :type = v ]) | XPathEvaluationResult evaluateExpression(String expression, Object item)XPathEvaluationResult evaluateExpression(String expression, InputSource source)Object evaluateExpression(String expression, Object item, Class type)Object evaluateExpression(String expression, InputSource source, Class type) |
getNamespaceContext | getNamespaceContext() | NamespaceContext getNamespaceContext() |
getXPathFunctionResolver | getXPathFunctionResolver() | XPathFunctionResolver getXPathFunctionResolver() |
getXPathVariableResolver | getXPathVariableResolver() | XPathVariableResolver getXPathVariableResolver() |
reset | reset() | void reset() |
setNamespaceContext | setNamespaceContext(nsContext) | void setNamespaceContext(NamespaceContext nsContext) |
setXPathFunctionResolver | setXPathFunctionResolver(resolver) | void setXPathFunctionResolver(XPathFunctionResolver resolver) |
setXPathVariableResolver | setXPathVariableResolver(resolver) | void setXPathVariableResolver(XPathVariableResolver resolver) |
XPathConstants#
class · extends Object · javax.xml.xpath.XPathConstants
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
NUMBER | QName | constant · static | o.NUMBER |
STRING | QName | constant · static | o.STRING |
BOOLEAN | QName | constant · static | o.BOOLEAN |
NODESET | QName | constant · static | o.NODESET |
NODE | QName | constant · static | o.NODE |
DOM_OBJECT_MODEL | String | constant · static | o.DOM_OBJECT_MODEL |
The methods and fields of Object are inherited.
XPathEvaluationResult#
interface · javax.xml.xpath.XPathEvaluationResult
Methods
| Method | Ring call | Java overloads |
|---|---|---|
type | type() | XPathResultType type() |
value | value() | Object value() |
XPathEvaluationResultXPathResultType#
enum · extends Enum · javax.xml.xpath.XPathEvaluationResult$XPathResultType
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ANY | XPathResultType | constant · static | o.ANY |
BOOLEAN | XPathResultType | constant · static | o.BOOLEAN |
NUMBER | XPathResultType | constant · static | o.NUMBER |
STRING | XPathResultType | constant · static | o.STRING |
NODESET | XPathResultType | constant · static | o.NODESET |
NODE | XPathResultType | constant · static | o.NODE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getQNameType | getQNameType(clsType) | static QName getQNameType(Class clsType) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static XPathResultType valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static XPathResultType[] values() |
The methods and fields of Enum are inherited.
XPathException#
class · extends Exception · javax.xml.xpath.XPathException
Constructors
new XPathException(String message) |
new XPathException(Throwable cause) |
Ring: new XPathException(args) uses the constructor with the fewest parameters (at least one); new XPathException makes the object with the constructor without parameters; the others: (new XPathException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
XPathExpression#
interface · javax.xml.xpath.XPathExpression
Methods
| Method | Ring call | Java overloads |
|---|---|---|
evaluate | evaluate(source)evaluate([source,returnType])evaluate([ :source = v, :returnType = v ]) | String evaluate(InputSource source)String evaluate(Object item)Object evaluate(InputSource source, QName returnType)Object evaluate(Object item, QName returnType) |
evaluateExpression | evaluateExpression(source)evaluateExpression([source,type])evaluateExpression([ :source = v, :type = v ]) | XPathEvaluationResult evaluateExpression(InputSource source)XPathEvaluationResult evaluateExpression(Object item)Object evaluateExpression(InputSource source, Class type)Object evaluateExpression(Object item, Class type) |
XPathExpressionException#
class · extends XPathException · javax.xml.xpath.XPathExpressionException
Constructors
new XPathExpressionException(String message) |
new XPathExpressionException(Throwable cause) |
Ring: new XPathExpressionException(args) uses the constructor with the fewest parameters (at least one); new XPathExpressionException makes the object with the constructor without parameters; the others: (new XPathExpressionException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of XPathException are inherited.
XPathFactory#
abstract · extends Object · javax.xml.xpath.XPathFactory
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DEFAULT_PROPERTY_NAME | String | constant · static | o.DEFAULT_PROPERTY_NAME |
DEFAULT_OBJECT_MODEL_URI | String | constant · static | o.DEFAULT_OBJECT_MODEL_URI |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@newInstance | @newInstance(uri)@newInstance([uri,factoryClassName,classLoader])@newInstance([ :uri = v, :factoryClassName = v, :classLoader = v ]) | static XPathFactory newInstance(String uri)static XPathFactory newInstance(String uri, String factoryClassName, ClassLoader classLoader) |
getFeature | getFeature(name) | boolean getFeature(String name) |
getProperty | getProperty(name) | String getProperty(String name) |
isObjectModelSupported | isObjectModelSupported(objectModel) | boolean isObjectModelSupported(String objectModel) |
newDefaultInstance | newDefaultInstance() | static XPathFactory newDefaultInstance() |
newInstance | newInstance() | static XPathFactory newInstance() |
newXPath | newXPath() | XPath newXPath() |
setFeature | setFeature(name,value) | void setFeature(String name, boolean value) |
setProperty | setProperty(name,value) | void setProperty(String name, String value) |
setXPathFunctionResolver | setXPathFunctionResolver(resolver) | void setXPathFunctionResolver(XPathFunctionResolver resolver) |
setXPathVariableResolver | setXPathVariableResolver(resolver) | void setXPathVariableResolver(XPathVariableResolver resolver) |
The methods and fields of Object are inherited.
XPathFactoryConfigurationException#
class · extends XPathException · javax.xml.xpath.XPathFactoryConfigurationException
Constructors
new XPathFactoryConfigurationException(String message) |
new XPathFactoryConfigurationException(Throwable cause) |
Ring: new XPathFactoryConfigurationException(args) uses the constructor with the fewest parameters (at least one); new XPathFactoryConfigurationException makes the object with the constructor without parameters; the others: (new XPathFactoryConfigurationException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of XPathException are inherited.
XPathFunction#
interface · javax.xml.xpath.XPathFunction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
evaluate | evaluate(args) | Object evaluate(List args) |
XPathFunctionException#
class · extends XPathExpressionException · javax.xml.xpath.XPathFunctionException
Constructors
new XPathFunctionException(String message) |
new XPathFunctionException(Throwable cause) |
Ring: new XPathFunctionException(args) uses the constructor with the fewest parameters (at least one); new XPathFunctionException makes the object with the constructor without parameters; the others: (new XPathFunctionException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of XPathExpressionException are inherited.
XPathFunctionResolver#
interface · javax.xml.xpath.XPathFunctionResolver
Methods
| Method | Ring call | Java overloads |
|---|---|---|
resolveFunction | resolveFunction(functionName,arity) | XPathFunction resolveFunction(QName functionName, int arity) |
XPathNodes#
interface · javax.xml.xpath.XPathNodes
Extends: Iterable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
@get | @get(index) | Node get(int index) |
iterator | iterator() | Iterator iterator() |
size | size() | int size() |
spliterator | spliterator() | Spliterator spliterator() |
XPathVariableResolver#
interface · javax.xml.xpath.XPathVariableResolver
Methods
| Method | Ring call | Java overloads |
|---|---|---|
resolveVariable | resolveVariable(variableName) | Object resolveVariable(QName variableName) |