Class CommandLineValidator


  • public class CommandLineValidator
    extends Object
    Stand-alone command-line validation tool. This is a complete validation tool that can be run from the command-line. It accepts a single document to validate, and multiple XSD, SCH or SVRL (XSLT) files to validate the document against.

    Prints information about the validation results depending on the given output-format value.

    Instead of validating a document, the command line tool can also print the value of the derived keyword for the given document file. See KeywordDeriver for more information about derived keywords.

    Return code is the number of errors encountered, or a negative value if the validation could not be performed.
    Author:
    Ionite
    • Constructor Detail

      • CommandLineValidator

        public CommandLineValidator​(String[] argv)
        Construct an CommandLineValidator with the given command-line arguments
        Parameters:
        argv - String-array containing the command-line arguments
    • Method Detail

      • run

        public int run()
        Execute the validation
        Returns:
        The number of errors found by the validation, or a negative number if the validation could not be performed.
      • main

        public static void main​(String[] argv)
        Parse the command-line arguments and execute the validation. Exit code is the number of errors found by the validation, or a negative number if the validation could not be executed.