Class AbstractOscalValidationCommand

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

public abstract class AbstractOscalValidationCommand extends dev.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 dev.metaschema.cli.commands.AbstractValidateContentCommand

    dev.metaschema.cli.commands.AbstractValidateContentCommand.AbstractValidationCommandExecutor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class dev.metaschema.cli.commands.AbstractValidateContentCommand

    gatherOptions, getExtraArguments, getName

    Methods inherited from class dev.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 dev.metaschema.cli.processor.command.ICommand

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

  • Method Details

    • getOscalXmlSchemas

      @NonNull protected abstract dev.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 dev.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 dev.metaschema.cli.processor.command.ICommandExecutor newExecutor(dev.metaschema.cli.processor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)