1 /*
2 * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Nov 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.impl.xs.traversers;
23
114 import org.xml.sax.InputSource;
115 import org.xml.sax.SAXException;
116 import org.xml.sax.SAXNotRecognizedException;
117 import org.xml.sax.SAXParseException;
118 import org.xml.sax.XMLReader;
119 import org.xml.sax.helpers.XMLReaderFactory;
120
121 /**
122 * The purpose of this class is to co-ordinate the construction of a
123 * grammar object corresponding to a schema. To do this, it must be
124 * prepared to parse several schema documents (for instance if the
125 * schema document originally referred to contains <include> or
126 * <redefined> information items). If any of the schemas imports a
127 * schema, other grammars may be constructed as a side-effect.
128 *
129 * @xerces.internal
130 *
131 * @author Neil Graham, IBM
132 * @author Pavani Mukthipudi, Sun Microsystems
133 *
134 */
135 @SuppressWarnings("deprecation") //org.xml.sax.helpers.XMLReaderFactory
136 public class XSDHandler {
137
138 /** Feature identifier: validation. */
139 protected static final String VALIDATION =
140 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
141
142 /** feature identifier: XML Schema validation */
143 protected static final String XMLSCHEMA_VALIDATION =
144 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
145
146 /** Feature identifier: allow java encodings */
147 protected static final String ALLOW_JAVA_ENCODINGS =
148 Constants.XERCES_FEATURE_PREFIX + Constants.ALLOW_JAVA_ENCODINGS_FEATURE;
149
150 /** Feature identifier: continue after fatal error */
151 protected static final String CONTINUE_AFTER_FATAL_ERROR =
152 Constants.XERCES_FEATURE_PREFIX + Constants.CONTINUE_AFTER_FATAL_ERROR_FEATURE;
153
|
1 /*
2 * Copyright (c) 2007, 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.impl.xs.traversers;
22
113 import org.xml.sax.InputSource;
114 import org.xml.sax.SAXException;
115 import org.xml.sax.SAXNotRecognizedException;
116 import org.xml.sax.SAXParseException;
117 import org.xml.sax.XMLReader;
118 import org.xml.sax.helpers.XMLReaderFactory;
119
120 /**
121 * The purpose of this class is to co-ordinate the construction of a
122 * grammar object corresponding to a schema. To do this, it must be
123 * prepared to parse several schema documents (for instance if the
124 * schema document originally referred to contains <include> or
125 * <redefined> information items). If any of the schemas imports a
126 * schema, other grammars may be constructed as a side-effect.
127 *
128 * @xerces.internal
129 *
130 * @author Neil Graham, IBM
131 * @author Pavani Mukthipudi, Sun Microsystems
132 *
133 * @LastModified: Nov 2017
134 */
135 @SuppressWarnings("deprecation") //org.xml.sax.helpers.XMLReaderFactory
136 public class XSDHandler {
137
138 /** Feature identifier: validation. */
139 protected static final String VALIDATION =
140 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
141
142 /** feature identifier: XML Schema validation */
143 protected static final String XMLSCHEMA_VALIDATION =
144 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
145
146 /** Feature identifier: allow java encodings */
147 protected static final String ALLOW_JAVA_ENCODINGS =
148 Constants.XERCES_FEATURE_PREFIX + Constants.ALLOW_JAVA_ENCODINGS_FEATURE;
149
150 /** Feature identifier: continue after fatal error */
151 protected static final String CONTINUE_AFTER_FATAL_ERROR =
152 Constants.XERCES_FEATURE_PREFIX + Constants.CONTINUE_AFTER_FATAL_ERROR_FEATURE;
153
|