Class CompositeCommandFactory

    • Constructor Detail

      • CompositeCommandFactory

        public CompositeCommandFactory​(java.lang.String programCallString,
                                       java.util.List<ICommandFactory> factories)
        Constructor.
        Parameters:
        factories - An ordered list of factories this factory composites.
    • Method Detail

      • getKnownCommands

        public java.util.List<java.lang.String> getKnownCommands()
        Description copied from interface: ICommandFactory
        List all the commands supported by this command factory (not including help).
      • getHelpCommand

        public ICommand getHelpCommand()
        Description copied from interface: ICommandFactory
        Get the help command.
      • tryCommandForName

        public ICommand tryCommandForName​(java.lang.String name)
        Description copied from interface: ICommandFactory
        Find the command that matches the name.