Methods Summary |
---|
public abstract java.lang.Object | getAttribute(java.lang.String name)Queries an attribute from the underlying implementation.
|
public abstract boolean | getFeature(java.lang.String name)Queries a feature from the underlying implementation.
|
public boolean | isCoalescing()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".
return coalesce;
|
public boolean | isExpandEntityReferences()Queries whether the factory is configured to deliver parsers that expand
entity references.
return expandEntityReferences;
|
public boolean | isIgnoringComments()Queries whether the factory is configured to deliver parsers that ignore
comments.
return ignoreComments;
|
public boolean | isIgnoringElementContentWhitespace()Queries whether the factory is configured to deliver parsers that ignore
whitespace in elements.
return ignoreElementContentWhitespace;
|
public boolean | isNamespaceAware()Queries whether the factory is configured to deliver parsers that are
namespace-aware.
return namespaceAware;
|
public boolean | isValidating()Queries whether the factory is configured to deliver parsers that are
validating.
return validate;
|
public boolean | isXIncludeAware()Queries whether the factory is configured to deliver parsers that are
XInclude-aware.
throw new UnsupportedOperationException();
|
public abstract javax.xml.parsers.DocumentBuilder | newDocumentBuilder()Creates a new {@link DocumentBuilder} that matches the current
configuration of the factory.
|
public static javax.xml.parsers.DocumentBuilderFactory | newInstance()Creates a new DocumentBuilderFactory that can be configured and then be
used for creating DocumentBuilder objects. The method first checks the
value of the {@code DocumentBuilderFactory} property.
If this is non-{@code 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 {@code null}, the system's default
factory implementation is returned.
// TODO Properties file and META-INF case missing here. See spec.
String factory = System
.getProperty("javax.xml.parsers.DocumentBuilderFactory");
if (factory != null) {
try {
return (DocumentBuilderFactory) Class.forName(factory)
.newInstance();
} catch (Exception ex) {
// Ignore.
}
}
try {
return new DocumentBuilderFactoryImpl();
} catch (Exception ex) {
// Ignore.
}
throw new FactoryConfigurationError(
"Cannot create DocumentBuilderFactory");
|
public abstract void | setAttribute(java.lang.String name, java.lang.Object value)Sets an attribute in the underlying implementation.
|
public void | setCoalescing(boolean value)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".
coalesce = value;
|
public void | setExpandEntityReferences(boolean value)Determines whether the factory is configured to deliver parsers that
expands entity references.
expandEntityReferences = value;
|
public abstract void | setFeature(java.lang.String name, boolean value)Sets a feature in the underlying implementation.
|
public void | setIgnoringComments(boolean value)Determines whether the factory is configured to deliver parsers that
ignore comments.
ignoreComments = value;
|
public void | setIgnoringElementContentWhitespace(boolean value)Determines whether the factory is configured to deliver parsers that
ignores element whitespace.
ignoreElementContentWhitespace = value;
|
public void | setNamespaceAware(boolean value)Determines whether the factory is configured to deliver parsers that are
namespace-aware.
namespaceAware = value;
|
public void | setValidating(boolean value)Determines whether the factory is configured to deliver parsers that are
validating.
validate = value;
|
public void | setXIncludeAware(boolean value)Determines whether the factory is configured to deliver parsers that are
XInclude-aware.
throw new UnsupportedOperationException();
|