Class SessionCommandBuilder.CommandLineBuilderWithMandatoryParameters

    • Method Detail

      • collectArguments

        protected List<String> collectArguments()
        Collects arguments.
        Returns:
        A list of initial arguments, argument represented by this builder (if not null) and any registered options. Never null.
      • getThisArgument

        protected abstract String getThisArgument()
        Gets name of the argument represented by this builder.
        Returns:
        Name of the argument or null if no argument is to be added by the builder itself.
      • addOption

        protected void addOption​(String option)
        Adds an option to this builder.
        Parameters:
        option - An option to be added to the argument represented by this builder. Must not be null.
      • getInitialArguments

        protected List<String> getInitialArguments()
        Gets initial arguments.
        Returns:
        List of initial arguments that come before arguments added by this builder. Never null.
      • getOptionsForThisArgument

        protected List<String> getOptionsForThisArgument()
        Gets options for added to this builder.
        Returns:
        List of options that were added to this builder or an empty list if there are no options for this argument. Never null.