Class GenerateSchemaCommand
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
gov.nist.secauto.metaschema.cli.commands.GenerateSchemaCommand
- All Implemented Interfaces:
ICommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ExitStatus
executeCommand
(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) Called to execute the schema generation.Collection<? extends org.apache.commons.cli.Option>
getName()
newExecutor
(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) void
validateOptions
(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) Methods inherited from class gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
getSubCommands, isSubCommandRequired, resolvePathAgainstCWD
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
getSubCommandByName, requiredExtraArgumentsCount
-
Constructor Details
-
GenerateSchemaCommand
public GenerateSchemaCommand()
-
-
Method Details
-
getName
-
getDescription
-
gatherOptions
-
getExtraArguments
-
validateOptions
public void validateOptions(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
newExecutor
public ICommandExecutor newExecutor(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) -
executeCommand
protected ExitStatus executeCommand(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine cmdLine) Called to execute the schema generation.- Parameters:
callingContext
- the context information for the executioncmdLine
- the parsed command line details- Returns:
- the execution result
-