org.itc.irst.tcc.sre
Class CommandLineParameters

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by org.itc.irst.tcc.sre.CommandLineParameters
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

 class CommandLineParameters
extends java.util.Properties


Field Summary
(package private) static org.apache.log4j.Logger logger
          Define a static logger variable so that it references the Logger instance named CommandLineParameters.
private static CommandLineParameters parameter
          A prototype for a global context such that only one instance class can ever exist.
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
private CommandLineParameters()
           
 
Method Summary
private static java.lang.String getHelp()
          Returns a command-line help.
static CommandLineParameters getInstance()
          Returns CommandLineParameters object; only one CommandLineParameters instance can exist.
 void parse(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
Define a static logger variable so that it references the Logger instance named CommandLineParameters.


parameter

private static CommandLineParameters parameter
A prototype for a global context such that only one instance class can ever exist.

Constructor Detail

CommandLineParameters

private CommandLineParameters()
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

parse

public void parse(java.lang.String[] args)

getHelp

private static java.lang.String getHelp()
Returns a command-line help. return a command-line help.


toString

public java.lang.String toString()
Overrides:
toString in class java.util.Hashtable<java.lang.Object,java.lang.Object>

getInstance

public static CommandLineParameters getInstance()
                                         throws java.io.IOException
Returns CommandLineParameters object; only one CommandLineParameters instance can exist.

Returns:
CommandLineParameters object
Throws:
java.io.IOException