Java Class Api - LvgLexItemApi( )
command line/Vector of LexItems output
String optionStr = new String("...."); // define the option string LvgLexItemApi lvg = new LvgLexItemApi(optionStr); // instantiate the LvgCmdApi or String optionStr = new String("...."); // define the option string LvgLexItemApi lvg = new LvgLexItemApi( ); // 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.ProcessLineLexItem(String); // Mutate the input term with interface prompt
lvg.MutateLexItem(String); // Mutate the input term
lvg.ProcessLexItem(LexItem); // Mutate an input LexItem
lvg.ProcessLexItems(Vector); // Mutate the input term
lvg.ProcessLexItemsFromFCO(Vector); // 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
Sample programs were developed to illustrate above usage.