Class AbstractValidateContentCommand.AbstractValidationCommandExecutor
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.AbstractCommandExecutor
gov.nist.secauto.metaschema.cli.commands.AbstractValidateContentCommand.AbstractValidationCommandExecutor
- All Implemented Interfaces:
ICommandExecutor
,IBindingContext.ISchemaValidationProvider
- Enclosing class:
- AbstractValidateContentCommand
protected abstract class AbstractValidateContentCommand.AbstractValidationCommandExecutor
extends AbstractCommandExecutor
implements IBindingContext.ISchemaValidationProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
ICommandExecutor.ExecutionFunction
-
Constructor Summary
ConstructorDescriptionAbstractValidationCommandExecutor
(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Construct a new command executor. -
Method Summary
Modifier and TypeMethodDescriptionexecute()
protected abstract IBindingContext
getBindingContext
(Set<gov.nist.secauto.metaschema.core.model.constraint.IConstraintSet> constraintSets) Get the binding context to use for data processing.Methods inherited from class gov.nist.secauto.metaschema.cli.processor.command.AbstractCommandExecutor
getCallingContext, getCommand, getCommandLine
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.databind.IBindingContext.ISchemaValidationProvider
getJsonSchema, getXmlSchemas, validateWithSchema
-
Constructor Details
-
AbstractValidationCommandExecutor
public AbstractValidationCommandExecutor(@NonNull CLIProcessor.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
@NonNull protected abstract IBindingContext getBindingContext(@NonNull Set<gov.nist.secauto.metaschema.core.model.constraint.IConstraintSet> constraintSets) throws gov.nist.secauto.metaschema.core.model.MetaschemaException, IOException Get the binding context to use for data processing.- Parameters:
constraintSets
- the constraints to configure in the resulting binding context- Returns:
- the context
- Throws:
gov.nist.secauto.metaschema.core.model.MetaschemaException
- if a Metaschema error occurredIOException
- if an error occurred while reading data
-
execute
- Specified by:
execute
in interfaceICommandExecutor
- Specified by:
execute
in classAbstractCommandExecutor
-