edu.stanford.hci.r3.config
Class Configuration
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
edu.stanford.hci.r3.config.Configuration
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
public class Configuration
- extends java.util.Properties
The design of this configuration scheme was informed by Jeff Heer's prefuse code. It is incomplete, but
when properly implemented, it will allow a user of this toolkit to retrieve resources from the JAR, and
customize the operation of the toolkit with one or more config files.
This software is distributed under the BSD License.
- See Also:
- Serialized Form
| Fields inherited from class java.util.Properties |
defaults |
|
Method Summary |
static java.io.File |
getConfigFile(java.lang.String configFileKey)
TODO: Works for now, but won't work once we package it in a JAR. |
static java.util.Properties |
getPropertiesFromConfigFile(java.lang.String configFileKey)
|
static java.lang.String |
getPropertyFromConfigFile(java.lang.String propertyName,
java.lang.String configFileKey)
|
| Methods inherited from class java.util.Properties |
getProperty, 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, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
getConfigFile
public static java.io.File getConfigFile(java.lang.String configFileKey)
- TODO: Works for now, but won't work once we package it in a JAR.
- Parameters:
configFileKey -
- Returns:
getPropertiesFromConfigFile
public static java.util.Properties getPropertiesFromConfigFile(java.lang.String configFileKey)
- Parameters:
configFileKey -
- Returns:
getPropertyFromConfigFile
public static java.lang.String getPropertyFromConfigFile(java.lang.String propertyName,
java.lang.String configFileKey)
- Parameters:
propertyName - configFileKey -
- Returns: