public abstract class XPathFactory extends Object
An XPathFactory
instance can be used to create
XPath
objects.
See newInstance(String uri)
for lookup mechanism.
The XPathFactory
class is not thread-safe. In other words,
it is the application's responsibility to ensure that at most
one thread is using a XPathFactory
object at any
given moment. Implementations are encouraged to mark methods
as synchronized
to protect themselves from broken clients.
XPathFactory
is not re-entrant. While one of the
newInstance
methods is being invoked, applications
may not attempt to recursively invoke a newInstance
method,
even from the same thread.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_OBJECT_MODEL_URI
Default Object Model URI.
|
static String |
DEFAULT_PROPERTY_NAME
The default property name according to the JAXP spec.
|
Modifier | Constructor and Description |
---|---|
protected |
XPathFactory()
Protected constructor as
newInstance() or newInstance(String uri)
or newInstance(String uri, String factoryClassName, ClassLoader classLoader)
should be used to create a new instance of an XPathFactory . |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
getFeature(String name)
Get the state of the named feature.
|
abstract boolean |
isObjectModelSupported(String objectModel)
Is specified object model supported by this
XPathFactory ? |
static XPathFactory |
newInstance()
Get a new
XPathFactory instance using the default object model,
DEFAULT_OBJECT_MODEL_URI ,
the W3C DOM. |
static XPathFactory |
newInstance(String uri)
Get a new
XPathFactory instance using the specified object model. |
static XPathFactory |
newInstance(String uri,
String factoryClassName,
|