org.sonatype.gshell.command
Class GroupAction

java.lang.Object
  extended by org.sonatype.gshell.command.GroupAction
All Implemented Interfaces:
Cloneable, CommandAction, OpaqueArguments

public class GroupAction
extends Object
implements CommandAction, OpaqueArguments

CommandAction to switch groups.

Since:
2.5
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.gshell.command.CommandAction
CommandAction.Result
 
Constructor Summary
GroupAction(String name)
           
 
Method Summary
 CommandAction clone()
           
 Object execute(CommandContext context)
          Execute the command action.
 jline.console.completer.Completer[] getCompleters()
           
 MessageSource getMessages()
           
 String getName()
           
 String getSimpleName()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupAction

public GroupAction(String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface CommandAction

getSimpleName

public String getSimpleName()
Specified by:
getSimpleName in interface CommandAction

execute

public Object execute(CommandContext context)
               throws Exception
Description copied from interface: CommandAction
Execute the command action.

Specified by:
execute in interface CommandAction
Parameters:
context - The execution context of the command.
Returns:
The result of the command execution.
Throws:
Exception - Command execution failed.

getMessages

public MessageSource getMessages()
Specified by:
getMessages in interface CommandAction

getCompleters

public jline.console.completer.Completer[] getCompleters()
Specified by:
getCompleters in interface CommandAction

clone

public CommandAction clone()
Specified by:
clone in interface CommandAction
Overrides:
clone in class Object


Copyright © 2008-2011 Sonatype. All Rights Reserved.