RingJavafor Ring

javax.xml.xpath

14 classes of the module java.xml.

Load them with:

using {
	"javax.xml.xpath"
}

All packages

XPath#

interface · javax.xml.xpath.XPath

Methods

MethodRing callJava overloads
compilecompile(expression)XPathExpression compile(String expression)
evaluateevaluate([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)
evaluateExpressionevaluateExpression([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)
getNamespaceContextgetNamespaceContext()NamespaceContext getNamespaceContext()
getXPathFunctionResolvergetXPathFunctionResolver()XPathFunctionResolver getXPathFunctionResolver()
getXPathVariableResolvergetXPathVariableResolver()XPathVariableResolver getXPathVariableResolver()
resetreset()void reset()
setNamespaceContextsetNamespaceContext(nsContext)void setNamespaceContext(NamespaceContext nsContext)
setXPathFunctionResolversetXPathFunctionResolver(resolver)void setXPathFunctionResolver(XPathFunctionResolver resolver)
setXPathVariableResolversetXPathVariableResolver(resolver)void setXPathVariableResolver(XPathVariableResolver resolver)

XPathConstants#

class · extends Object · javax.xml.xpath.XPathConstants

Fields

NameTypeAccessIn Ring
NUMBERQNameconstant · statico.NUMBER
STRINGQNameconstant · statico.STRING
BOOLEANQNameconstant · statico.BOOLEAN
NODESETQNameconstant · statico.NODESET
NODEQNameconstant · statico.NODE
DOM_OBJECT_MODELStringconstant · statico.DOM_OBJECT_MODEL

The methods and fields of Object are inherited.

XPathEvaluationResult#

interface · javax.xml.xpath.XPathEvaluationResult

Methods

MethodRing callJava overloads
typetype()XPathResultType type()
valuevalue()Object value()

XPathEvaluationResultXPathResultType#

enum · extends Enum · javax.xml.xpath.XPathEvaluationResult$XPathResultType

Fields

NameTypeAccessIn Ring
ANYXPathResultTypeconstant · statico.ANY
BOOLEANXPathResultTypeconstant · statico.BOOLEAN
NUMBERXPathResultTypeconstant · statico.NUMBER
STRINGXPathResultTypeconstant · statico.STRING
NODESETXPathResultTypeconstant · statico.NODESET
NODEXPathResultTypeconstant · statico.NODE

Methods

MethodRing callJava overloads
getQNameTypegetQNameType(clsType)static QName getQNameType(Class clsType)
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static XPathResultType valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()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

MethodRing callJava overloads
evaluateevaluate(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)
evaluateExpressionevaluateExpression(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

NameTypeAccessIn Ring
DEFAULT_PROPERTY_NAMEStringconstant · statico.DEFAULT_PROPERTY_NAME
DEFAULT_OBJECT_MODEL_URIStringconstant · statico.DEFAULT_OBJECT_MODEL_URI

Methods

MethodRing callJava 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)
getFeaturegetFeature(name)boolean getFeature(String name)
getPropertygetProperty(name)String getProperty(String name)
isObjectModelSupportedisObjectModelSupported(objectModel)boolean isObjectModelSupported(String objectModel)
newDefaultInstancenewDefaultInstance()static XPathFactory newDefaultInstance()
newInstancenewInstance()static XPathFactory newInstance()
newXPathnewXPath()XPath newXPath()
setFeaturesetFeature(name,value)void setFeature(String name, boolean value)
setPropertysetProperty(name,value)void setProperty(String name, String value)
setXPathFunctionResolversetXPathFunctionResolver(resolver)void setXPathFunctionResolver(XPathFunctionResolver resolver)
setXPathVariableResolversetXPathVariableResolver(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

MethodRing callJava overloads
evaluateevaluate(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

MethodRing callJava overloads
resolveFunctionresolveFunction(functionName,arity)XPathFunction resolveFunction(QName functionName, int arity)

XPathNodes#

interface · javax.xml.xpath.XPathNodes

Extends: Iterable

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
@get@get(index)Node get(int index)
iteratoriterator()Iterator iterator()
sizesize()int size()
spliteratorspliterator()Spliterator spliterator()

XPathVariableResolver#

interface · javax.xml.xpath.XPathVariableResolver

Methods

MethodRing callJava overloads
resolveVariableresolveVariable(variableName)Object resolveVariable(QName variableName)
RingJava - use Java classes and methods from Ring programs.