public class ShellCommand_source extends ShellCommandBase implements GetlineCompleter
itsCommandName, itsShell
Constructor and Description |
---|
ShellCommand_source() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
complete(java.lang.String line) |
java.lang.String |
getSyntaxArgs() |
java.lang.String |
getUsageHelp(java.lang.String[] args)
Get some info on how to invoke this command.
|
java.lang.String |
getUsageShort()
Get a very brief (40 character) description of the command
|
void |
processCommand(java.lang.String[] args)
Handle a command.
|
getCommandName, getErrStream, getOutStream, getShell, getSyntax, init
public java.lang.String complete(java.lang.String line)
complete
in interface GetlineCompleter
public void processCommand(java.lang.String[] args) throws ShellCommandUsageException, ShellCommandExecException
ShellCommandHandler
processCommand
in interface ShellCommandHandler
processCommand
in class ShellCommandBase
args
- The args to the command.ShellCommandUsageException
- If the args are malformed.ShellCommandExecException
- If an error occurred
executing the command.public java.lang.String getSyntaxArgs()
getSyntaxArgs
in class ShellCommandBase
public java.lang.String getUsageShort()
ShellCommandHandler
getUsageShort
in interface ShellCommandHandler
getUsageShort
in class ShellCommandBase
public java.lang.String getUsageHelp(java.lang.String[] args)
ShellCommandHandler
getUsageHelp
in interface ShellCommandHandler
getUsageHelp
in class ShellCommandBase
Copyright ? 2004-2011 Hyperic. All Rights Reserved.