org.freehep.application
Class PropertyUtilities.TranslatedProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.freehep.application.PropertyUtilities.TranslatedProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Enclosing class:
PropertyUtilities

public static class PropertyUtilities.TranslatedProperties
extends Properties

A Properties object whose values and defaults are automatically translated if they contain {prop} tokens.

See Also:
PropertyUtilities.translate(Properties,String), Serialized Form

Constructor Summary
PropertyUtilities.TranslatedProperties()
           
PropertyUtilities.TranslatedProperties(Properties def)
           
 
Method Summary
 String getProperty(String key)
           
 String getProperty(String key, String def)
           
 
Methods inherited from class java.util.Properties
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

PropertyUtilities.TranslatedProperties

public PropertyUtilities.TranslatedProperties()

PropertyUtilities.TranslatedProperties

public PropertyUtilities.TranslatedProperties(Properties def)
Method Detail

getProperty

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

getProperty

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


Copyright © 2000-2014 FreeHEP. All Rights Reserved.