88 * filter: receiving document events from the scanner; validating
89 * the content and structure; augmenting the InfoSet, if applicable;
90 * and notifying the parser of the information resulting from the
91 * validation process.
92 * <p>
93 * This component requires the following features and properties from the
94 * component manager that uses it:
95 * <ul>
96 * <li>http://xml.org/sax/features/validation</li>
97 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
98 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
99 * <li>http://apache.org/xml/properties/internal/entity-resolver</li>
100 * </ul>
101 *
102 * @xerces.internal
103 *
104 * @author Sandy Gao IBM
105 * @author Elena Litani IBM
106 * @author Andy Clark IBM
107 * @author Neeraj Bajaj, Sun Microsystems, inc.
108 * @version $Id: XMLSchemaValidator.java,v 1.16 2010-11-01 04:39:55 joehw Exp $
109 * @LastModified: Apr 2020
110 */
111 public class XMLSchemaValidator
112 implements XMLComponent, XMLDocumentFilter, FieldActivator, RevalidationHandler {
113
114 //
115 // Constants
116 //
117 private static final boolean DEBUG = false;
118
119 // feature identifiers
120
121 /** Feature identifier: validation. */
122 protected static final String VALIDATION =
123 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
124
125 /** Feature identifier: validation. */
126 protected static final String SCHEMA_VALIDATION =
127 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
128
|
88 * filter: receiving document events from the scanner; validating
89 * the content and structure; augmenting the InfoSet, if applicable;
90 * and notifying the parser of the information resulting from the
91 * validation process.
92 * <p>
93 * This component requires the following features and properties from the
94 * component manager that uses it:
95 * <ul>
96 * <li>http://xml.org/sax/features/validation</li>
97 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
98 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
99 * <li>http://apache.org/xml/properties/internal/entity-resolver</li>
100 * </ul>
101 *
102 * @xerces.internal
103 *
104 * @author Sandy Gao IBM
105 * @author Elena Litani IBM
106 * @author Andy Clark IBM
107 * @author Neeraj Bajaj, Sun Microsystems, inc.
108 * @LastModified: Apr 2020
109 */
110 public class XMLSchemaValidator
111 implements XMLComponent, XMLDocumentFilter, FieldActivator, RevalidationHandler {
112
113 //
114 // Constants
115 //
116 private static final boolean DEBUG = false;
117
118 // feature identifiers
119
120 /** Feature identifier: validation. */
121 protected static final String VALIDATION =
122 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
123
124 /** Feature identifier: validation. */
125 protected static final String SCHEMA_VALIDATION =
126 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
127
|