public class ShellSingleCommand extends AbstractShellInteraction
UICommand to be useful in a Shell contextcommandLineUtil| Constructor and Description |
|---|
ShellSingleCommand(org.jboss.forge.addon.ui.UICommand command,
ShellContext shellContext,
CommandLineUtil commandLineUtil)
Creates a new
ShellSingleCommand based on the shell and initial selection |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.forge.addon.ui.result.Result |
execute() |
org.jboss.forge.addon.ui.UICommand |
getCommand() |
List<String> |
getCompletionOptions(String typed,
String line) |
Map<String,org.jboss.forge.addon.ui.input.InputComponent<?,Object>> |
getInputs() |
org.jboss.aesh.cl.parser.ParsedCompleteObject |
parseCompleteObject(String line) |
void |
populateInputs(String line,
boolean lenient) |
List<String> |
validate()
Returns the error messages
|
buildInputs, compareTo, equals, getContext, getName, getSourceCommand, hashCode, removeExistingOptions, toStringpublic ShellSingleCommand(org.jboss.forge.addon.ui.UICommand command,
ShellContext shellContext,
CommandLineUtil commandLineUtil)
ShellSingleCommand based on the shell and initial selectionpublic org.jboss.forge.addon.ui.UICommand getCommand()
public Map<String,org.jboss.forge.addon.ui.input.InputComponent<?,Object>> getInputs()
getInputs in class AbstractShellInteractionpublic List<String> getCompletionOptions(String typed, String line)
getCompletionOptions in class AbstractShellInteractionpublic org.jboss.aesh.cl.parser.ParsedCompleteObject parseCompleteObject(String line) throws org.jboss.aesh.cl.exception.CommandLineParserException
parseCompleteObject in class AbstractShellInteractionorg.jboss.aesh.cl.exception.CommandLineParserExceptionpublic void populateInputs(String line, boolean lenient) throws org.jboss.aesh.cl.exception.CommandLineParserException
populateInputs in class AbstractShellInteractionorg.jboss.aesh.cl.exception.CommandLineParserExceptionpublic org.jboss.forge.addon.ui.result.Result execute()
throws Exception
execute in class AbstractShellInteractionExceptionpublic List<String> validate()
AbstractShellInteractionvalidate in class AbstractShellInteractionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.