< prev index next >

src/java.xml/share/classes/javax/xml/parsers/DocumentBuilderFactory.java

Print this page




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.parsers;
  27 
  28 import com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl;
  29 import javax.xml.validation.Schema;
  30 
  31 /**
  32  * Defines a factory API that enables applications to obtain a
  33  * parser that produces DOM object trees from XML documents.
  34  *
  35  * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a>
  36  * @author <a href="mailto:Neeraj.Bajaj@sun.com">Neeraj Bajaj</a>
  37  *
  38  * @since 1.4
  39  */
  40 
  41 public abstract class DocumentBuilderFactory {
  42 
  43     private boolean validating = false;
  44     private boolean namespaceAware = false;
  45     private boolean whitespace = false;
  46     private boolean expandEntityRef = true;
  47     private boolean ignoreComments = false;
  48     private boolean coalescing = false;
  49 
  50     /**
  51      * Protected constructor to prevent instantiation.
  52      * Use {@link #newInstance()}.
  53      */
  54     protected DocumentBuilderFactory () {
  55     }
  56 




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.parsers;
  27 
  28 import com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl;
  29 import javax.xml.validation.Schema;
  30 
  31 /**
  32  * Defines a factory API that enables applications to obtain a
  33  * parser that produces DOM object trees from XML documents.
  34  *
  35  * @author Jeff Suttor
  36  * @author Neeraj Bajaj
  37  *
  38  * @since 1.4
  39  */
  40 
  41 public abstract class DocumentBuilderFactory {
  42 
  43     private boolean validating = false;
  44     private boolean namespaceAware = false;
  45     private boolean whitespace = false;
  46     private boolean expandEntityRef = true;
  47     private boolean ignoreComments = false;
  48     private boolean coalescing = false;
  49 
  50     /**
  51      * Protected constructor to prevent instantiation.
  52      * Use {@link #newInstance()}.
  53      */
  54     protected DocumentBuilderFactory () {
  55     }
  56 


< prev index next >