80 import org.w3c.dom.DOMStringList;
81 import org.w3c.dom.ls.LSInput;
82 import org.w3c.dom.ls.LSResourceResolver;
83 import org.xml.sax.InputSource;
84
85 /**
86 * This class implements xni.grammars.XMLGrammarLoader.
87 * It also serves as implementation of xs.XSLoader interface and DOMConfiguration interface.
88 *
89 * This class is designed to interact either with a proxy for a user application
90 * which wants to preparse schemas, or with our own Schema validator.
91 * It is hoped that none of these "external" classes will therefore need to communicate directly
92 * with XSDHandler in future.
93 * <p>This class only knows how to make XSDHandler do its thing.
94 * The caller must ensure that all its properties (schemaLocation, JAXPSchemaSource
95 * etc.) have been properly set.
96 *
97 * @xerces.internal
98 *
99 * @author Neil Graham, IBM
100 * @version $Id: XMLSchemaLoader.java,v 1.10 2010-11-01 04:39:55 joehw Exp $
101 */
102
103 public class XMLSchemaLoader implements XMLGrammarLoader, XMLComponent,
104 // XML Component API
105 XSLoader, DOMConfiguration {
106
107 // Feature identifiers:
108
109 /** Feature identifier: schema full checking*/
110 protected static final String SCHEMA_FULL_CHECKING =
111 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_FULL_CHECKING;
112
113 /** Feature identifier: continue after fatal error. */
114 protected static final String CONTINUE_AFTER_FATAL_ERROR =
115 Constants.XERCES_FEATURE_PREFIX + Constants.CONTINUE_AFTER_FATAL_ERROR_FEATURE;
116
117 /** Feature identifier: allow java encodings to be recognized when parsing schema docs. */
118 protected static final String ALLOW_JAVA_ENCODINGS =
119 Constants.XERCES_FEATURE_PREFIX + Constants.ALLOW_JAVA_ENCODINGS_FEATURE;
120
|
80 import org.w3c.dom.DOMStringList;
81 import org.w3c.dom.ls.LSInput;
82 import org.w3c.dom.ls.LSResourceResolver;
83 import org.xml.sax.InputSource;
84
85 /**
86 * This class implements xni.grammars.XMLGrammarLoader.
87 * It also serves as implementation of xs.XSLoader interface and DOMConfiguration interface.
88 *
89 * This class is designed to interact either with a proxy for a user application
90 * which wants to preparse schemas, or with our own Schema validator.
91 * It is hoped that none of these "external" classes will therefore need to communicate directly
92 * with XSDHandler in future.
93 * <p>This class only knows how to make XSDHandler do its thing.
94 * The caller must ensure that all its properties (schemaLocation, JAXPSchemaSource
95 * etc.) have been properly set.
96 *
97 * @xerces.internal
98 *
99 * @author Neil Graham, IBM
100 */
101
102 public class XMLSchemaLoader implements XMLGrammarLoader, XMLComponent,
103 // XML Component API
104 XSLoader, DOMConfiguration {
105
106 // Feature identifiers:
107
108 /** Feature identifier: schema full checking*/
109 protected static final String SCHEMA_FULL_CHECKING =
110 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_FULL_CHECKING;
111
112 /** Feature identifier: continue after fatal error. */
113 protected static final String CONTINUE_AFTER_FATAL_ERROR =
114 Constants.XERCES_FEATURE_PREFIX + Constants.CONTINUE_AFTER_FATAL_ERROR_FEATURE;
115
116 /** Feature identifier: allow java encodings to be recognized when parsing schema docs. */
117 protected static final String ALLOW_JAVA_ENCODINGS =
118 Constants.XERCES_FEATURE_PREFIX + Constants.ALLOW_JAVA_ENCODINGS_FEATURE;
119
|