public abstract class AbstractDynamicCommand extends org.aesh.command.map.MapCommand<PmCommandInvocation>
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDynamicCommand.DynamicOption |
| Modifier and Type | Field and Description |
|---|---|
static String |
ARGUMENT_NAME |
protected PmSession |
pmSession |
| Constructor and Description |
|---|
AbstractDynamicCommand(PmSession pmSession,
boolean optimizeRetrieval,
boolean requireId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkForRequiredOptions(org.aesh.parser.ParsedLine pl) |
org.aesh.command.container.CommandContainer<org.aesh.command.Command<PmCommandInvocation>,PmCommandInvocation> |
createCommand() |
protected abstract void |
doValidateOptions() |
org.aesh.command.CommandResult |
execute(PmCommandInvocation session) |
protected abstract PmCommandActivator |
getActivator() |
protected List<String> |
getArgumentsValues() |
protected String |
getArgumentValue() |
protected abstract String |
getDescription() |
protected abstract List<AbstractDynamicCommand.DynamicOption> |
getDynamicOptions(State state,
String id) |
protected abstract String |
getId(PmSession session) |
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, boolean requireId)
pmSession - The sessionoptimizeRetrieval - True, optimize retrieval.protected abstract String getId(PmSession session) throws CommandExecutionException
CommandExecutionExceptionprotected abstract String getName()
protected abstract String getDescription()
protected abstract List<AbstractDynamicCommand.DynamicOption> getDynamicOptions(State state, String id) 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 org.aesh.command.container.CommandContainer<org.aesh.command.Command<PmCommandInvocation>,PmCommandInvocation> 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()
throws CommandExecutionException
CommandExecutionExceptionCopyright © 2016–2018 JBoss by Red Hat. All rights reserved.