Class AbstractOscalValidationCommand.OscalValidationCommandExecutor

java.lang.Object
dev.metaschema.cli.processor.command.AbstractCommandExecutor
dev.metaschema.oscal.tools.cli.core.commands.AbstractOscalValidationCommand.OscalValidationCommandExecutor
All Implemented Interfaces:
dev.metaschema.cli.processor.command.ICommandExecutor, dev.metaschema.databind.IBindingContext.ISchemaValidationProvider
Enclosing class:
AbstractOscalValidationCommand

protected class AbstractOscalValidationCommand.OscalValidationCommandExecutor extends dev.metaschema.cli.processor.command.AbstractCommandExecutor implements dev.metaschema.databind.IBindingContext.ISchemaValidationProvider
Provides OSCAL validation command execution support.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface dev.metaschema.cli.processor.command.ICommandExecutor

    dev.metaschema.cli.processor.command.ICommandExecutor.ExecutionFunction
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    OscalValidationCommandExecutor(dev.metaschema.cli.processor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)
    Construct a new command executor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected dev.metaschema.databind.IBindingContext
    getBindingContext(Set<dev.metaschema.core.model.constraint.IConstraintSet> constraintSets)
     
    dev.metaschema.core.model.validation.JsonSchemaContentValidator
    getJsonSchema(org.json.JSONObject json, dev.metaschema.databind.IBindingContext bindingContext)
     
    protected dev.metaschema.core.model.IModule
    getModule(org.apache.commons.cli.CommandLine commandLine, dev.metaschema.databind.IBindingContext bindingContext)
     
    protected dev.metaschema.databind.IBindingContext.ISchemaValidationProvider
    getSchemaValidationProvider(dev.metaschema.core.model.IModule module, org.apache.commons.cli.CommandLine commandLine, dev.metaschema.databind.IBindingContext bindingContext)
     
    dev.metaschema.core.model.validation.XmlSchemaContentValidator
    getXmlSchemas(URL targetResource, dev.metaschema.databind.IBindingContext bindingContext)
     

    Methods inherited from class dev.metaschema.cli.processor.command.AbstractCommandExecutor

    getCallingContext, getCommand, getCommandLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dev.metaschema.databind.IBindingContext.ISchemaValidationProvider

    validateWithSchema
  • Constructor Details

    • OscalValidationCommandExecutor

      protected OscalValidationCommandExecutor(@NonNull dev.metaschema.cli.processor.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

      protected dev.metaschema.databind.IBindingContext getBindingContext(@NonNull Set<dev.metaschema.core.model.constraint.IConstraintSet> constraintSets)
    • getXmlSchemas

      @NonNull public dev.metaschema.core.model.validation.XmlSchemaContentValidator getXmlSchemas(URL targetResource, dev.metaschema.databind.IBindingContext bindingContext) throws IOException, SAXException
      Specified by:
      getXmlSchemas in interface dev.metaschema.databind.IBindingContext.ISchemaValidationProvider
      Throws:
      IOException
      SAXException
    • getJsonSchema

      @NonNull public dev.metaschema.core.model.validation.JsonSchemaContentValidator getJsonSchema(org.json.JSONObject json, dev.metaschema.databind.IBindingContext bindingContext) throws IOException
      Specified by:
      getJsonSchema in interface dev.metaschema.databind.IBindingContext.ISchemaValidationProvider
      Throws:
      IOException
    • getSchemaValidationProvider

      @NonNull protected dev.metaschema.databind.IBindingContext.ISchemaValidationProvider getSchemaValidationProvider(@NonNull dev.metaschema.core.model.IModule module, @NonNull org.apache.commons.cli.CommandLine commandLine, @NonNull dev.metaschema.databind.IBindingContext bindingContext)
    • getModule

      protected dev.metaschema.core.model.IModule getModule(org.apache.commons.cli.CommandLine commandLine, dev.metaschema.databind.IBindingContext bindingContext) throws dev.metaschema.cli.processor.command.CommandExecutionException
      Throws:
      dev.metaschema.cli.processor.command.CommandExecutionException