javax.xml.parsers
public abstract class DocumentBuilderFactory extends Object
| Constructor Summary | |
|---|---|
| protected | DocumentBuilderFactory() |
| Method Summary | |
|---|---|
| abstract Object | getAttribute(String name)
Retrieves the named attribute value from the underlying implementation. |
| abstract boolean | getFeature(String name)
Returns the value of the specified feature. |
| Schema | getSchema()
Returns the schema. |
| boolean | isCoalescing()
Indicates whether document builders obtained from this factory will
convert CDATA sections to text nodes and normalize adjacent text nodes
into a single text node. |
| boolean | isExpandEntityReferences()
Indicates whether document builders obtained from this factory will
expand entity reference nodes. |
| boolean | isIgnoringComments()
Indicates whether document builders obtained from this factory will
discard comment nodes. |
| boolean | isIgnoringElementContentWhitespace()
Indicates whether document builders obtained from this factory will
eliminate whitespace within elements that have an element-only content
model. |
| boolean | isNamespaceAware()
Indicates whether document builders obtained from this factory will be
XML Namespace aware. |
| boolean | isValidating()
Indicates whether document builders obtained from this factory will
validate their input. |
| boolean | isXIncludeAware()
Indicates whether parsers obtained from this factory will be XInclude
aware. |
| abstract DocumentBuilder | newDocumentBuilder()
Creates a new document builder instance using the currently specified
factory configuration. |
| static DocumentBuilderFactory | newInstance()
Creates a new factory instance.
|
| abstract void | setAttribute(String name, Object value)
Set the named attribute on the underlying implementation. |
| void | setCoalescing(boolean coalescing)
Sets whether document builders obtained from this factory will convert
CDATA sections to text nodes and normalize adjacent text nodes into a
single text node. |
| void | setExpandEntityReferences(boolean expandEntityRef)
Sets whether document builders obtained from this factory will expand
entity reference nodes. |
| abstract void | setFeature(String name, boolean value)
Sets the value of the specified feature. |
| void | setIgnoringComments(boolean ignoreComments)
Sets whether document builders obtained from this factory will discard
comment nodes. |
| void | setIgnoringElementContentWhitespace(boolean whitespace)
Sets whether document builders obtained from this factory will
eliminate whitespace within elements that have an element-only content
model. |
| void | setNamespaceAware(boolean awareness)
Sets whether document builders obtained from this factory will be XML
Namespace aware. |
| void | setSchema(Schema schema)
Sets the schema. |
| void | setValidating(boolean validating)
Sets whether document builders obtained from this factory will validate
their input. |
| void | setXIncludeAware(boolean state)
Sets whether parsers obtained from this factory will be XInclude aware. |
Parameters: name the name of the attribute
Throws: IllegalArgumentException if the attribute is not recognized
Parameters: name the feature name (URI)
Throws: ParserConfigurationException if the feature is not supported.
Since: 1.5
Since: 1.5
See Also: DocumentBuilderFactory
Since: 1.5
Throws: ParserConfigurationException if the specified configuration is not supported
javax.xml.parsers.DocumentBuilderFactory system
property$JAVA_HOME/lib/jaxp.properties fileMETA-INF/services/javax.xml.parsers.DocumentBuilderFactory
system resourceParameters: name the name of the attribute value the new value
Throws: IllegalArgumentException if the attribute is not recognized
Parameters: name the feature name (URI) value whether to enable the feature or not
Throws: ParserConfigurationException if the feature is not supported.
Since: 1.5
Since: 1.5
See Also: DocumentBuilderFactory
Since: 1.5