Class AbstractRenderSubcommand
- java.lang.Object
-
- gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
-
- gov.nist.secauto.oscal.tools.cli.core.commands.AbstractRenderSubcommand
-
- All Implemented Interfaces:
gov.nist.secauto.metaschema.cli.processor.command.ICommand
- Direct Known Subclasses:
RenderSubcommand
,RenderSubcommand
public abstract class AbstractRenderSubcommand extends gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
-
-
Constructor Summary
Constructors Constructor Description AbstractRenderSubcommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected gov.nist.secauto.metaschema.cli.processor.ExitStatus
executeCommand(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
Collection<? extends org.apache.commons.cli.Option>
gatherOptions()
List<gov.nist.secauto.metaschema.cli.processor.command.ExtraArgument>
getExtraArguments()
String
getName()
gov.nist.secauto.metaschema.cli.processor.command.ICommandExecutor
newExecutor(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
protected abstract void
performRender(Path input, Path result)
void
validateOptions(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
-
Methods inherited from class gov.nist.secauto.metaschema.cli.processor.command.AbstractTerminalCommand
getSubCommands, isSubCommandRequired, resolvePathAgainstCWD
-
-
-
-
Constructor Detail
-
AbstractRenderSubcommand
public AbstractRenderSubcommand()
-
-
Method Detail
-
gatherOptions
public Collection<? extends org.apache.commons.cli.Option> gatherOptions()
-
getExtraArguments
public List<gov.nist.secauto.metaschema.cli.processor.command.ExtraArgument> getExtraArguments()
-
validateOptions
public void validateOptions(gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) throws gov.nist.secauto.metaschema.cli.processor.InvalidArgumentException
- Throws:
gov.nist.secauto.metaschema.cli.processor.InvalidArgumentException
-
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 cmdLine)
-
executeCommand
protected gov.nist.secauto.metaschema.cli.processor.ExitStatus executeCommand(@NonNull gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine cmdLine)
-
performRender
protected abstract void performRender(Path input, Path result) throws IOException, TransformerException
- Throws:
IOException
TransformerException
-
-