psdi.iface.util

Class SchemaValidator

  • java.lang.Object
    • psdi.iface.util.SchemaValidator


  • public class SchemaValidator
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      SchemaValidator(javax.xml.transform.Source schemaFileResource) 
      SchemaValidator(javax.xml.transform.Source[] schemaFileResources) 
      SchemaValidator(java.lang.String schemaUrl) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args) 
      void validateXML(byte[] xmlData) 
      void validateXML(java.io.File xmlFile) 
      void validateXML(java.io.InputStream xmlStream) 
      • Methods inherited from class java.lang.Object

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

      • SchemaValidator

        public SchemaValidator(java.lang.String schemaUrl)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • SchemaValidator

        public SchemaValidator(javax.xml.transform.Source schemaFileResource)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • SchemaValidator

        public SchemaValidator(javax.xml.transform.Source[] schemaFileResources)
                        throws java.lang.Exception
        Parameters:
        schemaFileResources - the order is important here!
        Throws:
        java.lang.Exception
    • Method Detail

      • validateXML

        public void validateXML(byte[] xmlData)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • validateXML

        public void validateXML(java.io.File xmlFile)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • validateXML

        public void validateXML(java.io.InputStream xmlStream)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

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