org.apache.axiom.om.impl.dom.jaxp
Class DocumentBuilderFactoryImpl

java.lang.Object
  extended by javax.xml.parsers.DocumentBuilderFactory
      extended by org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl

Deprecated. This class has static methods that allow to switch between DOOM and the default DOM implementation as returned by JAXP. This was a hack introduced for Rampart. Recent versions of Rampart no longer rely on this hack. On the other hand usage of setDOOMRequired(boolean) in a concurrent environment can lead to unexpected behavior and severe bugs, as shown in WSCOMMONS-210 and AXIS2-1570. Due to the way newDocumentBuilder() is implemented, it is not possible to get rid of the setDOOMRequired hack without the risk of breaking existing code. Therefore this class has been deprecated in favor of DOOMDocumentBuilderFactory.

public class DocumentBuilderFactoryImpl
extends DocumentBuilderFactory


Field Summary
protected  javax.xml.validation.Schema schema
          Deprecated.  
 
Constructor Summary
DocumentBuilderFactoryImpl()
          Deprecated.  
 
Method Summary
 Object getAttribute(String arg0)
          Deprecated.  
 boolean getFeature(String arg0)
          Deprecated.  
 javax.xml.validation.Schema getSchema()
          Deprecated.  
static boolean isDOOMRequired()
          Deprecated.  
 DocumentBuilder newDocumentBuilder()
          Deprecated.  
static DocumentBuilderFactory newInstance()
          Deprecated.  
 void setAttribute(String arg0, Object arg1)
          Deprecated.  
static void setDOOMRequired(boolean isDOOMRequired)
          Deprecated.  
 void setFeature(String name, boolean value)
          Deprecated.  
 void setSchema(javax.xml.validation.Schema schema)
          Deprecated.  
 
Methods inherited from class javax.xml.parsers.DocumentBuilderFactory
isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, isXIncludeAware, newInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setValidating, setXIncludeAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

protected javax.xml.validation.Schema schema
Deprecated. 
Constructor Detail

DocumentBuilderFactoryImpl

public DocumentBuilderFactoryImpl()
Deprecated. 
Method Detail

isDOOMRequired

public static boolean isDOOMRequired()
Deprecated. 

setDOOMRequired

public static void setDOOMRequired(boolean isDOOMRequired)
Deprecated. 

newDocumentBuilder

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

getAttribute

public Object getAttribute(String arg0)
                    throws IllegalArgumentException
Deprecated. 
Specified by:
getAttribute in class DocumentBuilderFactory
Throws:
IllegalArgumentException

setAttribute

public void setAttribute(String arg0,
                         Object arg1)
                  throws IllegalArgumentException
Deprecated. 
Specified by:
setAttribute in class DocumentBuilderFactory
Throws:
IllegalArgumentException

newInstance

public static DocumentBuilderFactory newInstance()
Deprecated. 

setFeature

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

getFeature

public boolean getFeature(String arg0)
                   throws ParserConfigurationException
Deprecated. 
Specified by:
getFeature in class DocumentBuilderFactory
Throws:
ParserConfigurationException

setSchema

public void setSchema(javax.xml.validation.Schema schema)
Deprecated. 
Overrides:
setSchema in class DocumentBuilderFactory

getSchema

public javax.xml.validation.Schema getSchema()
Deprecated. 
Overrides:
getSchema in class DocumentBuilderFactory


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.