org.apache.xerces.jaxp
Class DocumentBuilderFactoryImpl

java.lang.Object
  extended by javax.xml.parsers.DocumentBuilderFactory
      extended by org.apache.xerces.jaxp.DocumentBuilderFactoryImpl

public class DocumentBuilderFactoryImpl
extends DocumentBuilderFactory

Version:
$Id: DocumentBuilderFactoryImpl.java 447237 2006-09-18 05:03:10Z mrglavas $
Author:
Rajiv Mordani, Edwin Goei

Constructor Summary
DocumentBuilderFactoryImpl()
           
 
Method Summary
 Object getAttribute(String name)
          Allows the user to retrieve specific attributes on the underlying implementation.
 boolean getFeature(String name)
           
 Schema getSchema()
           
 boolean isXIncludeAware()
           
 DocumentBuilder newDocumentBuilder()
          Creates a new instance of a DocumentBuilder using the currently configured parameters.
 void setAttribute(String name, Object value)
          Allows the user to set specific attributes on the underlying implementation.
 void setFeature(String name, boolean value)
           
 void setSchema(Schema grammar)
           
 void setXIncludeAware(boolean state)
           
 
Methods inherited from class javax.xml.parsers.DocumentBuilderFactory
isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, newInstance, newInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setValidating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentBuilderFactoryImpl

public DocumentBuilderFactoryImpl()
Method Detail

newDocumentBuilder

public DocumentBuilder newDocumentBuilder()
                                   throws ParserConfigurationException
Creates a new instance of a DocumentBuilder using the currently configured parameters.

Specified by:
newDocumentBuilder in class DocumentBuilderFactory
Throws:
ParserConfigurationException

setAttribute

public void setAttribute(String name,
                         Object value)
                  throws IllegalArgumentException
Allows the user to set specific attributes on the underlying implementation.

Specified by:
setAttribute in class DocumentBuilderFactory
Parameters:
name - name of attribute
value - null means to remove attribute
Throws:
IllegalArgumentException

getAttribute

public Object getAttribute(String name)
                    throws IllegalArgumentException
Allows the user to retrieve specific attributes on the underlying implementation.

Specified by:
getAttribute in class DocumentBuilderFactory
Throws:
IllegalArgumentException

getSchema

public Schema getSchema()
Overrides:
getSchema in class DocumentBuilderFactory

setSchema

public void setSchema(Schema grammar)
Overrides:
setSchema in class DocumentBuilderFactory

isXIncludeAware

public boolean isXIncludeAware()
Overrides:
isXIncludeAware in class DocumentBuilderFactory

setXIncludeAware

public void setXIncludeAware(boolean state)
Overrides:
setXIncludeAware in class DocumentBuilderFactory

getFeature

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

setFeature

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


Copyright © 2011. All Rights Reserved.