< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/jaxp/validation/ValidatorHandlerImpl.java

Print this page


   1 /*
   2  * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 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.jaxp.validation;
  23 


  78 import org.xml.sax.Attributes;
  79 import org.xml.sax.ContentHandler;
  80 import org.xml.sax.DTDHandler;
  81 import org.xml.sax.ErrorHandler;
  82 import org.xml.sax.InputSource;
  83 import org.xml.sax.Locator;
  84 import org.xml.sax.SAXException;
  85 import org.xml.sax.SAXNotRecognizedException;
  86 import org.xml.sax.SAXNotSupportedException;
  87 import org.xml.sax.XMLReader;
  88 import org.xml.sax.ext.Attributes2;
  89 import org.xml.sax.ext.EntityResolver2;
  90 
  91 /**
  92  * <p>Implementation of ValidatorHandler for W3C XML Schemas and
  93  * also a validator helper for <code>SAXSource</code>s.</p>
  94  *
  95  * @author Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
  96  * @author Michael Glavassevich, IBM
  97  *

  98  */
  99 final class ValidatorHandlerImpl extends ValidatorHandler implements
 100     DTDHandler, EntityState, PSVIProvider, ValidatorHelper, XMLDocumentHandler {
 101 
 102     // feature identifiers
 103 
 104     /** Feature identifier: namespace prefixes. */
 105     private static final String NAMESPACE_PREFIXES =
 106         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACE_PREFIXES_FEATURE;
 107 
 108     /** Feature identifier: string interning. */
 109     protected static final String STRING_INTERNING =
 110         Constants.SAX_FEATURE_PREFIX + Constants.STRING_INTERNING_FEATURE;
 111 
 112     // property identifiers
 113 
 114     /** Property identifier: error reporter. */
 115     private static final String ERROR_REPORTER =
 116         Constants.XERCES_PROPERTY_PREFIX + Constants.ERROR_REPORTER_PROPERTY;
 117 


   1 /*
   2  * Copyright (c) 2013, 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.jaxp.validation;
  22 


  77 import org.xml.sax.Attributes;
  78 import org.xml.sax.ContentHandler;
  79 import org.xml.sax.DTDHandler;
  80 import org.xml.sax.ErrorHandler;
  81 import org.xml.sax.InputSource;
  82 import org.xml.sax.Locator;
  83 import org.xml.sax.SAXException;
  84 import org.xml.sax.SAXNotRecognizedException;
  85 import org.xml.sax.SAXNotSupportedException;
  86 import org.xml.sax.XMLReader;
  87 import org.xml.sax.ext.Attributes2;
  88 import org.xml.sax.ext.EntityResolver2;
  89 
  90 /**
  91  * <p>Implementation of ValidatorHandler for W3C XML Schemas and
  92  * also a validator helper for <code>SAXSource</code>s.</p>
  93  *
  94  * @author Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
  95  * @author Michael Glavassevich, IBM
  96  *
  97  * @LastModified: Oct 2017
  98  */
  99 final class ValidatorHandlerImpl extends ValidatorHandler implements
 100     DTDHandler, EntityState, PSVIProvider, ValidatorHelper, XMLDocumentHandler {
 101 
 102     // feature identifiers
 103 
 104     /** Feature identifier: namespace prefixes. */
 105     private static final String NAMESPACE_PREFIXES =
 106         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACE_PREFIXES_FEATURE;
 107 
 108     /** Feature identifier: string interning. */
 109     protected static final String STRING_INTERNING =
 110         Constants.SAX_FEATURE_PREFIX + Constants.STRING_INTERNING_FEATURE;
 111 
 112     // property identifiers
 113 
 114     /** Property identifier: error reporter. */
 115     private static final String ERROR_REPORTER =
 116         Constants.XERCES_PROPERTY_PREFIX + Constants.ERROR_REPORTER_PROPERTY;
 117 


< prev index next >