public abstract class AbstractDynamicCommand extends org.aesh.command.map.MapCommand<PmCommandInvocation>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDynamicCommand.DynamicOption |
| Modifier and Type | Field and Description |
|---|---|
static String |
ARGUMENT_NAME |
protected PmSession |
pmSession |
| Constructor and Description |
|---|
AbstractDynamicCommand(PmSession pmSession,
boolean optimizeRetrieval) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canComplete(PmSession pmSession) |
boolean |
checkForRequiredOptions(org.aesh.parser.ParsedLine pl) |
org.aesh.command.container.CommandContainer |
createCommand() |
protected abstract void |
doValidateOptions(PmCommandInvocation invoc) |
org.aesh.command.CommandResult |
execute(PmCommandInvocation session) |
protected abstract PmCommandActivator |
getActivator() |
protected List<String> |
getArgumentsValues() |
protected String |
getArgumentValue() |
protected abstract String |
getDescription() |
abstract CommandDomain |
getDomain() |
protected abstract List<AbstractDynamicCommand.DynamicOption> |
getDynamicOptions(State state) |
protected abstract String |
getName() |
protected String |
getOptionValue(String name) |
protected abstract List<org.aesh.command.impl.internal.ProcessedOption> |
getStaticOptions() |
protected abstract void |
runCommand(PmCommandInvocation session,
Map<String,String> options) |
public static final String ARGUMENT_NAME
protected final PmSession pmSession
public AbstractDynamicCommand(PmSession pmSession, boolean optimizeRetrieval)
pmSession - The sessionoptimizeRetrieval - True, optimize retrieval.protected abstract String getName()
protected abstract String getDescription()
protected abstract List<AbstractDynamicCommand.DynamicOption> getDynamicOptions(State state) throws Exception
Exceptionprotected abstract void runCommand(PmCommandInvocation session, Map<String,String> options) throws CommandExecutionException
CommandExecutionExceptionprotected abstract List<org.aesh.command.impl.internal.ProcessedOption> getStaticOptions() throws org.aesh.command.parser.OptionParserException
org.aesh.command.parser.OptionParserExceptionprotected abstract PmCommandActivator getActivator()
public abstract CommandDomain getDomain()
public org.aesh.command.container.CommandContainer createCommand()
throws org.aesh.command.parser.CommandLineParserException
org.aesh.command.parser.CommandLineParserExceptionpublic final boolean checkForRequiredOptions(org.aesh.parser.ParsedLine pl)
checkForRequiredOptions in class org.aesh.command.map.MapCommand<PmCommandInvocation>public org.aesh.command.CommandResult execute(PmCommandInvocation session) throws org.aesh.command.CommandException
org.aesh.command.CommandExceptionprotected String getArgumentValue()
protected abstract void doValidateOptions(PmCommandInvocation invoc) throws CommandExecutionException
CommandExecutionExceptionprotected abstract boolean canComplete(PmSession pmSession)
Copyright © 2016–2019 JBoss by Red Hat. All rights reserved.