com.sun.msv.verifier.jaxp

Class DocumentBuilderFactoryImpl


public class DocumentBuilderFactoryImpl
extends DocumentBuilderFactory

DocumentBuilderFactory implementation that supports validation.

This class uses another DocumentBuilderFactory implementation and adds the validation capability to it.

Author:
Kohsuke KAWAGUCHI

Constructor Summary

DocumentBuilderFactoryImpl()
Creates a new instance by using the default DocumentBuilderFactory implementation as the underlying parser.
DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory)
Creates a new instance by specifying the underlying SAXParserFactory implementation.
DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory, Schema _schema)

Method Summary

Object
getAttribute(String name)
boolean
getFeature(String name)
boolean
isCoalescing()
boolean
isExpandEntityReference()
boolean
isIgnoringComments()
boolean
isIgnoringElementContentWhitespace()
boolean
isNamespaceAware()
boolean
isValidating()
DocumentBuilder
newDocumentBuilder()
void
setAttribute(String name, Object value)
void
setCoalescing(boolean newVal)
void
setExpandEntityReference(boolean newVal)
void
setFeature(String name, boolean value)
void
setIgnoringComments(boolean newVal)
void
setIgnoringElementContentWhitespace(boolean newVal)
void
setNamespaceAware(boolean newVal)
void
setValidating(boolean newVal)

Constructor Details

DocumentBuilderFactoryImpl

public DocumentBuilderFactoryImpl()
Creates a new instance by using the default DocumentBuilderFactory implementation as the underlying parser. This constructor does not set any schema.

DocumentBuilderFactoryImpl

public DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory)
Creates a new instance by specifying the underlying SAXParserFactory implementation. This constructor does not set any schema.

DocumentBuilderFactoryImpl

public DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory,
                                  Schema _schema)

Method Details

getAttribute

public Object getAttribute(String name)

getFeature

public boolean getFeature(String name)

isCoalescing

public boolean isCoalescing()

isExpandEntityReference

public boolean isExpandEntityReference()

isIgnoringComments

public boolean isIgnoringComments()

isIgnoringElementContentWhitespace

public boolean isIgnoringElementContentWhitespace()

isNamespaceAware

public boolean isNamespaceAware()

isValidating

public boolean isValidating()

newDocumentBuilder

public DocumentBuilder newDocumentBuilder()
            throws ParserConfigurationException

setAttribute

public void setAttribute(String name,
                         Object value)

setCoalescing

public void setCoalescing(boolean newVal)

setExpandEntityReference

public void setExpandEntityReference(boolean newVal)

setFeature

public void setFeature(String name,
                       boolean value)

setIgnoringComments

public void setIgnoringComments(boolean newVal)

setIgnoringElementContentWhitespace

public void setIgnoringElementContentWhitespace(boolean newVal)

setNamespaceAware

public void setNamespaceAware(boolean newVal)

setValidating

public void setValidating(boolean newVal)