Class Executer


  • public class Executer
    extends Object
    The Class Executer.
    Author:
    Martin Scharm
    • Constructor Detail

      • Executer

        public Executer()
        Instantiates a new executer.
    • Method Detail

      • getOptions

        public org.apache.commons.cli.Options getOptions()
        Get available (command-line) options.
        Returns:
        the options
      • executeSingle

        public void executeSingle​(String document,
                                  org.json.simple.JSONObject toReturn,
                                  org.apache.commons.cli.CommandLine line,
                                  List<Exception> errors)
                           throws Exception
        Execute single.
        Parameters:
        document - the document
        toReturn - the to return
        line - the line
        errors - the errors
        Throws:
        Exception - the exception
      • executeCompare

        public void executeCompare​(String document1,
                                   String document2,
                                   org.json.simple.JSONObject toReturn,
                                   org.apache.commons.cli.CommandLine line,
                                   List<Exception> errors)
                            throws Exception
        Execute compare.
        Parameters:
        document1 - the document1
        document2 - the document2
        toReturn - the to return
        line - the line
        errors - the errors
        Throws:
        Exception - the exception
      • result

        public static String result​(String s)
        Result.
        Parameters:
        s - the s
        Returns:
        the string
      • htmlPageStart

        public static String htmlPageStart()
        Static string to start an HTML page.
        Returns:
        the string
      • htmlPageEnd

        public static String htmlPageEnd()
        Static string to close an HTML page.
        Returns:
        the string