Class AbstractCommandExecutor
- java.lang.Object
-
- gov.nist.secauto.metaschema.cli.processor.command.AbstractCommandExecutor
-
- All Implemented Interfaces:
ICommandExecutor
public abstract class AbstractCommandExecutor extends Object implements ICommandExecutor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
ICommandExecutor.ExecutionFunction
-
-
Constructor Summary
Constructors Constructor Description AbstractCommandExecutor(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ExitStatus
execute()
protected CLIProcessor.CallingContext
getCallingContext()
protected ICommand
getCommand()
protected org.apache.commons.cli.CommandLine
getCommandLine()
-
-
-
Constructor Detail
-
AbstractCommandExecutor
public AbstractCommandExecutor(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine)
-
-
Method Detail
-
getCallingContext
@NonNull protected CLIProcessor.CallingContext getCallingContext()
-
getCommandLine
@NonNull protected org.apache.commons.cli.CommandLine getCommandLine()
-
execute
public abstract ExitStatus execute()
- Specified by:
execute
in interfaceICommandExecutor
-
getCommand
@NonNull protected ICommand getCommand()
-
-