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 ClassesModifier and TypeClassDescriptionprotected classProvides 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract dev.metaschema.core.model.validation.JsonSchemaContentValidatorLoad the OSCAL JSON schemas.protected abstract dev.metaschema.core.model.validation.XmlSchemaContentValidatorLoad the OSCAL XML schemas.abstract dev.metaschema.cli.processor.command.ICommandExecutornewExecutor(dev.metaschema.cli.processor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Methods inherited from class dev.metaschema.cli.commands.AbstractValidateContentCommand
gatherOptions, getExtraArguments, getNameMethods inherited from class dev.metaschema.cli.processor.command.AbstractTerminalCommand
getCurrentWorkingDirectory, resolveAgainstCWD, resolveAgainstCWD, resolveAgainstCWDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.cli.processor.command.ICommand
getDescription, getSubCommandByName, getSubCommands, isSubCommandRequired, validateExtraArguments, validateOptions
-
Constructor Details
-
AbstractOscalValidationCommand
public AbstractOscalValidationCommand()
-
-
Method Details
-
getOscalXmlSchemas
@NonNull protected abstract dev.metaschema.core.model.validation.XmlSchemaContentValidator getOscalXmlSchemas() throws IOExceptionLoad 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 IOExceptionLoad 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)
-