Class DefaultValidator

  • All Implemented Interfaces:
    Validator

    public class DefaultValidator
    extends java.lang.Object
    implements Validator
    Default implementation of Validator.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultValidator​(java.net.URI... catalogs)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ValidationResult validate​(java.nio.file.Path xmlFile)
      Validate the supplied XML file.
      • Methods inherited from class java.lang.Object

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

      • DefaultValidator

        public DefaultValidator​(java.net.URI... catalogs)
        Create a new instance.
        Parameters:
        catalogs - for resolving references to XML schemas
    • Method Detail

      • validate

        public ValidationResult validate​(java.nio.file.Path xmlFile)
        Description copied from interface: Validator
        Validate the supplied XML file.
        Specified by:
        validate in interface Validator
        Parameters:
        xmlFile - the XML file to validate
        Returns:
        validation result