com.stellent.cis.common.util
Class SafeProperties

java.lang.Object
  extended by java.util.Dictionary
      extended by java.util.Hashtable
          extended by java.util.Properties
              extended by com.stellent.cis.common.util.SafeProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class SafeProperties
extends java.util.Properties

Property map that does not return null values, but instead returns empty strings

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
SafeProperties()
          Creates an empty property list with no default values.
SafeProperties(java.util.Properties defaults)
          Creates an empty property list with the specified defaults.
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
           
 
Methods inherited from class java.util.Properties
getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
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
 

Constructor Detail

SafeProperties

public SafeProperties()
Creates an empty property list with no default values.


SafeProperties

public SafeProperties(java.util.Properties defaults)
Creates an empty property list with the specified defaults.

Parameters:
defaults - the defaults.
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Overrides:
getProperty in class java.util.Properties
Parameters:
key - the property key.
Returns:
the value in this property list with the specified key value.
See Also:
Properties.setProperty(java.lang.String, java.lang.String), Properties.defaults