< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDValidator.java

Print this page


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


  68  * <p>
  69  * This component requires the following features and properties from the
  70  * component manager that uses it:
  71  * <ul>
  72  *  <li>http://xml.org/sax/features/namespaces</li>
  73  *  <li>http://xml.org/sax/features/validation</li>
  74  *  <li>http://apache.org/xml/features/validation/dynamic</li>
  75  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
  76  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
  77  *  <li>http://apache.org/xml/properties/internal/grammar-pool</li>
  78  *  <li>http://apache.org/xml/properties/internal/datatype-validator-factory</li>
  79  * </ul>
  80  *
  81  * @xerces.internal
  82  *
  83  * @author Eric Ye, IBM
  84  * @author Andy Clark, IBM
  85  * @author Jeffrey Rodriguez IBM
  86  * @author Neil Graham, IBM
  87  *

  88  */
  89 public class XMLDTDValidator
  90         implements XMLComponent, XMLDocumentFilter, XMLDTDValidatorFilter, RevalidationHandler {
  91 
  92     //
  93     // Constants
  94     //
  95 
  96     /** Symbol: "&lt;&lt;datatypes>>". */
  97 
  98     /** Top level scope (-1). */
  99     private static final int TOP_LEVEL_SCOPE = -1;
 100 
 101     // feature identifiers
 102 
 103     /** Feature identifier: namespaces. */
 104     protected static final String NAMESPACES =
 105         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
 106 
 107     /** Feature identifier: validation. */


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


  67  * <p>
  68  * This component requires the following features and properties from the
  69  * component manager that uses it:
  70  * <ul>
  71  *  <li>http://xml.org/sax/features/namespaces</li>
  72  *  <li>http://xml.org/sax/features/validation</li>
  73  *  <li>http://apache.org/xml/features/validation/dynamic</li>
  74  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
  75  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
  76  *  <li>http://apache.org/xml/properties/internal/grammar-pool</li>
  77  *  <li>http://apache.org/xml/properties/internal/datatype-validator-factory</li>
  78  * </ul>
  79  *
  80  * @xerces.internal
  81  *
  82  * @author Eric Ye, IBM
  83  * @author Andy Clark, IBM
  84  * @author Jeffrey Rodriguez IBM
  85  * @author Neil Graham, IBM
  86  *
  87  * @LastModified: Nov 2017
  88  */
  89 public class XMLDTDValidator
  90         implements XMLComponent, XMLDocumentFilter, XMLDTDValidatorFilter, RevalidationHandler {
  91 
  92     //
  93     // Constants
  94     //
  95 
  96     /** Symbol: "&lt;&lt;datatypes>>". */
  97 
  98     /** Top level scope (-1). */
  99     private static final int TOP_LEVEL_SCOPE = -1;
 100 
 101     // feature identifiers
 102 
 103     /** Feature identifier: namespaces. */
 104     protected static final String NAMESPACES =
 105         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
 106 
 107     /** Feature identifier: validation. */


< prev index next >