APIdia Launch Partner
Top Description Methods
com.sun.org.apache.xpath.internal

public Interface XPathFactory

Imports
javax.xml.transform.SourceLocator, com.sun.org.apache.xml.internal.utils.PrefixResolver

Factory class for creating an XPath. Implementors of XPath derivatives will need to make a derived class of this.

Method Summary

Modifier and TypeMethod and Description
public XPath

Returns:

an XPath ready for execution.
create
(String
The XPath expression string.
exprString
,
SourceLocator
The location of the expression string, mainly for diagnostic purposes.
locator
,
PrefixResolver
This will be called in order to resolve prefixes to namespace URIs.
prefixResolver
,
int type)

Create an XPath.

Method Detail

createback to summary
public XPath create(String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type)

Create an XPath.

Parameters
exprString:String

The XPath expression string.

locator:SourceLocator

The location of the expression string, mainly for diagnostic purposes.

prefixResolver:PrefixResolver

This will be called in order to resolve prefixes to namespace URIs.

type:int

One of com.sun.org.apache.xpath.internal.XPath#SELECT or com.sun.org.apache.xpath.internal.XPath#MATCH.

Returns:XPath

an XPath ready for execution.