|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.xml.xpath.XPathFactory
public abstract class XPathFactory
Factory for creating XPath environments.
| Field Summary | |
|---|---|
static String |
DEFAULT_OBJECT_MODEL_URI
The default object model URI. |
static String |
DEFAULT_PROPERTY_NAME
The default property name according to the JAXP specification. |
| Constructor Summary | |
|---|---|
protected |
XPathFactory()
|
| Method Summary | |
|---|---|
abstract boolean |
getFeature(String name)
Returns the state of the named feature. |
abstract boolean |
isObjectModelSupported(String objectModel)
Indicates whether the specified object model URI is supported by this factory. |
static XPathFactory |
newInstance()
Returns a new factory for the default (DOM) object model. |
static XPathFactory |
newInstance(String uri)
Returns a new factory for the given object model URI. |
abstract XPath |
newXPath()
Returns a new XPath evaluation environment. |
abstract void |
setFeature(String name,
boolean value)
Sets the state of the named feature. |
abstract void |
setXPathFunctionResolver(XPathFunctionResolver resolver)
Sets the XPath extension function resolver calback. |
abstract void |
setXPathVariableResolver(XPathVariableResolver resolver)
Sets the XPath variable resolver calback. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PROPERTY_NAME
public static final String DEFAULT_OBJECT_MODEL_URI
| Constructor Detail |
|---|
protected XPathFactory()
| Method Detail |
|---|
public static final XPathFactory newInstance()
public static final XPathFactory newInstance(String uri)
throws XPathFactoryConfigurationException
javax.xml.xpath.XPathFactory system property$JAVA_HOME/lib/jaxp.properties fileMETA-INF/services/javax.xml.xpath.XPathFactory system
resource
uri - the object model URI
XPathFactoryConfigurationExceptionpublic abstract boolean isObjectModelSupported(String objectModel)
public abstract void setFeature(String name,
boolean value)
throws XPathFactoryConfigurationException
XPathFactoryConfigurationException
public abstract boolean getFeature(String name)
throws XPathFactoryConfigurationException
XPathFactoryConfigurationExceptionpublic abstract void setXPathVariableResolver(XPathVariableResolver resolver)
public abstract void setXPathFunctionResolver(XPathFunctionResolver resolver)
public abstract XPath newXPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||