Class XsdValidator


  • @ThreadSafe
    public class XsdValidator
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XsdValidator​(java.io.File xsdFile)  
      XsdValidator​(java.lang.String internalXsdResourceFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.validation.Schema getSchema()  
      void validate​(java.io.File xmlFile)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XsdValidator

        public XsdValidator​(java.lang.String internalXsdResourceFile)
                     throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • XsdValidator

        public XsdValidator​(java.io.File xsdFile)
                     throws org.xml.sax.SAXException,
                            java.io.IOException
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
    • Method Detail

      • validate

        public void validate​(java.io.File xmlFile)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
      • getSchema

        public javax.xml.validation.Schema getSchema()