|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.main.CommandLine
public class CommandLine
a lot of this is copied from apollo.main.CommandLine - theres potential for some generic super class but where would it go? in a jar file with one class? org.bdgp? I think this should be refactored, currently this actually fires off config parsing this should just keep all the command line state for main to query and use i dont think config parsing should happen here(?)
| Field Summary | |
|---|---|
(package private) com.townleyenterprises.command.CommandOption[] |
options
|
| Constructor Summary | |
|---|---|
CommandLine()
|
|
| Method Summary | |
|---|---|
(package private) DataAdapterI |
getReadAdapter()
If input/read was specified on the command line this returns the correctly-initialized read data adapter for it. |
(package private) DataAdapterI |
getWriteAdapter()
If output/write was specified on the command line this returns the correctly-initialized write data adapter for it. |
static CommandLine |
inst()
|
static boolean |
isInCommandLineMode()
If input & output (or batch) is fully specified, then we are in command line mode; no need for GUI. |
(package private) boolean |
isLogSpecified()
|
(package private) void |
printHelp()
|
(package private) boolean |
readIsSpecified()
if read has been (correctly) specified, read adapter is non null |
static void |
reset()
|
void |
setArgs(java.lang.String[] args)
Set command-line arguments passed along from main(). |
(package private) boolean |
writeIsSpecified()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
com.townleyenterprises.command.CommandOption[] options
| Constructor Detail |
|---|
public CommandLine()
| Method Detail |
|---|
public static CommandLine inst()
public static void reset()
public void setArgs(java.lang.String[] args)
throws java.lang.Exception
args - argStrings from command line
java.lang.Exceptionpublic static boolean isInCommandLineMode()
boolean readIsSpecified()
boolean writeIsSpecified()
DataAdapterI getReadAdapter()
throws java.lang.Exception
getWriteAdapter()
java.lang.Exception
DataAdapterI getWriteAdapter()
throws java.lang.Exception
getReadAdapter()
java.lang.Exceptionboolean isLogSpecified()
void printHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||