Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.xml.xpath.XPathFactory
public abstract class XPathFactory
extends java.lang.Object
Field Summary | |
static String |
|
static String |
|
Constructor Summary | |
Method Summary | |
boolean |
|
boolean |
|
static XPathFactory |
|
static XPathFactory |
|
XPath |
|
void |
|
void |
|
void |
|
public static final String DEFAULT_OBJECT_MODEL_URI
The default object model URI.
public static final String DEFAULT_PROPERTY_NAME
The default property name according to the JAXP specification.
public boolean getFeature(String name) throws XPathFactoryConfigurationException
Returns the state of the named feature.
public boolean isObjectModelSupported(String objectModel)
Indicates whether the specified object model URI is supported by this factory.
public static final XPathFactory newInstance()
Returns a new factory for the default (DOM) object model.
public static final XPathFactory newInstance(String uri) throws XPathFactoryConfigurationException
Returns a new factory for the given object model URI. The implementation class to load is the first found in the following locations that advertises support for the given model URI:
- the
javax.xml.xpath.XPathFactory
system property- the above named property value in the
$JAVA_HOME/lib/jaxp.properties
file- the class name specified in the
META-INF/services/javax.xml.xpath.XPathFactory
system resource- the default factory class
- Parameters:
uri
- the object model URI
public void setFeature(String name, boolean value) throws XPathFactoryConfigurationException
Sets the state of the named feature.
public void setXPathFunctionResolver(XPathFunctionResolver resolver)
Sets the XPath extension function resolver calback.
public void setXPathVariableResolver(XPathVariableResolver resolver)
Sets the XPath variable resolver calback.