com.valhalla.settings
Class Arguments

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

public class Arguments
extends java.util.Properties

This is a singleton class. setArguments can only be called once. It can only have one reference to it, which is created inside the class.

Version:
1.0
Author:
Adam Olsen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Method Summary
 boolean getBoolean(java.lang.String key)
           
static Arguments getInstance()
          Gets the Arguments instance
static void setArguments(java.lang.String[] args)
          Initializes the arguments class with the CLI arguments
 
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, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setArguments

public static void setArguments(java.lang.String[] args)
Initializes the arguments class with the CLI arguments

Parameters:
args - to be passed in from main( String args )

getInstance

public static Arguments getInstance()
Gets the Arguments instance

Returns:
the Arguments instance

getBoolean

public boolean getBoolean(java.lang.String key)