jInfer

cz.cuni.mff.ksi.jinfer.base.utils
Class ModuleProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by cz.cuni.mff.ksi.jinfer.base.utils.ModuleProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class ModuleProperties
extends Properties

Properties that extend standard Properties that prefix each setting with a specific module name. By default this Properties are used for jInfer Project Properties.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ModuleProperties(String moduleName, Properties properties)
          Default constructor.
 
Method Summary
 String getProperty(String key)
           
 Object put(Object key, Object value)
           
 
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, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleProperties

public ModuleProperties(String moduleName,
                        Properties properties)
Default constructor.

Parameters:
moduleName - Unique name that will be used as prefix.
properties - Properties that are extended.
Method Detail

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map<Object,Object>
Overrides:
put in class Hashtable<Object,Object>

getProperty

public String getProperty(String key)
Overrides:
getProperty in class Properties

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011