Package com.sun.javatest.tool
Class ConfigManager
- java.lang.Object
-
- com.sun.javatest.tool.CommandManager
-
- com.sun.javatest.tool.ConfigManager
-
public class ConfigManager extends CommandManager
A manager for all the various configuration commands.
-
-
Constructor Summary
Constructors Constructor Description ConfigManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HelpTree.Node
getHelp()
Get an object embodying the command line help for the commands managed by this CommandManager.boolean
parseCommand(java.lang.String cmd, java.util.ListIterator argIter, CommandContext ctx)
Parse a command (and any arguments it might take).-
Methods inherited from class com.sun.javatest.tool.CommandManager
isMatch, isMatch, isPrefixMatch
-
-
-
-
Method Detail
-
getHelp
public HelpTree.Node getHelp()
Description copied from class:CommandManager
Get an object embodying the command line help for the commands managed by this CommandManager.- Specified by:
getHelp
in classCommandManager
- Returns:
- an object embodying the command line help for the commands managed by this CommandManager
-
parseCommand
public boolean parseCommand(java.lang.String cmd, java.util.ListIterator argIter, CommandContext ctx) throws Command.Fault
Description copied from class:CommandManager
Parse a command (and any arguments it might take).- Specified by:
parseCommand
in classCommandManager
- Parameters:
cmd
- the command to be parsedargIter
- an iterator from which to get any arguments that might be required by the optionctx
- a context object to use while parsing the command- Returns:
- true if the command is recognized and successfully parsed, or false if the command is not recognized by this command manager
- Throws:
Command.Fault
- if the command is recognized by this command manager but could not be successfully parsed or otherwise handled.
-
-