Class CommonCommands2

    • Field Detail

      • placeHolder

        public String placeHolder
        This is used wherever a missing value is.
    • Constructor Detail

      • CommonCommands2

        public CommonCommands2​(CLIDriver driver)
    • Method Detail

      • isThrowExceptions

        public boolean isThrowExceptions()
        In methods that take an InputLine, throw and exception rather than report one to the command line. This is set to true only if this is being used an a utility in another setting, rather than interactively. There is consequently no way for a user to touch this from the command line.
        Returns:
      • setThrowExceptions

        public void setThrowExceptions​(boolean throwExceptions)
      • sayii

        protected void sayii​(String x)
        Double indent -- useful for lists.
        Parameters:
        x -
      • say2

        protected void say2​(String x)
        Output the string without any linefeed. This is used for prompts.
        Parameters:
        x -
      • isEmpty

        protected boolean isEmpty​(String x)
      • getPlaceHolder

        public String getPlaceHolder()
        Gets the placeholder for missing values. E.g. if a value (like a last name) is missing this will be displayed.
        Returns:
      • setPlaceHolder

        public void setPlaceHolder​(String placeHolder)
      • getValue

        protected String getValue​(String x)
        Returns the value if it is not empty of a placeholder if it is.
        Parameters:
        x -
        Returns:
      • isVerbose

        public boolean isVerbose()
      • setVerboseHelp

        protected void setVerboseHelp()
      • set_verbose_on

        public void set_verbose_on​(InputLine inputLine)
                            throws Exception
        So batch files can change whether or not they are verbose
        Parameters:
        inputLine -
        Throws:
        Exception
      • setOutputOnHelp

        protected void setOutputOnHelp()
      • versionHelp

        protected void versionHelp()
      • version

        public void version​(InputLine inputLine)