org.overlord.sramp.shell.commands
Class HelpCommand

java.lang.Object
  extended by org.overlord.sramp.shell.api.AbstractShellCommand
      extended by org.overlord.sramp.shell.commands.HelpCommand
All Implemented Interfaces:
ShellCommand

public class HelpCommand
extends AbstractShellCommand

Implements the 'help' command.

Author:
eric.wittmann@redhat.com

Constructor Summary
HelpCommand(Map<QName,Class<? extends ShellCommand>> commands)
          Constructor.
 
Method Summary
 void execute()
           
 void printHelp()
           
 void printUsage()
           
 int tabCompletion(String lastArgument, List<CharSequence> candidates)
           
 
Methods inherited from class org.overlord.sramp.shell.api.AbstractShellCommand
getArguments, getContext, optionalArgument, optionalArgument, print, requiredArgument, setArguments, setContext, setOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpCommand

public HelpCommand(Map<QName,Class<? extends ShellCommand>> commands)
Constructor.

Parameters:
commands -
Method Detail

printUsage

public void printUsage()
See Also:
shell.ShellCommand

printHelp

public void printHelp()
See Also:
shell.ShellCommand

execute

public void execute()
             throws Exception
Throws:
Exception
See Also:
shell.ShellCommand

tabCompletion

public int tabCompletion(String lastArgument,
                         List<CharSequence> candidates)
Specified by:
tabCompletion in interface ShellCommand
Overrides:
tabCompletion in class AbstractShellCommand
See Also:
shell.AbstractShellCommand


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.