|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.parsers.DocumentBuilderFactory
public abstract class 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).
| Constructor Summary | |
|---|---|
protected |
DocumentBuilderFactory()
Do-nothing constructor. |
| Method Summary | |
|---|---|
abstract Object |
getAttribute(String name)
Queries an attribute from the underlying implementation. |
abstract boolean |
getFeature(String name)
Queries a feature from the underlying implementation. |
boolean |
isCoalescing()
Queries whether the factory is configured to deliver parsers that convert CDATA nodes to text nodes and melt them with neighbouring nodes. |
boolean |
isExpandEntityReferences()
Queries whether the factory is configured to deliver parsers that expand entity references. |
boolean |
isIgnoringComments()
Queries whether the factory is configured to deliver parsers that ignore comments. |
boolean |
isIgnoringElementContentWhitespace()
Queries whether the factory is configured to deliver parsers that ignore whitespace in elements. |
boolean |
isNamespaceAware()
Queries whether the factory is configured to deliver parsers that are namespace-aware. |
boolean |
isValidating()
Queries whether the factory is configured to deliver parsers that are validating. |
boolean |
isXIncludeAware()
Queries whether the factory is configured to deliver parsers that are XInclude-aware. |
abstract DocumentBuilder |
newDocumentBuilder()
Creates a new DocumentBuilder that matches the current configuration. |
static DocumentBuilderFactory |
newInstance()
Creates a new DocumentBuilderFactory that can be configured and then be used for creating DocumentBuilder objects. |
abstract void |
setAttribute(String name,
Object value)
Sets an attribute in the underlying implementation. |
void |
setCoalescing(boolean value)
Determines whether the factory is configured to deliver parsers that convert CDATA nodes to text nodes and melt them with neighbouring nodes. |
void |
setExpandEntityReferences(boolean value)
Determines whether the factory is configured to deliver parsers that expands entity references. |
abstract void |
setFeature(String name,
boolean value)
Sets a feature in the underlying implementation. |
void |
setIgnoringComments(boolean value)
Determines whether the factory is configured to deliver parsers that ignore comments. |
void |
setIgnoringElementContentWhitespace(boolean value)
Determines whether the factory is configured to deliver parsers that ignores element whitespace. |
void |
setNamespaceAware(boolean value)
Determines whether the factory is configured to deliver parsers that are namespace-aware. |
void |
setValidating(boolean value)
Determines whether the factory is configured to deliver parsers that are validating. |
void |
setXIncludeAware(boolean value)
Determines whether the factory is configured to deliver parsers that are XInclude-aware. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DocumentBuilderFactory()
| Method Detail |
|---|
public abstract Object getAttribute(String name)
throws IllegalArgumentException
name - The name of the attribute.
IllegalArgumentException - if the argument is unknown to
the underlying implementation.
public abstract boolean getFeature(String name)
throws ParserConfigurationException
name - The name of the feature. The default Android implementation
of DocumentBuilder supports only the following three
features:
http://xml.org/sax/features/namespaceshttp://xml.org/sax/features/namespace-prefixes
http://xml.org/sax/features/validation
IllegalArgumentException - if the feature is unknown to
the underlying implementation.
ParserConfigurationException - if the feature is
known, but not supported.public boolean isCoalescing()
public boolean isExpandEntityReferences()
public boolean isIgnoringComments()
public boolean isIgnoringElementContentWhitespace()
public boolean isNamespaceAware()
public boolean isValidating()
public boolean isXIncludeAware()
public abstract DocumentBuilder newDocumentBuilder()
throws ParserConfigurationException
ParserConfigurationException - if no matching
DocumentBuilder could be found.
public static DocumentBuilderFactory newInstance()
throws FactoryConfigurationError
FactoryConfigurationError - If no DocumentBuilderFactory can be
created.
public abstract void setAttribute(String name,
Object value)
throws IllegalArgumentException
name - The name of the attribute.value - The value of the attribute.
IllegalArgumentException - if the argument is unknown to
the underlying implementation.public void setCoalescing(boolean value)
value - Turns coalescing on or off.public void setExpandEntityReferences(boolean value)
value - Turns entity reference expansion on or off.
public abstract void setFeature(String name,
boolean value)
throws ParserConfigurationException
name - The name of the feature. The default Android implementation
of DocumentBuilder supports only the following three
features:
http://xml.org/sax/features/namespaceshttp://xml.org/sax/features/namespace-prefixes
http://xml.org/sax/features/validationvalue - The value of the feature.
ParserConfigurationException - if the feature is unknown to the
underlying implementation.public void setIgnoringComments(boolean value)
value - Turns comment ignorance on or off.public void setIgnoringElementContentWhitespace(boolean value)
value - Turns element whitespace ignorance on or off.public void setNamespaceAware(boolean value)
value - Turns namespace-awareness on or off.public void setValidating(boolean value)
value - Turns validation on or off.public void setXIncludeAware(boolean value)
value - Turns XInclude-awareness on or off.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||