CmdLine with Config Option
I. Description
This class extends the CmdLine (basic) class to provide basic function of interactive interface for command line tool and read information from a configuration file. By default, this class can take 0 or 1 arguments:The following steps are needed to use this class:
import gov.nih.nlm.nls.stmt.CmdLine.*;
import gov.nih.nlm.nls.stmt.Lib.*;
public class YourClass extends CmdLineConfig
YourClass yourClass = new YourClass();
yourClass.Run(args);
protected void InitLocalObjs()
protected void SetToolInfo()
protected void CloseLocalObjs()
protected void ProcessLine(String line)
II. Main Algorithm
protected boolean PreProcess(String[] args)
protected void Process()
=> Same as CmdLine
protected void PostProcess()
=> Same as CmdLine
protected void HelpMenu()
III. Abstract Methods
protected abstract void InitLocalObjs();
protected abstract void SetToolInfo();
protected abstract void ProcessLine(String line);
protected abstract void CloseLocalObjs();