Class SolutionGenerator


  • public class SolutionGenerator
    extends deltix.util.cmdline.AbstractShell
    • Field Summary

      • Fields inherited from class deltix.util.cmdline.AbstractShell

        STDIN_FILEID
      • Fields inherited from class deltix.util.cmdline.DefaultApplication

        errWriter, outWriter
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SolutionGenerator​(java.lang.String[] args)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addProperties​(java.util.List<Property> properties, java.io.LineNumberReader reader, java.util.Properties toAdd)  
      protected void addPropertiesFromArgs​(java.util.List<Property> properties, java.util.Properties toAdd)  
      protected void addPropertiesFromSet​(java.util.List<Property> list, java.util.Properties toAdd)  
      protected boolean buildProject()  
      protected boolean doCommand​(java.lang.String key, java.lang.String args, java.lang.String fileId, java.io.LineNumberReader rd)  
      protected void doSet()  
      protected boolean doSet​(java.lang.String option, java.lang.String value)  
      protected java.util.Properties getCustomPropertiesFromUser​(java.io.LineNumberReader reader)  
      protected boolean getYesOrNo​(java.lang.String question, boolean defaultAnswer, java.io.LineNumberReader reader)  
      static void main​(java.lang.String[] args)  
      protected java.util.List<java.lang.String> multiSelect​(java.lang.String question, java.util.List<java.lang.String> options, java.io.LineNumberReader reader, boolean couldBeEmpty)  
      protected void run()  
      protected int select​(java.lang.String question, java.util.List<java.lang.String> options, java.io.LineNumberReader reader)  
      • Methods inherited from class deltix.util.cmdline.AbstractShell

        confirm, doCommand, doExec, doQuit, error, error, expandPath, getConfirm, getErrorCode, getExitOnError, getKey, getPrompt, runCommand, runScript, set, setConfirm, setErrorCode, setExitOnError
      • Methods inherited from class deltix.util.cmdline.DefaultApplication

        createDateFormat, createDecimalFormat, findArg, getArgs, getArgValue, getArgValue, getArgValues, getDateArg, getDateFormatSpec, getDefaultDateFormat, getDefaultTimeZone, getDoubleArgValue, getFileArg, getFileArgs, getIntArgValue, getLongArgValue, getMandatoryArgValue, getMandatoryFileArg, getTimeZone, handleException, isArgSpecified, parseDateTime, printException, printException, printUsage, printUsage, printUsageAndExit, start
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolutionGenerator

        protected SolutionGenerator​(java.lang.String[] args)
    • Method Detail

      • buildProject

        protected boolean buildProject()
                                throws deltix.qsrv.solgen.SolutionGenerator.ValidationException,
                                       java.io.IOException
        Throws:
        deltix.qsrv.solgen.SolutionGenerator.ValidationException
        java.io.IOException
      • run

        protected void run()
                    throws java.lang.Throwable
        Overrides:
        run in class deltix.util.cmdline.AbstractShell
        Throws:
        java.lang.Throwable
      • doSet

        protected boolean doSet​(java.lang.String option,
                                java.lang.String value)
                         throws java.lang.Exception
        Overrides:
        doSet in class deltix.util.cmdline.AbstractShell
        Throws:
        java.lang.Exception
      • doSet

        protected void doSet()
        Overrides:
        doSet in class deltix.util.cmdline.AbstractShell
      • doCommand

        protected boolean doCommand​(java.lang.String key,
                                    java.lang.String args,
                                    java.lang.String fileId,
                                    java.io.LineNumberReader rd)
                             throws java.lang.Exception
        Overrides:
        doCommand in class deltix.util.cmdline.AbstractShell
        Throws:
        java.lang.Exception
      • addPropertiesFromArgs

        protected void addPropertiesFromArgs​(java.util.List<Property> properties,
                                             java.util.Properties toAdd)
                                      throws deltix.qsrv.solgen.SolutionGenerator.ValidationException
        Throws:
        deltix.qsrv.solgen.SolutionGenerator.ValidationException
      • addPropertiesFromSet

        protected void addPropertiesFromSet​(java.util.List<Property> list,
                                            java.util.Properties toAdd)
                                     throws deltix.qsrv.solgen.SolutionGenerator.ValidationException
        Throws:
        deltix.qsrv.solgen.SolutionGenerator.ValidationException
      • addProperties

        protected void addProperties​(java.util.List<Property> properties,
                                     java.io.LineNumberReader reader,
                                     java.util.Properties toAdd)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • multiSelect

        protected java.util.List<java.lang.String> multiSelect​(java.lang.String question,
                                                               java.util.List<java.lang.String> options,
                                                               java.io.LineNumberReader reader,
                                                               boolean couldBeEmpty)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • select

        protected int select​(java.lang.String question,
                             java.util.List<java.lang.String> options,
                             java.io.LineNumberReader reader)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getYesOrNo

        protected boolean getYesOrNo​(java.lang.String question,
                                     boolean defaultAnswer,
                                     java.io.LineNumberReader reader)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getCustomPropertiesFromUser

        protected java.util.Properties getCustomPropertiesFromUser​(java.io.LineNumberReader reader)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)