org.xins.common.collections
Class UniqueProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.xins.common.collections.UniqueProperties
All Implemented Interfaces:
Cloneable, Map, Serializable

public class UniqueProperties
extends Properties

Class that indicates whether a property value is overwritten. It also logs which property has been overwritten.

Since:
XINS 2.0.
Version:
$Revision: 1.4 $ $Date: 2008/07/04 10:22:50 $
Author:
Anthony Goubard
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
UniqueProperties()
           
 
Method Summary
 boolean isUnique()
          Indicates whether a property has been changed in this collection.
 Object put(Object key, Object value)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
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

UniqueProperties

public UniqueProperties()
Method Detail

put

public Object put(Object key,
                  Object value)

isUnique

public boolean isUnique()
Indicates whether a property has been changed in this collection.

Returns:
true if none of the properties were changed, false otherwise.


See http://www.xins.org/.