Class CommandLine

    • Constructor Detail

      • CommandLine

        public CommandLine()
        constructor
    • Method Detail

      • getRequiredArguments

        public Collection getRequiredArguments()
        Returns:
        required arguments
      • getRequiredOptions

        public Collection getRequiredOptions()
        Returns:
        required options
      • getDescription

        public String getDescription()
        Returns:
        the description.
      • getLocalizedDescription

        public String getLocalizedDescription()
        Returns:
        the localized description.
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - The description to set
      • getFlags

        public Map getFlags()
        Returns:
        the flags
      • setFlags

        public void setFlags​(Map flags)
        Parameters:
        flags - The flags to set
      • getImpl

        public String getImpl()
        Returns:
        the impl
      • setImpl

        public void setImpl​(String impl)
        Parameters:
        impl - The impl to set
      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getOptions

        public Map getOptions()
        Returns:
        the options
      • setOptions

        public void setOptions​(Map options)
        Parameters:
        options - the Options to set
      • getAllParameters

        public Iterator getAllParameters()
        Returns:
        all the parameters. i.e. args, options and flags.
      • getRequiredParameters

        public Iterator getRequiredParameters()
        Returns:
        the required parameters. i.e. args, options and flags.
      • addArgument

        public void addArgument​(Argument arg)
        Parameters:
        arg - the Argument to add
      • addOption

        public void addOption​(Option opt)
        Parameters:
        opt - the Option to add
      • addFlag

        public void addFlag​(Flag flag)
        Parameters:
        flag - the Flag to add
      • getArguments

        public Map getArguments()
        Returns:
        the arguments
      • setArguments

        public void setArguments​(Map arguments)
        Parameters:
        arguments - the arguments to set
      • getAlias

        public Collection getAlias()
        Returns:
        the alias
      • setAlias

        public void setAlias​(Collection alias)
        Parameters:
        alias - the alias to set
      • addAlias

        public void addAlias​(String alias)
        Parameters:
        alias - the alias to add