| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.ui.console.commands.IConsoleCommand
public abstract class IConsoleCommand
base interface for all console commands
| Nested Class Summary | |
|---|---|
protected static class | 
IConsoleCommand.TorrentComparator
 | 
| Constructor Summary | |
|---|---|
IConsoleCommand(String main_name)
 | 
|
IConsoleCommand(String main_name,
                String short_name)
 | 
|
| Method Summary | |
|---|---|
abstract  void | 
execute(String commandName,
        ConsoleInput console,
        List<String> arguments)
execute the command with the specified name using the specified arguments  | 
protected  String | 
expandVariable(char variable,
               DownloadManager dm)
expands the specified variable character into a string.  | 
abstract  String | 
getCommandDescriptions()
return high-level help about the commands supported by this object.  | 
 String | 
getCommandName()
 | 
 Set | 
getCommandNames()
returns the set of command names that this command understands.  | 
protected  String | 
getDefaultSummaryFormat()
returns the format string (in printf style format) to use for displaying the torrent summary  | 
 String | 
getShortCommandName()
 | 
protected  String | 
getTorrentSummary(DownloadManager dm)
returns the summary details for the specified torrent.  | 
 void | 
printHelp(PrintStream out,
          List<String> args)
do nothing by default  | 
protected  void | 
printHelp(PrintStream out,
          String arg)
helper method if subclasses want to print out help for a particular subcommand  | 
 void | 
printHelpExtra(PrintStream out,
               List<String> args)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public IConsoleCommand(String main_name)
public IConsoleCommand(String main_name,
                       String short_name)
| Method Detail | 
|---|
public abstract void execute(String commandName,
                             ConsoleInput console,
                             List<String> arguments)
commandName - console - arguments - public abstract String getCommandDescriptions()
public final void printHelp(PrintStream out,
                            List<String> args)
out - args - 
public void printHelpExtra(PrintStream out,
                           List<String> args)
protected final void printHelp(PrintStream out,
                               String arg)
out - arg - public Set getCommandNames()
public final String getCommandName()
public final String getShortCommandName()
protected String getTorrentSummary(DownloadManager dm)
protected String expandVariable(char variable,
                                DownloadManager dm)
variable - variable character, eg: 'e' for ETAdm - download manager object
protected String getDefaultSummaryFormat()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||