Class AbstractParentCommand
- java.lang.Object
-
- gov.nist.secauto.metaschema.cli.processor.command.AbstractParentCommand
-
- All Implemented Interfaces:
ICommand
public abstract class AbstractParentCommand extends Object implements ICommand
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractParentCommand(boolean subCommandRequired)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCommandHandler(ICommand handler)
protected ExitStatus
executeCommand(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)
ICommand
getSubCommandByName(String name)
Collection<ICommand>
getSubCommands()
boolean
isSubCommandRequired()
ICommandExecutor
newExecutor(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.cli.processor.command.ICommand
gatherOptions, getDescription, getExtraArguments, getName, requiredExtraArgumentsCount, validateOptions
-
-
-
-
Constructor Detail
-
AbstractParentCommand
protected AbstractParentCommand(boolean subCommandRequired)
-
-
Method Detail
-
addCommandHandler
protected void addCommandHandler(ICommand handler)
-
getSubCommandByName
public ICommand getSubCommandByName(String name)
- Specified by:
getSubCommandByName
in interfaceICommand
-
getSubCommands
public Collection<ICommand> getSubCommands()
- Specified by:
getSubCommands
in interfaceICommand
-
isSubCommandRequired
public boolean isSubCommandRequired()
- Specified by:
isSubCommandRequired
in interfaceICommand
-
newExecutor
public ICommandExecutor newExecutor(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
- Specified by:
newExecutor
in interfaceICommand
-
executeCommand
@NonNull protected ExitStatus executeCommand(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine)
-
-