Class AbstractResolveCommand

java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
gov.nist.secauto.oscal.tools.cli.core.commands.AbstractResolveCommand
All Implemented Interfaces:
gov.nist.secauto.metaschema.cli.processor.command.ICommand
Direct Known Subclasses:
ResolveCommand

public abstract class AbstractResolveCommand extends gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
A command implementation supporting the resolution of an OSCAL profile.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    executeCommand(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
    Process the command line arguments and execute the profile resolution operation.
    Collection<? extends org.apache.commons.cli.Option>
     
     
    List<gov.nist.secauto.metaschema.cli.processor.command.ExtraArgument>
     
    gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
    newExecutor(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
     

    Methods inherited from class gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand

    getCurrentWorkingDirectory, resolveAgainstCWD, resolveAgainstCWD, resolveAgainstCWD

    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

    getName, getSubCommandByName, getSubCommands, isSubCommandRequired, validateExtraArguments, validateOptions
  • Constructor Details

  • Method Details

    • getDescription

    • gatherOptions

      public Collection<? extends org.apache.commons.cli.Option> gatherOptions()
    • getExtraArguments

      public List<gov.nist.secauto.metaschema.cli.processor.command.ExtraArgument> getExtraArguments()
    • newExecutor

      public gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor newExecutor(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
    • executeCommand

      protected void executeCommand(@NonNull gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine cmdLine) throws gov.nist.secauto.metaschema.cli.processor.command.CommandExecutionException
      Process the command line arguments and execute the profile resolution operation.
      Parameters:
      callingContext - the context information for the execution
      cmdLine - the parsed command line details
      Throws:
      gov.nist.secauto.metaschema.cli.processor.command.CommandExecutionException - if an error occurred while determining the source format