org.itc.irst.tcc.sre
Class CommandLineParameter

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.CommandLineParameter
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

 class CommandLineParameter
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 CommandLineParameter.
private static CommandLineParameter 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 CommandLineParameter()
           
 
Method Summary
private static java.lang.String getHelp()
          Returns a command-line help.
static CommandLineParameter getInstance()
          Returns CommandLineParameter object; only one CommandLineParameter 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 CommandLineParameter.


parameter

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

Constructor Detail

CommandLineParameter

private CommandLineParameter()
                      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 CommandLineParameter getInstance()
                                        throws java.io.IOException
Returns CommandLineParameter object; only one CommandLineParameter instance can exist.

Returns:
CommandLineParameter object
Throws:
java.io.IOException