com.sun.msv.verifier.jaxp
Class DocumentBuilderFactoryImpl

java.lang.Object
  extended by javax.xml.parsers.DocumentBuilderFactory
      extended by com.sun.msv.verifier.jaxp.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)
           
 
Methods inherited from class javax.xml.parsers.DocumentBuilderFactory
getSchema, isExpandEntityReferences, isXIncludeAware, newInstance, newInstance, setExpandEntityReferences, setSchema, setXIncludeAware
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in class DocumentBuilderFactory

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in class DocumentBuilderFactory

isCoalescing

public boolean isCoalescing()
Overrides:
isCoalescing in class DocumentBuilderFactory

isExpandEntityReference

public boolean isExpandEntityReference()

isIgnoringComments

public boolean isIgnoringComments()
Overrides:
isIgnoringComments in class DocumentBuilderFactory

isIgnoringElementContentWhitespace

public boolean isIgnoringElementContentWhitespace()
Overrides:
isIgnoringElementContentWhitespace in class DocumentBuilderFactory

isNamespaceAware

public boolean isNamespaceAware()
Overrides:
isNamespaceAware in class DocumentBuilderFactory

isValidating

public boolean isValidating()
Overrides:
isValidating in class DocumentBuilderFactory

newDocumentBuilder

public DocumentBuilder newDocumentBuilder()
                                   throws ParserConfigurationException
Specified by:
newDocumentBuilder in class DocumentBuilderFactory
Throws:
ParserConfigurationException

setCoalescing

public void setCoalescing(boolean newVal)
Overrides:
setCoalescing in class DocumentBuilderFactory

setExpandEntityReference

public void setExpandEntityReference(boolean newVal)

setIgnoringComments

public void setIgnoringComments(boolean newVal)
Overrides:
setIgnoringComments in class DocumentBuilderFactory

setIgnoringElementContentWhitespace

public void setIgnoringElementContentWhitespace(boolean newVal)
Overrides:
setIgnoringElementContentWhitespace in class DocumentBuilderFactory

setNamespaceAware

public void setNamespaceAware(boolean newVal)
Overrides:
setNamespaceAware in class DocumentBuilderFactory

setValidating

public void setValidating(boolean newVal)
Overrides:
setValidating in class DocumentBuilderFactory

getFeature

public boolean getFeature(String name)
Specified by:
getFeature in class DocumentBuilderFactory

setFeature

public void setFeature(String name,
                       boolean value)
Specified by:
setFeature in class DocumentBuilderFactory