|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.devexperts.qd.tools.AbstractTool
public abstract class AbstractTool
Base class for all QDS tools.
Field Summary | |
---|---|
protected Options |
options
|
Constructor Summary | |
---|---|
AbstractTool()
|
Method Summary | |
---|---|
java.util.List<java.io.Closeable> |
closeOnExit()
|
void |
execute(java.lang.String[] args)
Executes this tool. |
protected abstract void |
executeImpl(java.lang.String[] args)
Executes this concrete tool. |
protected java.lang.String |
generateHelpSummary(int screenWidth)
Generates basic help on this tool. |
protected Option[] |
getOptions()
Returns array with all options used by this tool. |
boolean |
mustWaitForeverAtEnd()
|
java.util.List<MessageConnector> |
mustWaitWhileActive()
|
protected static void |
noArguments()
|
protected static void |
wrongNumberOfArguments()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Options options
Constructor Detail |
---|
public AbstractTool()
Method Detail |
---|
public void execute(java.lang.String[] args) throws BadToolParametersException, ToolInitializationException
args
- arguments and options.
BadToolParametersException
- if couldn't parse tool arguments or options.
ToolInitializationException
- if couldn't initialize the tool.protected static void wrongNumberOfArguments()
protected static void noArguments()
protected abstract void executeImpl(java.lang.String[] args) throws BadToolParametersException, ToolInitializationException
args
- arguments
BadToolParametersException
- if arguments are invalid.
ToolInitializationException
- if some error occurred.protected Option[] getOptions()
protected java.lang.String generateHelpSummary(int screenWidth)
screenWidth
- width of generated info (in characters).
public java.util.List<MessageConnector> mustWaitWhileActive()
public boolean mustWaitForeverAtEnd()
public java.util.List<java.io.Closeable> closeOnExit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |