Class AbstractOscalValidationCommand

java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand
gov.nist.secauto.oscal.tools.cli.core.commands.AbstractOscalValidationCommand
All Implemented Interfaces:
gov.nist.secauto.metaschema.cli.processor.command.ICommand
Direct Known Subclasses:
AbstractDeprecatedOscalValidationSubcommand, ValidateCommand

public abstract class AbstractOscalValidationCommand extends gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand
Used by implementing classes to provide an OSCAL content validation command.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
    Provides OSCAL validation command execution support.

    Nested classes/interfaces inherited from class gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand

    gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand.AbstractValidationCommandExecutor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract gov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidator
    Load the OSCAL JSON schemas.
    protected abstract gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator
    Load the OSCAL XML schemas.
    abstract gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
    newExecutor(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)
     

    Methods inherited from class gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand

    gatherOptions, getExtraArguments, getName

    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

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

  • Method Details

    • getOscalXmlSchemas

      @NonNull protected abstract gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator getOscalXmlSchemas() throws IOException
      Load the OSCAL XML schemas.
      Returns:
      the XML schema validator instance
      Throws:
      IOException - if an error occurred while parsing the provided XML schemas
    • getOscalJsonSchema

      @NonNull protected abstract gov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidator getOscalJsonSchema() throws IOException
      Load the OSCAL JSON schemas.
      Returns:
      the XML schema validator instance
      Throws:
      IOException - if an error occurred while parsing the provided XML schemas
    • newExecutor

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