⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.xml.parsers

Class DocumentBuilderFactory

java.lang.Object
|
+--javax.xml.parsers.DocumentBuilderFactory

Known Direct Subclasses:
JAXPFactory


public abstract class DocumentBuilderFactory
extends java.lang.Object

DocumentBuilderFactory is used to resolve the problem that the W3C DOM APIs don't include portable bootstrapping.
Author:
Andrew Selkirk, David Brownell

Constructor Summary

DocumentBuilderFactory()

Method Summary

java.lang.Object

getAttribute(java.lang.String name)

boolean

isCoalescing()

boolean

isExpandEntityReferences()

boolean

isIgnoringComments()

boolean

isIgnoringElementContentWhitespace()

boolean

isNamespaceAware()

boolean

isValidating()

DocumentBuilder

newDocumentBuilder()

static DocumentBuilderFactory

newInstance()

void

setAttribute(java.lang.String name, java.lang.Object value)

void

setCoalescing(boolean value)

void

setExpandEntityReferences(boolean value)

void

setIgnoringComments(boolean value)

void

setIgnoringElementContentWhitespace(boolean value)

void

setNamespaceAware(boolean value)

void

setValidating(boolean value)

Constructor Details

DocumentBuilderFactory

protected DocumentBuilderFactory()

Method Details

getAttribute

public Object getAttribute(java.lang.String name)

Parameters:
name
Throws:
java.lang.IllegalArgumentException - if implementation doesn't recognize the attribute

isCoalescing

public boolean isCoalescing()


isExpandEntityReferences

public boolean isExpandEntityReferences()


isIgnoringComments

public boolean isIgnoringComments()


isIgnoringElementContentWhitespace

public boolean isIgnoringElementContentWhitespace()


isNamespaceAware

public boolean isNamespaceAware()


isValidating

public boolean isValidating()


newDocumentBuilder

public DocumentBuilder newDocumentBuilder()


newInstance

public static DocumentBuilderFactory newInstance()

Throws:
FactoryConfigurationError - if the implementation is not available

setAttribute

public void setAttribute(java.lang.String name, java.lang.Object value)

Parameters:
name
value
Throws:
java.lang.IllegalArgumentException - if implementation doesn't recognize the attribute

setCoalescing

public void setCoalescing(boolean value)

Parameters:
value

setExpandEntityReferences

public void setExpandEntityReferences(boolean value)

Parameters:
value

setIgnoringComments

public void setIgnoringComments(boolean value)

Parameters:
value

setIgnoringElementContentWhitespace

public void setIgnoringElementContentWhitespace(boolean value)

Parameters:
value

setNamespaceAware

public void setNamespaceAware(boolean value)

Parameters:
value

setValidating

public void setValidating(boolean value)

Parameters:
value