phenote.main
Class CommandLine

java.lang.Object
  extended by phenote.main.CommandLine

public class CommandLine
extends java.lang.Object

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

options

com.townleyenterprises.command.CommandOption[] options
Constructor Detail

CommandLine

public CommandLine()
Method Detail

inst

public static CommandLine inst()

reset

public static void reset()

setArgs

public void setArgs(java.lang.String[] args)
             throws java.lang.Exception
Set command-line arguments passed along from main().

Parameters:
args - argStrings from command line
Throws:
java.lang.Exception

isInCommandLineMode

public static boolean isInCommandLineMode()
If input & output (or batch) is fully specified, then we are in command line mode; no need for GUI.


readIsSpecified

boolean readIsSpecified()
if read has been (correctly) specified, read adapter is non null


writeIsSpecified

boolean writeIsSpecified()

getReadAdapter

DataAdapterI getReadAdapter()
                      throws java.lang.Exception
If input/read was specified on the command line this returns the correctly-initialized read data adapter for it. Note that adapter returned may be the same object as that returned by getWriteAdapter()

Returns:
null if no read adapter specified on command line.
Throws:
java.lang.Exception

getWriteAdapter

DataAdapterI getWriteAdapter()
                       throws java.lang.Exception
If output/write was specified on the command line this returns the correctly-initialized write data adapter for it. Note that the adapter returned may be the same object as that returned by getReadAdapter()

Returns:
null if no read adapter specified on command line.
Throws:
java.lang.Exception

isLogSpecified

boolean isLogSpecified()

printHelp

void printHelp()