Class AbstractValidateContentCommand.AbstractValidationCommandExecutor

java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractCommandExecutor
gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand.AbstractValidationCommandExecutor
All Implemented Interfaces:
ICommandExecutor, IBindingContext.ISchemaValidationProvider
Enclosing class:
AbstractValidateContentCommand

  • Constructor Details

    • AbstractValidationCommandExecutor

      public AbstractValidationCommandExecutor(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine)
      Construct a new command executor.
      Parameters:
      callingContext - the context of the command execution
      commandLine - the parsed command line details
  • Method Details

    • getBindingContext

      @NonNull protected abstract IBindingContext getBindingContext(@NonNull Set<gov.nist.secauto.metaschema.core.model.constraint.IConstraintSet> constraintSets) throws gov.nist.secauto.metaschema.core.model.MetaschemaException, IOException
      Get the binding context to use for data processing.
      Parameters:
      constraintSets - the constraints to configure in the resulting binding context
      Returns:
      the context
      Throws:
      gov.nist.secauto.metaschema.core.model.MetaschemaException - if a Metaschema error occurred
      IOException - if an error occurred while reading data
    • execute

      public ExitStatus execute()
      Specified by:
      execute in interface ICommandExecutor
      Specified by:
      execute in class AbstractCommandExecutor