LVG - API
Java Class Api - LvgCmdApi( )
command line/text output
String optionStr = new String("...."); // define the option string LvgCmdApi lvg = new LvgCmdApi(optionStr); // instantiate the LvgCmdApi or String optionStr = new String("...."); // define the option string LvgCmdApi lvg = new LvgCmdApi( ); // instantiate the LvgCmdApi lvg.SetOption(optionStr); // set the option
lvg.SetPromptStr(promptStr); // Set the prompt string lvg.SetQuitStrList(quitStrList); // Set quit string lvg.IsLegalOption( ); // check if the option is legal lvg.PrintLvgHelp( ); // Print out LVg help menu
lvg.ProcessLine(term); // Mutate the input term with interface prompt
lvg.Mutate(term); // Mutate the input term
A CleanUp( ) method must be called after using LvgCmdApi to disconnect database and close persistant tries.
lvg.CleanUp( ); // Close database and files
Two sample programs were developed to illustrate above usage.