Class Command

    • Constructor Detail

      • Command

        public Command()
    • Method Detail

      • isHelp

        protected boolean isHelp()
      • run

        public void run​(org.kohsuke.args4j.CmdLineParser parser)
                 throws CmdRunException,
                        org.kohsuke.args4j.CmdLineException
        This method is invoked by the Main method to start the execution of the Command.
        Parameters:
        parser -
        Throws:
        IOException
        org.kohsuke.args4j.CmdLineException
        CmdRunException
      • execute

        protected abstract void execute()
                                 throws CmdRunException,
                                        org.kohsuke.args4j.CmdLineException
        Each subclass should implement an execute methode to implement its behaviour.
        Throws:
        IOException
        org.kohsuke.args4j.CmdLineException
        CmdRunException
      • validate

        protected abstract void validate​(org.kohsuke.args4j.CmdLineParser parser)
                                  throws org.kohsuke.args4j.CmdLineException
        Throws:
        org.kohsuke.args4j.CmdLineException
      • printUsage

        public void printUsage()
        Prints the usage of the command.
      • getParser

        protected org.kohsuke.args4j.CmdLineParser getParser()
      • getDescription

        protected abstract String getDescription()
        Returns the description (used for the usage) of the command.
        Returns:
        the command's description (used for the usage).