|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.tool.Command
com.sun.javatest.tool.VerboseCommand
public class VerboseCommand
A command supporting an extensible set of boolean options. Valid options must be registered with the addOption method. The current setting of the various options can be obtained from the current CommandContext.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.javatest.tool.Command |
---|
Command.Fault |
Field Summary |
---|
Fields inherited from class com.sun.javatest.tool.Command |
---|
DEFAULT_DTMODE, DESKTOP_NOT_REQUIRED_DTMODE, DESKTOP_REQUIRED_DTMODE |
Method Summary | |
---|---|
static void |
addOption(java.lang.String name,
HelpTree.Node node)
Add a option to the set recognized by this command. |
void |
run(CommandContext ctx)
Execute the work embodied by this command, using the given command context. |
Methods inherited from class com.sun.javatest.tool.Command |
---|
addArg, getArgs, getConfig, getCustomSplash, getDesktopMode, isActionCommand, nextArg, putbackArg, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static void addOption(java.lang.String name, HelpTree.Node node)
name
- the name of the option to be accepted.node
- the help node for this optionpublic void run(CommandContext ctx) throws Command.Fault
Command
run
in class Command
ctx
- context information that may be set up by preceding commands.
Command.Fault
- if there is an error while executing this command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |