gecco.util
Class CommandLineProperties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--gecco.util.CommandLineProperties
All Implemented Interfaces:
Cloneable, Map, Serializable

public class CommandLineProperties
extends Properties

Description of the Class

Author:
Karl Hasselström
See Also:
Serialized Form

Inner classes inherited from class java.util.Map
Map.Entry
 
Fields inherited from class java.util.Properties
defaults, hexDigit, keyValueSeparators, serialVersionUID, specialSaveChars, strictKeyValueSeparators, whiteSpaceChars
 
Fields inherited from class java.util.Hashtable
count, emptyEnumerator, emptyIterator, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, table, threshold, values, VALUES
 
Constructor Summary
CommandLineProperties()
          Constructor for the CommandLineProperties object
CommandLineProperties(String[] args)
          Constructor for the CommandLineProperties object
 
Method Summary
 double getDoubleProperty(String key, double defaultVal)
          Gets the DoubleProperty attribute of the CommandLineProperties object
 int getIntProperty(String key, int defaultVal)
          Gets the IntProperty attribute of the CommandLineProperties object
 int getStringProperty(String key, String defaultVal)
          Gets the StringProperty attribute of the CommandLineProperties object
 void loadCommandLine(String[] args)
          Description of the Method
 
Methods inherited from class java.util.Properties
, continueLine, enumerate, getProperty, getProperty, list, list, load, loadConvert, propertyNames, save, saveConvert, setProperty, store, toHex, writeln
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, getEnumeration, getIterator, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, toString, values, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

CommandLineProperties

public CommandLineProperties()
Constructor for the CommandLineProperties object

CommandLineProperties

public CommandLineProperties(String[] args)
Constructor for the CommandLineProperties object
Parameters:
args - Description of Parameter
Method Detail

getDoubleProperty

public double getDoubleProperty(String key,
                                double defaultVal)
Gets the DoubleProperty attribute of the CommandLineProperties object
Parameters:
key - Description of Parameter
defaultVal - Description of Parameter
Returns:
The DoubleProperty value

getIntProperty

public int getIntProperty(String key,
                          int defaultVal)
Gets the IntProperty attribute of the CommandLineProperties object
Parameters:
key - Description of Parameter
defaultVal - Description of Parameter
Returns:
The IntProperty value

getStringProperty

public int getStringProperty(String key,
                             String defaultVal)
Gets the StringProperty attribute of the CommandLineProperties object
Parameters:
key - Description of Parameter
defaultVal - Description of Parameter
Returns:
The StringProperty value

loadCommandLine

public void loadCommandLine(String[] args)
Description of the Method
Parameters:
args - Description of Parameter