29 import javax.xml.transform.stax.StAXSource; 30 import javax.xml.transform.stream.StreamSource; 31 import javax.xml.validation.Validator; 32 33 import com.sun.org.apache.xerces.internal.impl.Constants; 34 import com.sun.org.apache.xerces.internal.util.SAXMessageFormatter; 35 import com.sun.org.apache.xerces.internal.util.Status; 36 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; 37 import com.sun.org.apache.xerces.internal.xs.AttributePSVI; 38 import com.sun.org.apache.xerces.internal.xs.ElementPSVI; 39 import com.sun.org.apache.xerces.internal.xs.PSVIProvider; 40 import org.w3c.dom.ls.LSResourceResolver; 41 import org.xml.sax.ErrorHandler; 42 import org.xml.sax.SAXException; 43 import org.xml.sax.SAXNotRecognizedException; 44 import org.xml.sax.SAXNotSupportedException; 45 46 /** 47 * <p>Implementation of Validator for W3C XML Schemas.</p> 48 * 49 * @author <a href="mailto:Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a> 50 * @author Michael Glavassevich, IBM 51 * @author <a href="mailto:Sunitha.Reddy@Sun.com">Sunitha Reddy</a> 52 */ 53 final class ValidatorImpl extends Validator implements PSVIProvider { 54 55 // 56 // Data 57 // 58 59 /** Component manager. **/ 60 private XMLSchemaValidatorComponentManager fComponentManager; 61 62 /** SAX validator helper. **/ 63 private ValidatorHandlerImpl fSAXValidatorHelper; 64 65 /** DOM validator helper. **/ 66 private DOMValidatorHelper fDOMValidatorHelper; 67 68 /** Stream validator helper. **/ 69 private StreamValidatorHelper fStreamValidatorHelper; 70 71 /** StAX validator helper. **/ | 29 import javax.xml.transform.stax.StAXSource; 30 import javax.xml.transform.stream.StreamSource; 31 import javax.xml.validation.Validator; 32 33 import com.sun.org.apache.xerces.internal.impl.Constants; 34 import com.sun.org.apache.xerces.internal.util.SAXMessageFormatter; 35 import com.sun.org.apache.xerces.internal.util.Status; 36 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; 37 import com.sun.org.apache.xerces.internal.xs.AttributePSVI; 38 import com.sun.org.apache.xerces.internal.xs.ElementPSVI; 39 import com.sun.org.apache.xerces.internal.xs.PSVIProvider; 40 import org.w3c.dom.ls.LSResourceResolver; 41 import org.xml.sax.ErrorHandler; 42 import org.xml.sax.SAXException; 43 import org.xml.sax.SAXNotRecognizedException; 44 import org.xml.sax.SAXNotSupportedException; 45 46 /** 47 * <p>Implementation of Validator for W3C XML Schemas.</p> 48 * 49 * @author Kohsuke Kawaguchi 50 * @author Michael Glavassevich, IBM 51 * @author Sunitha Reddy 52 */ 53 final class ValidatorImpl extends Validator implements PSVIProvider { 54 55 // 56 // Data 57 // 58 59 /** Component manager. **/ 60 private XMLSchemaValidatorComponentManager fComponentManager; 61 62 /** SAX validator helper. **/ 63 private ValidatorHandlerImpl fSAXValidatorHelper; 64 65 /** DOM validator helper. **/ 66 private DOMValidatorHelper fDOMValidatorHelper; 67 68 /** Stream validator helper. **/ 69 private StreamValidatorHelper fStreamValidatorHelper; 70 71 /** StAX validator helper. **/ |