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
ConstructorsModifierConstructorDescriptionprotectedOscalValidationCommandExecutor(dev.metaschema.cli.processor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Construct a new command executor. -
Method Summary
Modifier and TypeMethodDescriptionprotected dev.metaschema.databind.IBindingContextgetBindingContext(Set<dev.metaschema.core.model.constraint.IConstraintSet> constraintSets) dev.metaschema.core.model.validation.JsonSchemaContentValidatorgetJsonSchema(org.json.JSONObject json, dev.metaschema.databind.IBindingContext bindingContext) protected dev.metaschema.core.model.IModulegetModule(org.apache.commons.cli.CommandLine commandLine, dev.metaschema.databind.IBindingContext bindingContext) protected dev.metaschema.databind.IBindingContext.ISchemaValidationProvidergetSchemaValidationProvider(dev.metaschema.core.model.IModule module, org.apache.commons.cli.CommandLine commandLine, dev.metaschema.databind.IBindingContext bindingContext) dev.metaschema.core.model.validation.XmlSchemaContentValidatorgetXmlSchemas(URL targetResource, dev.metaschema.databind.IBindingContext bindingContext) Methods inherited from class dev.metaschema.cli.processor.command.AbstractCommandExecutor
getCallingContext, getCommand, getCommandLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 executioncommandLine- 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:
getXmlSchemasin interfacedev.metaschema.databind.IBindingContext.ISchemaValidationProvider- Throws:
IOExceptionSAXException
-
getJsonSchema
@NonNull public dev.metaschema.core.model.validation.JsonSchemaContentValidator getJsonSchema(org.json.JSONObject json, dev.metaschema.databind.IBindingContext bindingContext) throws IOException - Specified by:
getJsonSchemain interfacedev.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
-