de.jreality.util
Class ConfigurationAttributes
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
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
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 |
ConfigurationAttributes
public ConfigurationAttributes(Input input)
ConfigurationAttributes
public ConfigurationAttributes(Input input,
ConfigurationAttributes parent)
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)