public abstract class AbstractCmd extends Object implements MBClientCmd
| Modifier and Type | Field and Description |
|---|---|
protected static PrintStream |
ERR_STREAM |
protected boolean |
help |
protected String |
password |
protected String |
rootCommand |
protected com.beust.jcommander.JCommander |
selfJCommander
Holds the reference of the JCommander runtime instance associated with this command instance.
|
protected boolean |
verbose |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCmd(String rootCommand)
Constructor, set the root command when creation.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
processHelpLogs()
Print help messages of the concrete command object.
|
void |
setSelfJCommander(com.beust.jcommander.JCommander selfJCommander)
Store the
JCommander instance related to this command itself. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendUsage, buildResponseMessage, executeprotected static final PrintStream ERR_STREAM
protected String rootCommand
protected com.beust.jcommander.JCommander selfJCommander
protected boolean help
protected boolean verbose
protected String password
protected AbstractCmd(String rootCommand)
rootCommand - root command loaded from the script.public void setSelfJCommander(com.beust.jcommander.JCommander selfJCommander)
MBClientCmdJCommander instance related to this command itself. This can be used to print help statements,
on its child commands.setSelfJCommander in interface MBClientCmdselfJCommander - JCommander instance generated for this Commandprotected void processHelpLogs()
Copyright © 2018 WSO2. All rights reserved.