Class SchemaConstraintChecker


  • public class SchemaConstraintChecker
    extends java.lang.Object
    Checks XML Schema XML representation constraints and schema component constraints by using JAXP 1.3 validation framework.

    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com), Ryan Shoemaker (ryan.shoemaker@sun.com)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean check​(org.xml.sax.InputSource[] schemas, ErrorReceiver errorHandler, org.xml.sax.EntityResolver entityResolver, boolean disableXmlSecurity)  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • SchemaConstraintChecker

        public SchemaConstraintChecker()
    • Method Detail

      • check

        public static boolean check​(org.xml.sax.InputSource[] schemas,
                                    ErrorReceiver errorHandler,
                                    org.xml.sax.EntityResolver entityResolver,
                                    boolean disableXmlSecurity)
        Parameters:
        schemas - Schema files to be checked.
        errorHandler - detected errors will be reported to this handler.
        Returns:
        true if there was no error, false if there were errors.
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException