|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.xml.parsers.DocumentBuilderFactory
public abstract class DocumentBuilderFactory
A factory to produce DocumentBuilder
objects.
Note: This class is not thread-safe. Applications must serialize access to this class if two or more threads access the same instance.
Constructor Summary | ||
---|---|---|
protected |
DocumentBuilderFactory()
|
Method Summary | ||
---|---|---|
boolean |
getAllowUndefinedNamespaces()
Determines whether this factory is configured to produce parsers that allow undefined namespaces. |
|
boolean |
isCoalescing()
Determines whether this factory is configured to produce parsers that convert CDATA nodes to Text nodes and merge adjacent Text nodes. |
|
boolean |
isExpandEntityReferences()
Determines whether this factory is configured to produce parsers that expand entity references. |
|
boolean |
isIgnoringComments()
Determines whether this factory is configured to produce parsers that ignore comments. |
|
boolean |
isIgnoringElementContentWhitespace()
Determines whether this factory is configured to produce parsers that eliminate ignorable whitespace. |
|
boolean |
isNamespaceAware()
Determines whether this factory is configured to produce parsers that support namespaces. |
|
boolean |
isValidating()
Determines whether this factory is configured to produce parsers that validate documents. |
|
abstract DocumentBuilder |
newDocumentBuilder()
Creates a new DocumentBuilder object
using the current parameters. |
|
static DocumentBuilderFactory |
newInstance()
Creates a new DocumentBuilderFactory object. |
|
void |
setAllowUndefinedNamespaces(boolean allow)
Configures parsers produced by this factory to allow undefined namespaces. |
|
void |
setCoalescing(boolean coalesce)
Configures parsers produced by this factory to convert CDATA nodes to Text nodes and to merge adjacent Text nodes. |
|
void |
setExpandEntityReferences(boolean expand)
Configures parsers produced by this factory to expand entity references. |
|
void |
setIgnoringComments(boolean ignoreComments)
Configures parsers produced by this factory to ignore comments. |
|
void |
setIgnoringElementContentWhitespace(boolean ignore)
Configures parsers produced by this factory to eliminate ignorable whitespace when parsing documents. |
|
void |
setNamespaceAware(boolean aware)
Configures parsers produced by this factory to support namespaces. |
|
void |
setValidating(boolean validate)
Configures parsers produced by this factory to validate documents. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DocumentBuilderFactory()
Method Detail |
---|
public static DocumentBuilderFactory newInstance()
DocumentBuilderFactory
object.
DocumentBuilderFactory
object.public abstract DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
DocumentBuilder
object
using the current parameters.
DocumentBuilder
object.
ParserConfigurationException
- Thrown when a DocumentBuilder cannot
be created using the current parameters.public void setNamespaceAware(boolean aware)
true
).
aware
- True to configure parsers produced by this factory to support namespaces, false otherwise.public boolean isNamespaceAware()
public void setValidating(boolean validate)
false
).
validate
- True if parsers produced by this factory should
validate documents, false otherwise.public boolean isValidating()
public void setIgnoringElementContentWhitespace(boolean ignore)
false
).
ignore
- True if parsers produced by this factory should eliminate
ignorable whitespace, false otherwise.public boolean isIgnoringElementContentWhitespace()
public void setExpandEntityReferences(boolean expand)
true
).
expand
- True to produce parsers that expand entity references, false otherwise.public boolean isExpandEntityReferences()
public void setIgnoringComments(boolean ignoreComments)
false
).
public boolean isIgnoringComments()
public void setCoalescing(boolean coalesce)
false
).
coalesce
- True to configure this factory to produce parsers that convert
CDATA nodes to Text nodes and merge adjacent Text nodes, false otherwise.public boolean isCoalescing()
public void setAllowUndefinedNamespaces(boolean allow)
allow
- True if parsers produced by this factory allow
undefined namespaces, false otherwise.public boolean getAllowUndefinedNamespaces()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.