Class ConvertContentUsingModuleCommand

All Implemented Interfaces:
ICommand

public class ConvertContentUsingModuleCommand extends AbstractConvertSubcommand
This command implementation supports the conversion of a content instance between supported formats based on a provided Metaschema module.
  • Constructor Details

    • ConvertContentUsingModuleCommand

      public ConvertContentUsingModuleCommand()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ICommand
      Get the name of the command.

      This name is used to call the command as a command line argument.

      Specified by:
      getName in interface ICommand
      Overrides:
      getName in class AbstractConvertSubcommand
      Returns:
      the command's name
    • getDescription

      public String getDescription()
      Description copied from interface: ICommand
      Get a description of what the command does.

      This description is displayed in help output.

      Returns:
      the description
    • gatherOptions

      public Collection<? extends org.apache.commons.cli.Option> gatherOptions()
      Description copied from interface: ICommand
      Used to gather options directly associated with this command.
      Specified by:
      gatherOptions in interface ICommand
      Overrides:
      gatherOptions in class AbstractConvertSubcommand
      Returns:
      the options
    • newExecutor

      public ICommandExecutor newExecutor(CallingContext callingContext, org.apache.commons.cli.CommandLine commandLine)
      Description copied from interface: ICommand
      Create a new executor for this command.
      Parameters:
      callingContext - the context of the command execution
      commandLine - the parsed command line details
      Returns:
      the executor