Class AbstractOscalValidationCommand.OscalValidationCommandExecutor
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractCommandExecutor
gov.nist.secauto.oscal.tools.cli.core.commands.AbstractOscalValidationCommand.OscalValidationCommandExecutor
- All Implemented Interfaces:
gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
,gov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider
- Enclosing class:
- AbstractOscalValidationCommand
protected class AbstractOscalValidationCommand.OscalValidationCommandExecutor
extends gov.nist.secauto.metaschema.cli.processor.command.AbstractCommandExecutor
implements gov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider
Provides OSCAL validation command execution support.
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor.ExecutionFunction
-
Constructor Summary
ModifierConstructorDescriptionprotected
OscalValidationCommandExecutor
(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Construct a new command executor. -
Method Summary
Modifier and TypeMethodDescriptionprotected gov.nist.secauto.metaschema.databind.IBindingContext
getBindingContext
(Set<gov.nist.secauto.metaschema.core.model.constraint.IConstraintSet> constraintSets) gov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidator
getJsonSchema
(org.json.JSONObject json, gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) protected gov.nist.secauto.metaschema.core.model.IModule
getModule
(org.apache.commons.cli.CommandLine commandLine, gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) protected gov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider
getSchemaValidationProvider
(gov.nist.secauto.metaschema.core.model.IModule module, org.apache.commons.cli.CommandLine commandLine, gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator
getXmlSchemas
(URL targetResource, gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) Methods inherited from class gov.nist.secauto.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 gov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider
validateWithSchema
-
Constructor Details
-
OscalValidationCommandExecutor
protected OscalValidationCommandExecutor(@NonNull gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine commandLine) Construct a new command executor.- Parameters:
callingContext
- the context of the command executioncommandLine
- the parsed command line details
-
-
Method Details
-
getBindingContext
protected gov.nist.secauto.metaschema.databind.IBindingContext getBindingContext(@NonNull Set<gov.nist.secauto.metaschema.core.model.constraint.IConstraintSet> constraintSets) -
getXmlSchemas
@NonNull public gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator getXmlSchemas(URL targetResource, gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) throws IOException, SAXException - Specified by:
getXmlSchemas
in interfacegov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider
- Throws:
IOException
SAXException
-
getJsonSchema
@NonNull public gov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidator getJsonSchema(org.json.JSONObject json, gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) throws IOException - Specified by:
getJsonSchema
in interfacegov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider
- Throws:
IOException
-
getSchemaValidationProvider
@NonNull protected gov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider getSchemaValidationProvider(@NonNull gov.nist.secauto.metaschema.core.model.IModule module, @NonNull org.apache.commons.cli.CommandLine commandLine, @NonNull gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) -
getModule
protected gov.nist.secauto.metaschema.core.model.IModule getModule(org.apache.commons.cli.CommandLine commandLine, gov.nist.secauto.metaschema.databind.IBindingContext bindingContext) throws gov.nist.secauto.metaschema.cli.processor.command.CommandExecutionException - Throws:
gov.nist.secauto.metaschema.cli.processor.command.CommandExecutionException
-