public abstract class Command extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected ConsoleLogAdapter | 
LOG  | 
| Constructor and Description | 
|---|
Command()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract void | 
execute()
Each subclass should implement an execute methode to implement its behaviour. 
 | 
protected abstract String | 
getDescription()
Returns the description (used for the usage) of the command. 
 | 
protected org.kohsuke.args4j.CmdLineParser | 
getParser()  | 
protected boolean | 
isHelp()  | 
void | 
printUsage()
Prints the usage of the command. 
 | 
void | 
run(org.kohsuke.args4j.CmdLineParser parser)
This method is invoked by the Main method to start the execution of the Command. 
 | 
protected abstract void | 
validate(org.kohsuke.args4j.CmdLineParser parser)  | 
protected final ConsoleLogAdapter LOG
protected boolean isHelp()
public void run(org.kohsuke.args4j.CmdLineParser parser)
         throws CmdRunException,
                org.kohsuke.args4j.CmdLineException
parser - IOExceptionorg.kohsuke.args4j.CmdLineExceptionCmdRunExceptionprotected abstract void execute()
                         throws CmdRunException,
                                org.kohsuke.args4j.CmdLineException
IOExceptionorg.kohsuke.args4j.CmdLineExceptionCmdRunExceptionprotected abstract void validate(org.kohsuke.args4j.CmdLineParser parser)
                          throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineExceptionpublic void printUsage()
protected org.kohsuke.args4j.CmdLineParser getParser()
protected abstract String getDescription()
Copyright © 2020. All rights reserved.