Module xml.base

Class SchemaInitializer


  • public class SchemaInitializer
    extends java.lang.Object
    The class SchemaInitializer provides method for initialize Schema objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.xml.validation.Schema newSchema​(java.io.File xsd)
      Gets the schema.
      static javax.xml.validation.Schema newSchema​(java.io.File xsd, org.xml.sax.ErrorHandler errorHandler)
      Gets the schema.
      • Methods inherited from class java.lang.Object

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

      • SchemaInitializer

        public SchemaInitializer()
    • Method Detail

      • newSchema

        public static javax.xml.validation.Schema newSchema​(java.io.File xsd,
                                                            org.xml.sax.ErrorHandler errorHandler)
                                                     throws org.xml.sax.SAXException
        Gets the schema.
        Parameters:
        xsd - the xsd
        errorHandler - the error handler
        Returns:
        the schema
        Throws:
        org.xml.sax.SAXException - If a SAX error occurs during parsing.
      • newSchema

        public static javax.xml.validation.Schema newSchema​(java.io.File xsd)
                                                     throws org.xml.sax.SAXException
        Gets the schema.
        Parameters:
        xsd - the xsd
        Returns:
        the schema
        Throws:
        org.xml.sax.SAXException - If a SAX error occurs during parsing.