java.lang.Object | |
↳ | javax.xml.parsers.DocumentBuilderFactory |
Provides a factory for DocumentBuilder
instances. The class first
needs to be instantiated using the newInstance()
method. The
instance can be configured as desired. A call to
newDocumentBuilder()
then provides a DocumentBuilder
instance matching this configuration (if possible).
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Do-nothing constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Queries an attribute from the underlying implementation.
| |||||||||||
Queries a feature from the underlying implementation.
| |||||||||||
Queries whether the factory is configured to deliver parsers that convert
CDATA nodes to text nodes and melt them with neighboring nodes.
| |||||||||||
Queries whether the factory is configured to deliver parsers that expand
entity references.
| |||||||||||
Queries whether the factory is configured to deliver parsers that ignore
comments.
| |||||||||||
Queries whether the factory is configured to deliver parsers that ignore
whitespace in elements.
| |||||||||||
Queries whether the factory is configured to deliver parsers that are
namespace-aware.
| |||||||||||
Queries whether the factory is configured to deliver parsers that are
validating.
| |||||||||||
Queries whether the factory is configured to deliver parsers that are
XInclude-aware.
| |||||||||||
Creates a new
DocumentBuilder that matches the current
configuration of the factory. | |||||||||||
Creates a new DocumentBuilderFactory that can be configured and then be
used for creating DocumentBuilder objects.
| |||||||||||
Sets an attribute in the underlying implementation.
| |||||||||||
Determines whether the factory is configured to deliver parsers that
convert CDATA nodes to text nodes and melt them with neighboring nodes.
| |||||||||||
Determines whether the factory is configured to deliver parsers that
expands entity references.
| |||||||||||
Sets a feature in the underlying implementation.
| |||||||||||
Determines whether the factory is configured to deliver parsers that
ignore comments.
| |||||||||||
Determines whether the factory is configured to deliver parsers that
ignores element whitespace.
| |||||||||||
Determines whether the factory is configured to deliver parsers that are
namespace-aware.
| |||||||||||
Determines whether the factory is configured to deliver parsers that are
validating.
| |||||||||||
Determines whether the factory is configured to deliver parsers that are
XInclude-aware.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Do-nothing constructor. To be overridden by concrete document builders.
Queries an attribute from the underlying implementation.
name | the name of the attribute. |
---|
IllegalArgumentException | if the argument is unknown to the underlying implementation. |
---|
Queries a feature from the underlying implementation.
name | The name of the feature. The default Android implementation
of DocumentBuilder supports only the following three
features:
|
---|
IllegalArgumentException | if the feature is unknown to the underlying implementation. |
---|---|
ParserConfigurationException | if the feature is known, but not supported. |
Queries whether the factory is configured to deliver parsers that convert CDATA nodes to text nodes and melt them with neighboring nodes. This is called "coalescing".
true
if coalescing is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that expand entity references.
true
if entity expansion is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that ignore comments.
true
if comment ignorance is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that ignore whitespace in elements.
true
if whitespace ignorance is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that are namespace-aware.
true
if namespace-awareness is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that are validating.
true
if validating is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that are XInclude-aware.
true
if XInclude-awareness is desired, false
otherwise.Creates a new DocumentBuilder
that matches the current
configuration of the factory.
ParserConfigurationException | if no matching
DocumentBuilder could be found. |
---|
Creates a new DocumentBuilderFactory that can be configured and then be
used for creating DocumentBuilder objects. The method first checks the
value of the DocumentBuilderFactory
property.
If this is non-null
, it is assumed to be the name of a class
that serves as the factory. The class is instantiated, and the instance
is returned. If the property value is null
, the system's default
factory implementation is returned.
FactoryConfigurationError | if no DocumentBuilderFactory
can be created. |
---|
Sets an attribute in the underlying implementation.
name | the name of the attribute. |
---|---|
value | the value of the attribute. |
IllegalArgumentException | if the argument is unknown to the underlying implementation. |
---|
Determines whether the factory is configured to deliver parsers that convert CDATA nodes to text nodes and melt them with neighboring nodes. This is called "coalescing".
value | turns coalescing on or off. |
---|
Determines whether the factory is configured to deliver parsers that expands entity references.
value | turns entity reference expansion on or off. |
---|
Sets a feature in the underlying implementation.
name | the name of the feature. The default Android implementation
of DocumentBuilder supports only the following three
features:
|
---|---|
value | the value of the feature. |
ParserConfigurationException | if the feature is unknown to the underlying implementation. |
---|
Determines whether the factory is configured to deliver parsers that ignore comments.
value | turns comment ignorance on or off. |
---|
Determines whether the factory is configured to deliver parsers that ignores element whitespace.
value | turns element whitespace ignorance on or off. |
---|
Determines whether the factory is configured to deliver parsers that are namespace-aware.
value | turns namespace-awareness on or off. |
---|
Determines whether the factory is configured to deliver parsers that are validating.
value | turns validation on or off. |
---|
Determines whether the factory is configured to deliver parsers that are XInclude-aware.
value | turns XInclude-awareness on or off. |
---|