< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 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 


  60 import java.util.ArrayList;
  61 import java.util.HashMap;
  62 import java.util.List;
  63 import java.util.Locale;
  64 
  65 /**
  66  * This class is the non vlaidating parser configuration
  67  * used to parse XML 1.0 and XML 1.1 documents.
  68  *
  69  * Xerces parser that uses this configuration is <strong>not</strong>
  70  * <a href="http://www.w3.org/TR/REC-xml#sec-conformance">conformant</a>
  71  * non-validating XML processor, since conformant non-validating processor is
  72  * required to process "all the declarations they read in the internal DTD subset
  73  * ... must use the information in those declarations to normalize attribute values,
  74  * include the replacement text of internal entities, and supply default attribute values".
  75 
  76  * @author Elena Litani, IBM
  77  * @author John Kim, IBM
  78  * @author Michael Glavassevich, IBM
  79  *

  80  */
  81 public class XML11NonValidatingConfiguration extends ParserConfigurationSettings
  82     implements XMLPullParserConfiguration, XML11Configurable {
  83 
  84     //
  85     // Constants
  86     //
  87     protected final static String XML11_DATATYPE_VALIDATOR_FACTORY =
  88         "com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl";
  89 
  90     // feature identifiers
  91 
  92     /** Feature identifier: validation. */
  93     protected static final String VALIDATION =
  94         Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
  95 
  96     /** Feature identifier: namespaces. */
  97     protected static final String NAMESPACES =
  98         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  99 


   1 /*
   2  * Copyright (c) 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 


  59 import java.util.ArrayList;
  60 import java.util.HashMap;
  61 import java.util.List;
  62 import java.util.Locale;
  63 
  64 /**
  65  * This class is the non vlaidating parser configuration
  66  * used to parse XML 1.0 and XML 1.1 documents.
  67  *
  68  * Xerces parser that uses this configuration is <strong>not</strong>
  69  * <a href="http://www.w3.org/TR/REC-xml#sec-conformance">conformant</a>
  70  * non-validating XML processor, since conformant non-validating processor is
  71  * required to process "all the declarations they read in the internal DTD subset
  72  * ... must use the information in those declarations to normalize attribute values,
  73  * include the replacement text of internal entities, and supply default attribute values".
  74 
  75  * @author Elena Litani, IBM
  76  * @author John Kim, IBM
  77  * @author Michael Glavassevich, IBM
  78  *
  79  * @LastModified: Oct 2017
  80  */
  81 public class XML11NonValidatingConfiguration extends ParserConfigurationSettings
  82     implements XMLPullParserConfiguration, XML11Configurable {
  83 
  84     //
  85     // Constants
  86     //
  87     protected final static String XML11_DATATYPE_VALIDATOR_FACTORY =
  88         "com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl";
  89 
  90     // feature identifiers
  91 
  92     /** Feature identifier: validation. */
  93     protected static final String VALIDATION =
  94         Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
  95 
  96     /** Feature identifier: namespaces. */
  97     protected static final String NAMESPACES =
  98         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  99 


< prev index next >