111 import org.w3c.dom.Node;
112 import org.xml.sax.InputSource;
113 import org.xml.sax.SAXException;
114 import org.xml.sax.SAXNotRecognizedException;
115 import org.xml.sax.SAXParseException;
116 import org.xml.sax.XMLReader;
117
118 /**
119 * The purpose of this class is to co-ordinate the construction of a
120 * grammar object corresponding to a schema. To do this, it must be
121 * prepared to parse several schema documents (for instance if the
122 * schema document originally referred to contains <include> or
123 * <redefined> information items). If any of the schemas imports a
124 * schema, other grammars may be constructed as a side-effect.
125 *
126 * @xerces.internal
127 *
128 * @author Neil Graham, IBM
129 * @author Pavani Mukthipudi, Sun Microsystems
130 *
131 * @version $Id: XSDHandler.java,v 1.9 2010-11-01 04:40:02 joehw Exp $
132 */
133 public class XSDHandler {
134
135 /** Feature identifier: validation. */
136 protected static final String VALIDATION =
137 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
138
139 /** feature identifier: XML Schema validation */
140 protected static final String XMLSCHEMA_VALIDATION =
141 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
142
143 /** Feature identifier: allow java encodings */
144 protected static final String ALLOW_JAVA_ENCODINGS =
145 Constants.XERCES_FEATURE_PREFIX + Constants.ALLOW_JAVA_ENCODINGS_FEATURE;
146
147 /** Feature identifier: continue after fatal error */
148 protected static final String CONTINUE_AFTER_FATAL_ERROR =
149 Constants.XERCES_FEATURE_PREFIX + Constants.CONTINUE_AFTER_FATAL_ERROR_FEATURE;
150
151 /** Feature identifier: allow java encodings */
|
111 import org.w3c.dom.Node;
112 import org.xml.sax.InputSource;
113 import org.xml.sax.SAXException;
114 import org.xml.sax.SAXNotRecognizedException;
115 import org.xml.sax.SAXParseException;
116 import org.xml.sax.XMLReader;
117
118 /**
119 * The purpose of this class is to co-ordinate the construction of a
120 * grammar object corresponding to a schema. To do this, it must be
121 * prepared to parse several schema documents (for instance if the
122 * schema document originally referred to contains <include> or
123 * <redefined> information items). If any of the schemas imports a
124 * schema, other grammars may be constructed as a side-effect.
125 *
126 * @xerces.internal
127 *
128 * @author Neil Graham, IBM
129 * @author Pavani Mukthipudi, Sun Microsystems
130 *
131 */
132 public class XSDHandler {
133
134 /** Feature identifier: validation. */
135 protected static final String VALIDATION =
136 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
137
138 /** feature identifier: XML Schema validation */
139 protected static final String XMLSCHEMA_VALIDATION =
140 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
141
142 /** Feature identifier: allow java encodings */
143 protected static final String ALLOW_JAVA_ENCODINGS =
144 Constants.XERCES_FEATURE_PREFIX + Constants.ALLOW_JAVA_ENCODINGS_FEATURE;
145
146 /** Feature identifier: continue after fatal error */
147 protected static final String CONTINUE_AFTER_FATAL_ERROR =
148 Constants.XERCES_FEATURE_PREFIX + Constants.CONTINUE_AFTER_FATAL_ERROR_FEATURE;
149
150 /** Feature identifier: allow java encodings */
|