|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.ui.console.commands.CommandCollection
public class CommandCollection
this class represents a collection of commands. it can be used by command objects to house their subcommands. when execute() method is called, the appropriate subcommand is looked up and executed
| Constructor Summary | |
|---|---|
CommandCollection()
|
|
| Method Summary | |
|---|---|
void |
add(IConsoleCommand command)
adds the specified console command as a subcommand to this object. |
void |
execute(java.lang.String commandName,
ConsoleInput ci,
java.util.List args)
determines the appropriate subcommand to execute and then executes it, passing in the arguments that we received |
IConsoleCommand |
get(java.lang.String commandName)
returns the sub command with the specified command name |
java.lang.String |
getCommandDescriptions()
constructs a string with the descriptions of all of the subcommands, each separated by a newline |
java.util.Iterator |
iterator()
gets the set of IConsoleCommand objects that are all of the subcommands that this object owns |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandCollection()
| Method Detail |
|---|
public void execute(java.lang.String commandName,
ConsoleInput ci,
java.util.List args)
commandName - ci - args - public java.lang.String getCommandDescriptions()
public IConsoleCommand get(java.lang.String commandName)
commandName -
public void add(IConsoleCommand command)
command - public java.util.Iterator iterator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||