net.firstpartners.nounit.ui.common
Class CommandPackage

java.lang.Object
  |
  +--net.firstpartners.nounit.ui.common.AbstractPackage
        |
        +--net.firstpartners.nounit.ui.common.CommandPackage

public class CommandPackage
extends AbstractPackage

Holds all the relevant information from Command Line / Gui so that the bulk of the system does not have to use these objects.
Enables system to be developed and run independently as Command_line, Gui , Web Server etc
The naming convention is that any constant beginning with "KEY..."


Field Summary
static java.lang.String OUTPUT_DIR
          Output directory
static java.lang.String REPORT_CLASS
          Report Class
static java.lang.String START_DIR
          Start directory (Base Directory of Project)
static java.lang.String USER_MESSAGE
          Message to be shown to the user
 
Fields inherited from class net.firstpartners.nounit.ui.common.AbstractPackage
innerValuePairs
 
Constructor Summary
CommandPackage()
          Default constructor
CommandPackage(java.lang.String[] inValues)
          Constructor that adds an Array of Value pairs , after initialising with defaults.
 
Method Summary
 java.lang.String toString()
          Overridden toString function to provide summary of info held in this class
 
Methods inherited from class net.firstpartners.nounit.ui.common.AbstractPackage
addAdditionalValue, addIfEmpty, addValue, addValue, addValues, addValues, getInt, getStoreNames, getString, getValue, getValuePairs, getVector, move, printToOutputStream, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

START_DIR

public static final java.lang.String START_DIR
Start directory (Base Directory of Project)

OUTPUT_DIR

public static final java.lang.String OUTPUT_DIR
Output directory

REPORT_CLASS

public static final java.lang.String REPORT_CLASS
Report Class

USER_MESSAGE

public static final java.lang.String USER_MESSAGE
Message to be shown to the user
Constructor Detail

CommandPackage

public CommandPackage()
Default constructor

CommandPackage

public CommandPackage(java.lang.String[] inValues)
Constructor that adds an Array of Value pairs , after initialising with defaults.
Package Level Access - Factory method in this package should call!!
Parameters:
inValues - - Array to add to Value pairs e.g. key1 , value1, key2 , value2
Throws:
NoUnitException - if Values are incompatible with what needs to be stored
Method Detail

toString

public java.lang.String toString()
Overridden toString function to provide summary of info held in this class
Overrides:
toString in class AbstractPackage
Returns:
String description of internal values