org.apache.xpath.jaxp
Class XPathFactoryImpl
XPathFactoryorg.apache.xpath.jaxp.XPathFactoryImpl
public class XPathFactoryImpl
extends XPathFactory
The XPathFactory builds XPaths.
boolean | getFeature(String name)- Get the state of the named feature.
Feature names are fully qualified
java.net.URIs.
|
boolean | isObjectModelSupported(String objectModel)- Is specified object model supported by this
XPathFactory?
|
javax.xml.xpath.XPath | newXPath()- Returns a new
XPath object using the underlying
object model determined when the factory was instantiated.
|
void | setFeature(String name, boolean value)- Set a feature for this
XPathFactory and
XPaths created by this factory.
Feature names are fully qualified java.net.URIs.
|
void | setXPathFunctionResolver(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.
|
void | setXPathVariableResolver(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.
|
getFeature
public boolean getFeature(String name)
throws XPathFactoryConfigurationException Get the state of the named feature.
Feature names are fully qualified
java.net.URIs.
Implementations may define their own features.
An
XPathFactoryConfigurationException is thrown if this
XPathFactory or the
XPaths
it creates cannot support the feature.
It is possible for an
XPathFactory to expose a feature
value but be unable to change its state.
- State of the named feature.
isObjectModelSupported
public boolean isObjectModelSupported(String objectModel)
Is specified object model supported by this
XPathFactory?
objectModel - Specifies the object model which the returned
XPathFactory will understand.
true if XPathFactory supports
objectModel, else false.
newXPath
public javax.xml.xpath.XPath newXPath()
Returns a new XPath object using the underlying
object model determined when the factory was instantiated.
setFeature
public void setFeature(String name,
boolean value)
throws XPathFactoryConfigurationException Set a feature for this
XPathFactory and
XPaths created by this factory.
Feature names are fully qualified
java.net.URIs.
Implementations may define their own features.
An
XPathFactoryConfigurationException is thrown if this
XPathFactory or the
XPaths
it creates cannot support the feature.
It is possible for an
XPathFactory to expose a feature
value but be unable to change its state.
See
javax.xml.xpath.XPathFactory for full documentation
of specific features.
name - Feature name.value - Is feature state true or false.
setXPathFunctionResolver
public void setXPathFunctionResolver(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.
resolver - XPath function resolver.
setXPathVariableResolver
public void setXPathVariableResolver(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.
resolver - Variable resolver.
Copyright B) 2005 Apache XML Project. All Rights Reserved.