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