< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/parsers/DOMParserImpl.java

Print this page


   1 /*
   2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.parsers;
  23 


  62 import org.w3c.dom.DOMException;
  63 import org.w3c.dom.DOMStringList;
  64 import org.w3c.dom.Document;
  65 import org.w3c.dom.Node;
  66 import org.w3c.dom.ls.LSException;
  67 import org.w3c.dom.ls.LSInput;
  68 import org.w3c.dom.ls.LSParser;
  69 import org.w3c.dom.ls.LSParserFilter;
  70 import org.w3c.dom.ls.LSResourceResolver;
  71 import org.xml.sax.SAXException;
  72 
  73 
  74 /**
  75  * This is Xerces DOM Builder class. It uses the abstract DOM
  76  * parser with a document scanner, a dtd scanner, and a validator, as
  77  * well as a grammar pool.
  78  *
  79  * @author Pavani Mukthipudi, Sun Microsystems Inc.
  80  * @author Elena Litani, IBM
  81  * @author Rahul Srivastava, Sun Microsystems Inc.

  82  */
  83 
  84 
  85 public class DOMParserImpl
  86 extends AbstractDOMParser implements LSParser, DOMConfiguration {
  87 
  88 
  89 
  90     // SAX & Xerces feature ids
  91 
  92     /** Feature identifier: namespaces. */
  93     protected static final String NAMESPACES =
  94     Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  95 
  96     /** Feature id: validation. */
  97     protected static final String VALIDATION_FEATURE =
  98     Constants.SAX_FEATURE_PREFIX+Constants.VALIDATION_FEATURE;
  99 
 100     /** XML Schema validation */
 101     protected static final String XMLSCHEMA =


   1 /*
   2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.parsers;
  22 


  61 import org.w3c.dom.DOMException;
  62 import org.w3c.dom.DOMStringList;
  63 import org.w3c.dom.Document;
  64 import org.w3c.dom.Node;
  65 import org.w3c.dom.ls.LSException;
  66 import org.w3c.dom.ls.LSInput;
  67 import org.w3c.dom.ls.LSParser;
  68 import org.w3c.dom.ls.LSParserFilter;
  69 import org.w3c.dom.ls.LSResourceResolver;
  70 import org.xml.sax.SAXException;
  71 
  72 
  73 /**
  74  * This is Xerces DOM Builder class. It uses the abstract DOM
  75  * parser with a document scanner, a dtd scanner, and a validator, as
  76  * well as a grammar pool.
  77  *
  78  * @author Pavani Mukthipudi, Sun Microsystems Inc.
  79  * @author Elena Litani, IBM
  80  * @author Rahul Srivastava, Sun Microsystems Inc.
  81  * @LastModified: Oct 2017
  82  */
  83 
  84 
  85 public class DOMParserImpl
  86 extends AbstractDOMParser implements LSParser, DOMConfiguration {
  87 
  88 
  89 
  90     // SAX & Xerces feature ids
  91 
  92     /** Feature identifier: namespaces. */
  93     protected static final String NAMESPACES =
  94     Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  95 
  96     /** Feature id: validation. */
  97     protected static final String VALIDATION_FEATURE =
  98     Constants.SAX_FEATURE_PREFIX+Constants.VALIDATION_FEATURE;
  99 
 100     /** XML Schema validation */
 101     protected static final String XMLSCHEMA =


< prev index next >