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.OscalValidationCommandExecutorNested classes/interfaces inherited from class gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand
gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand.AbstractValidationCommandExecutor - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongov.nist.secauto.metaschema.core.model.validation.JsonSchemaContentValidatorLoad the OSCAL JSON schemas.gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidatorLoad the OSCAL XML schemas.gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutornewExecutor(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, getNameMethods inherited from class gov.nist.secauto.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 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:
 newExecutorin interfacegov.nist.secauto.metaschema.cli.processor.command.ICommand- Specified by:
 newExecutorin classAbstractOscalValidationCommand
 - 
getOscalXmlSchemas
@NonNull public gov.nist.secauto.metaschema.core.model.validation.XmlSchemaContentValidator getOscalXmlSchemas() throws IOExceptionDescription copied from class:AbstractOscalValidationCommandLoad the OSCAL XML schemas.- Specified by:
 getOscalXmlSchemasin 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:AbstractOscalValidationCommandLoad the OSCAL JSON schemas.- Specified by:
 getOscalJsonSchemain classAbstractOscalValidationCommand- Returns:
 - the XML schema validator instance
 - Throws:
 IOException- if an error occurred while parsing the provided XML schemas
 
 -