Class ValidateCommand
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
gov.nist.secauto.oscal.tools.cli.core.commands.ValidateCommand
- All Implemented Interfaces:
gov.nist.secauto.metaschema.cli.processor.command.ICommand
A CLI command that supports validating that an OSCAL instance is valid.
-
Nested Class Summary
Nested classes/interfaces inherited from class gov.nist.secauto.oscal.tools.cli.core.commands.AbstractOscalValidationCommand
AbstractOscalValidationCommand.OscalValidationCommandExecutor
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 TypeMethodDescriptiongov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidator
Load the OSCAL JSON schemas.gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator
Load the OSCAL XML schemas.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
getSubCommandByName, getSubCommands, isSubCommandRequired, validateExtraArguments, validateOptions
-
Constructor Details
-
ValidateCommand
public ValidateCommand()
-
-
Method Details
-
getDescription
-
newExecutor
public gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor newExecutor(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) - Specified by:
newExecutor
in interfacegov.nist.secauto.metaschema.cli.processor.command.ICommand
- Specified by:
newExecutor
in classAbstractOscalValidationCommand
-
getOscalXmlSchemas
@NonNull public gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator getOscalXmlSchemas() throws IOExceptionDescription copied from class:AbstractOscalValidationCommand
Load the OSCAL XML schemas.- Specified by:
getOscalXmlSchemas
in classAbstractOscalValidationCommand
- Returns:
- the XML schema validator instance
- Throws:
IOException
- if an error occurred while parsing the provided XML schemas
-
getOscalJsonSchema
@NonNull public gov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidator getOscalJsonSchema() throws IOExceptionDescription copied from class:AbstractOscalValidationCommand
Load the OSCAL JSON schemas.- Specified by:
getOscalJsonSchema
in classAbstractOscalValidationCommand
- Returns:
- the XML schema validator instance
- Throws:
IOException
- if an error occurred while parsing the provided XML schemas
-