Class AbstractParentCommand
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractParentCommand
- All Implemented Interfaces:
ICommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddCommandHandler(ICommand handler) protected ExitStatusexecuteCommand(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) getSubCommandByName(String name) booleannewExecutor(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, waitMethods inherited from interface gov.nist.secauto.metaschema.cli.processor.command.ICommand
gatherOptions, getDescription, getExtraArguments, getName, requiredExtraArgumentsCount, validateOptions
-
Constructor Details
-
AbstractParentCommand
protected AbstractParentCommand(boolean subCommandRequired)
-
-
Method Details
-
addCommandHandler
-
getSubCommandByName
- Specified by:
getSubCommandByNamein interfaceICommand
-
getSubCommands
- Specified by:
getSubCommandsin interfaceICommand
-
isSubCommandRequired
public boolean isSubCommandRequired()- Specified by:
isSubCommandRequiredin interfaceICommand
-
newExecutor
public ICommandExecutor newExecutor(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) - Specified by:
newExecutorin interfaceICommand
-
executeCommand
@NonNull protected ExitStatus executeCommand(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine)
-