Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.
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();