< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaValidator.java

Print this page


   1 /*
   2  * Copyright (c) 2006, 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;
  23 


  95  * filter: receiving document events from the scanner; validating
  96  * the content and structure; augmenting the InfoSet, if applicable;
  97  * and notifying the parser of the information resulting from the
  98  * validation process.
  99  * <p>
 100  * This component requires the following features and properties from the
 101  * component manager that uses it:
 102  * <ul>
 103  *  <li>http://xml.org/sax/features/validation</li>
 104  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
 105  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
 106  *  <li>http://apache.org/xml/properties/internal/entity-resolver</li>
 107  * </ul>
 108  *
 109  * @xerces.internal
 110  *
 111  * @author Sandy Gao IBM
 112  * @author Elena Litani IBM
 113  * @author Andy Clark IBM
 114  * @author Neeraj Bajaj, Sun Microsystems, inc.

 115  */
 116 public class XMLSchemaValidator
 117     implements XMLComponent, XMLDocumentFilter, FieldActivator, RevalidationHandler, XSElementDeclHelper {
 118 
 119     //
 120     // Constants
 121     //
 122     private static final boolean DEBUG = false;
 123 
 124     // feature identifiers
 125 
 126     /** Feature identifier: validation. */
 127     protected static final String VALIDATION =
 128         Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
 129 
 130     /** Feature identifier: validation. */
 131     protected static final String SCHEMA_VALIDATION =
 132         Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
 133 
 134     /** Feature identifier: schema full checking*/


   1 /*
   2  * Copyright (c) 2006, 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;
  22 


  94  * filter: receiving document events from the scanner; validating
  95  * the content and structure; augmenting the InfoSet, if applicable;
  96  * and notifying the parser of the information resulting from the
  97  * validation process.
  98  * <p>
  99  * This component requires the following features and properties from the
 100  * component manager that uses it:
 101  * <ul>
 102  *  <li>http://xml.org/sax/features/validation</li>
 103  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
 104  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
 105  *  <li>http://apache.org/xml/properties/internal/entity-resolver</li>
 106  * </ul>
 107  *
 108  * @xerces.internal
 109  *
 110  * @author Sandy Gao IBM
 111  * @author Elena Litani IBM
 112  * @author Andy Clark IBM
 113  * @author Neeraj Bajaj, Sun Microsystems, inc.
 114  * @LastModified: Nov 2017
 115  */
 116 public class XMLSchemaValidator
 117     implements XMLComponent, XMLDocumentFilter, FieldActivator, RevalidationHandler, XSElementDeclHelper {
 118 
 119     //
 120     // Constants
 121     //
 122     private static final boolean DEBUG = false;
 123 
 124     // feature identifiers
 125 
 126     /** Feature identifier: validation. */
 127     protected static final String VALIDATION =
 128         Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
 129 
 130     /** Feature identifier: validation. */
 131     protected static final String SCHEMA_VALIDATION =
 132         Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE;
 133 
 134     /** Feature identifier: schema full checking*/


< prev index next >