Module dev.metaschema.cli
Package dev.metaschema.cli.commands
Class ConvertContentUsingModuleCommand
java.lang.Object
dev.metaschema.cli.processor.command.AbstractTerminalCommand
dev.metaschema.cli.commands.AbstractConvertSubcommand
dev.metaschema.cli.commands.ConvertContentUsingModuleCommand
- All Implemented Interfaces:
ICommand
This command implementation supports the conversion of a content instance
between supported formats based on a provided Metaschema module.
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.metaschema.cli.commands.AbstractConvertSubcommand
AbstractConvertSubcommand.AbstractConversionCommandExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.apache.commons.cli.Option>Used to gather options directly associated with this command.Get a description of what the command does.getName()Get the name of the command.newExecutor(CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Create a new executor for this command.Methods inherited from class dev.metaschema.cli.commands.AbstractConvertSubcommand
getExtraArgumentsMethods inherited from class dev.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 dev.metaschema.cli.processor.command.ICommand
getSubCommandByName, getSubCommands, isSubCommandRequired, validateExtraArguments, validateOptions
-
Constructor Details
-
ConvertContentUsingModuleCommand
public ConvertContentUsingModuleCommand()
-
-
Method Details
-
getName
Description copied from interface:ICommandGet the name of the command.This name is used to call the command as a command line argument.
- Specified by:
getNamein interfaceICommand- Overrides:
getNamein classAbstractConvertSubcommand- Returns:
- the command's name
-
getDescription
Description copied from interface:ICommandGet a description of what the command does.This description is displayed in help output.
- Returns:
- the description
-
gatherOptions
Description copied from interface:ICommandUsed to gather options directly associated with this command.- Specified by:
gatherOptionsin interfaceICommand- Overrides:
gatherOptionsin classAbstractConvertSubcommand- Returns:
- the options
-
newExecutor
public ICommandExecutor newExecutor(CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine) Description copied from interface:ICommandCreate a new executor for this command.- Parameters:
callingContext- the context of the command executioncommandLine- the parsed command line details- Returns:
- the executor
-