|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.llnl.babel.UserOptions
UserOptions
is a singleton class that manages the
wide variety of settings available to a user. The configuration
options are read in through an array of strings (args). Newly
specified arguments always replace the values of the previously
specified ones with the exception of the repository path where
new arguments are appended to the existing list.
Constructor Summary | |
protected |
UserOptions()
Since this is a singleton class, the constructor is protected. |
Method Summary | |
boolean |
canProceed()
Check if the user options indicate processing can continue. |
static UserOptions |
getInstance()
Return the singleton instance of the user options. |
static void |
main(java.lang.String[] args)
Used for testing purposes only! |
int |
parseCommandlineOptions(BabelConfiguration theConfig,
java.lang.String[] args)
Extract options from the command line. |
void |
printUsage()
Print the command line options and contact information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected UserOptions()
Method Detail |
public static UserOptions getInstance()
public int parseCommandlineOptions(BabelConfiguration theConfig, java.lang.String[] args)
args
- String array of command line arguments.
public void printUsage()
public boolean canProceed()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |