Class AbstractOscalValidationCommand
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand
gov.nist.secauto.oscal.tools.cli.core.commands.AbstractOscalValidationCommand
- All Implemented Interfaces:
gov.nist.secauto.metaschema.cli.processor.command.ICommand
- Direct Known Subclasses:
AbstractDeprecatedOscalValidationSubcommand
,ValidateCommand
public abstract class AbstractOscalValidationCommand
extends gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand
Used by implementing classes to provide an OSCAL content validation command.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Provides OSCAL validation command execution support.Nested classes/interfaces inherited from class gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand
gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand.AbstractValidationCommandExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract gov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidator
Load the OSCAL JSON schemas.protected abstract gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator
Load the OSCAL XML schemas.abstract gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
newExecutor
(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Methods inherited from class gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand
gatherOptions, getExtraArguments, getName
Methods inherited from class gov.nist.secauto.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 gov.nist.secauto.metaschema.cli.processor.command.ICommand
getDescription, getSubCommandByName, getSubCommands, isSubCommandRequired, validateExtraArguments, validateOptions
-
Constructor Details
-
AbstractOscalValidationCommand
public AbstractOscalValidationCommand()
-
-
Method Details
-
getOscalXmlSchemas
@NonNull protected abstract gov.nist.secauto.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 gov.nist.secauto.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 gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor newExecutor(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)
-