Java javax.xml.xpath XPathFactory fields, constructors, methods, implement or subclass

Example usage for Java javax.xml.xpath XPathFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.xml.xpath XPathFactory.

The text is from its open source code.

Field

StringDEFAULT_PROPERTY_NAME

The default property name according to the JAXP spec.

StringDEFAULT_OBJECT_MODEL_URI

Default Object Model URI.

Method

ClassgetClass()
Returns the runtime class of this Object .
XPathFactorynewInstance()

Get a new XPathFactory instance using the default object model, #DEFAULT_OBJECT_MODEL_URI , the W3C DOM.

This method is functionally equivalent to:

 newInstance(DEFAULT_OBJECT_MODEL_URI) 

Since the implementation for the W3C DOM is always available, this method will never fail.

XPathFactorynewInstance(final String uri)

Get a new XPathFactory instance using the specified object model.

To find a XPathFactory object, this method looks the following places in the following order where "the class loader" refers to the context class loader:

  1. If the system property #DEFAULT_PROPERTY_NAME + ":uri" is present, where uri is the parameter to this method, then its value is read as a class name.

XPathnewXPath()

Return a new XPath using the underlying object model determined when the XPathFactory was instantiated.

voidsetXPathFunctionResolver(XPathFunctionResolver resolver)

Establish a default function resolver.

Any XPath objects constructed from this factory will use the specified resolver by default.

A NullPointerException is thrown if resolver is null.

voidsetXPathVariableResolver(XPathVariableResolver resolver)

Establish a default variable resolver.

Any XPath objects constructed from this factory will use the specified resolver by default.

A NullPointerException is thrown if resolver is null.