1 /*
2 * Copyright (c) 2008, 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
61 import com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource;
62 import com.sun.org.apache.xerces.internal.xni.parser.XMLEntityResolver;
63 import com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler;
64 import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource;
65 import com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration;
66 import java.io.IOException;
67 import java.util.ArrayList;
68 import java.util.List;
69 import java.util.Locale;
70 import javax.xml.XMLConstants;
71 import javax.xml.catalog.CatalogFeatures;
72 import jdk.xml.internal.JdkXmlUtils;
73
74 /**
75 * This class is the configuration used to parse XML 1.0 and XML 1.1 documents.
76 *
77 * @author Elena Litani, IBM
78 * @author Neil Graham, IBM
79 * @author Michael Glavassevich, IBM
80 *
81 */
82 public class XML11Configuration extends ParserConfigurationSettings
83 implements XMLPullParserConfiguration, XML11Configurable {
84
85 //
86 // Constants
87 //
88 protected final static String XML11_DATATYPE_VALIDATOR_FACTORY =
89 "com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl";
90
91 // feature identifiers
92
93 /** Feature identifier: warn on duplicate attribute definition. */
94 protected static final String WARN_ON_DUPLICATE_ATTDEF =
95 Constants.XERCES_FEATURE_PREFIX + Constants.WARN_ON_DUPLICATE_ATTDEF_FEATURE;
96
97 /** Feature identifier: warn on duplicate entity definition. */
98 protected static final String WARN_ON_DUPLICATE_ENTITYDEF =
99 Constants.XERCES_FEATURE_PREFIX + Constants.WARN_ON_DUPLICATE_ENTITYDEF_FEATURE;
100
|
1 /*
2 * Copyright (c) 2008, 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
60 import com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource;
61 import com.sun.org.apache.xerces.internal.xni.parser.XMLEntityResolver;
62 import com.sun.org.apache.xerces.internal.xni.parser.XMLErrorHandler;
63 import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource;
64 import com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration;
65 import java.io.IOException;
66 import java.util.ArrayList;
67 import java.util.List;
68 import java.util.Locale;
69 import javax.xml.XMLConstants;
70 import javax.xml.catalog.CatalogFeatures;
71 import jdk.xml.internal.JdkXmlUtils;
72
73 /**
74 * This class is the configuration used to parse XML 1.0 and XML 1.1 documents.
75 *
76 * @author Elena Litani, IBM
77 * @author Neil Graham, IBM
78 * @author Michael Glavassevich, IBM
79 *
80 * @LastModified: Oct 2017
81 */
82 public class XML11Configuration extends ParserConfigurationSettings
83 implements XMLPullParserConfiguration, XML11Configurable {
84
85 //
86 // Constants
87 //
88 protected final static String XML11_DATATYPE_VALIDATOR_FACTORY =
89 "com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl";
90
91 // feature identifiers
92
93 /** Feature identifier: warn on duplicate attribute definition. */
94 protected static final String WARN_ON_DUPLICATE_ATTDEF =
95 Constants.XERCES_FEATURE_PREFIX + Constants.WARN_ON_DUPLICATE_ATTDEF_FEATURE;
96
97 /** Feature identifier: warn on duplicate entity definition. */
98 protected static final String WARN_ON_DUPLICATE_ENTITYDEF =
99 Constants.XERCES_FEATURE_PREFIX + Constants.WARN_ON_DUPLICATE_ENTITYDEF_FEATURE;
100
|