CmdLine with Argument and Config Options
I. Description
This class extends the CmdLine (basic) class to provide basic function of interactive interface for command line tool and read information from command line arguments and configuration file. This class provides following default argument options:The following steps are needed to use this class:
import gov.nih.nlm.nls.stmt.CmdLine.*;
import gov.nih.nlm.nls.stmt.Lib.*;
import gov.nih.nlm.nls.lvg.CmdLineSyntax.*;
public class YourClass extends CmdLineArgsConfig
YourClass yourClass = new YourClass();
yourClass.Run(args);
protected void InitLocalObjs()
protected void SetToolInfo()
protected void CloseLocalObjs()
protected void ProcessLine(String line)
protected String SetLocalFlagStr()
protected void SetLocalOptions()
protected void ExecuteLocalOption(OptionItem nameItem)
protected void SetLocalDefaultOption()
II. Main Algorithm
protected boolean PreProcess(String[] args)
=> Similar to CmdLineArgs
protected void Process()
=> Same as CmdLine
protected void PostProcess()
=> Same as CmdLine
protected void HelpMenu()
III. Abstract Methods
protected void InitLocalObjs()
protected void SetToolInfo()
protected void CloseLocalObjs()
protected void ProcessLine(String line)
protected String SetLocalFlagStr()
protected void SetLocalOptions()
protected void ExecuteLocalOption(OptionItem nameItem)
protected void SetLocalDefaultOption()