1 /*
2 * Copyright (c) 2013, 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.dom;
23
54 import java.util.List;
55 import java.util.Locale;
56 import javax.xml.XMLConstants;
57 import javax.xml.catalog.CatalogFeatures;
58 import jdk.xml.internal.JdkXmlUtils;
59 import org.w3c.dom.DOMConfiguration;
60 import org.w3c.dom.DOMErrorHandler;
61 import org.w3c.dom.DOMException;
62 import org.w3c.dom.DOMStringList;
63 import org.w3c.dom.ls.LSResourceResolver;
64
65
66
67 /**
68 * Xerces implementation of DOMConfiguration that maintains a table of recognized parameters.
69 *
70 * @xerces.internal
71 *
72 * @author Elena Litani, IBM
73 * @author Neeraj Bajaj, Sun Microsystems.
74 */
75 public class DOMConfigurationImpl extends ParserConfigurationSettings
76 implements XMLParserConfiguration, DOMConfiguration {
77
78 //
79 // Constants
80 //
81
82 // feature identifiers
83
84 /** Feature identifier: validation. */
85 protected static final String XERCES_VALIDATION =
86 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
87
88 /** Feature identifier: namespaces. */
89 protected static final String XERCES_NAMESPACES =
90 Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
91
92 protected static final String SCHEMA =
93 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
|
1 /*
2 * Copyright (c) 2013, 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.dom;
22
53 import java.util.List;
54 import java.util.Locale;
55 import javax.xml.XMLConstants;
56 import javax.xml.catalog.CatalogFeatures;
57 import jdk.xml.internal.JdkXmlUtils;
58 import org.w3c.dom.DOMConfiguration;
59 import org.w3c.dom.DOMErrorHandler;
60 import org.w3c.dom.DOMException;
61 import org.w3c.dom.DOMStringList;
62 import org.w3c.dom.ls.LSResourceResolver;
63
64
65
66 /**
67 * Xerces implementation of DOMConfiguration that maintains a table of recognized parameters.
68 *
69 * @xerces.internal
70 *
71 * @author Elena Litani, IBM
72 * @author Neeraj Bajaj, Sun Microsystems.
73 * @LastModified: Oct 2017
74 */
75 public class DOMConfigurationImpl extends ParserConfigurationSettings
76 implements XMLParserConfiguration, DOMConfiguration {
77
78 //
79 // Constants
80 //
81
82 // feature identifiers
83
84 /** Feature identifier: validation. */
85 protected static final String XERCES_VALIDATION =
86 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
87
88 /** Feature identifier: namespaces. */
89 protected static final String XERCES_NAMESPACES =
90 Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
91
92 protected static final String SCHEMA =
93 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
|