de.jreality.util
Class ConfigurationAttributes

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

public class ConfigurationAttributes
extends java.util.Properties

This class is for managing configuration settings based on java.lang.Properties. The config file used is given as a system property, namely SystemProperties.CONFIG_SETTINGS. Currently only the de.jreality.portal-Package uses this class The properties file is given via the system property SystemProperties.CONFIG_SETTINGS, if not it is assumed to be SystemProperties.CONFIG_SETTINGS_DEFAULT (in the current directory).

Author:
weissman
See Also:
Serialized Form

Constructor Summary
ConfigurationAttributes(Input input)
           
ConfigurationAttributes(Input input, ConfigurationAttributes parent)
           
 
Method Summary
 boolean getBool(java.lang.String string)
           
static ConfigurationAttributes getDefaultConfiguration()
           
 double getDouble(java.lang.String key, double defVal)
           
 double[] getDoubleArray(java.lang.String key)
           
 int getInt(java.lang.String key)
           
 int getInt(java.lang.String key, int def)
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String[] getStringArray(java.lang.String key, java.lang.String delimiters)
           
 Matrix getTransformation(java.lang.String key)
           
 
Methods inherited from class java.util.Properties
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationAttributes

public ConfigurationAttributes(Input input)

ConfigurationAttributes

public ConfigurationAttributes(Input input,
                               ConfigurationAttributes parent)
Method Detail

getDefaultConfiguration

public static ConfigurationAttributes getDefaultConfiguration()

getBool

public boolean getBool(java.lang.String string)

getDouble

public double getDouble(java.lang.String key,
                        double defVal)

getDoubleArray

public double[] getDoubleArray(java.lang.String key)

getInt

public int getInt(java.lang.String key)

getInt

public int getInt(java.lang.String key,
                  int def)

getProperty

public java.lang.String getProperty(java.lang.String key)
Overrides:
getProperty in class java.util.Properties

getStringArray

public java.lang.String[] getStringArray(java.lang.String key,
                                         java.lang.String delimiters)

getTransformation

public Matrix getTransformation(java.lang.String key)