org.deduced
Class PropertyChangeEventImplementation<K,V>

java.lang.Object
  extended by org.deduced.PropertyChangeEventImplementation<K,V>
Type Parameters:
K - the type of keys in the collection that changed
V - the type of values in the collection that changed
All Implemented Interfaces:
PropertyChangeEvent<K,V>

public final class PropertyChangeEventImplementation<K,V>
extends java.lang.Object
implements PropertyChangeEvent<K,V>

PropertyChangeEventImplementation

Author:
Steve McDuff

Field Summary
private  ChangeType changeType
          property change type
private  PropertyCollection<K,V> collection
          collection
private  PropertyCollection<?,?> instance
          property instance
private  K key
          property key
private  V newValue
          new value
private  V oldValue
          old value
 
Constructor Summary
PropertyChangeEventImplementation()
          constructor for PropertyChangeEvent
 
Method Summary
 ChangeType getChangeType()
           
 PropertyCollection<K,V> getCollection()
           
 PropertyCollection<?,?> getInstance()
           
 K getKey()
           
 V getNewValue()
           
 V getOldValue()
           
 void setChangeType(ChangeType setType)
           
 void setCollection(PropertyCollection<K,V> setCollection)
           
 void setInstance(PropertyCollection<?,?> setInstance)
           
 void setKey(K setKey)
           
 void setNewValue(V setNewValue)
           
 void setOldValue(V setOldValue)
           
 java.lang.String toString()
          (non-JSDoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

collection

private PropertyCollection<K,V> collection
collection


instance

private PropertyCollection<?,?> instance
property instance


oldValue

private V oldValue
old value


newValue

private V newValue
new value


key

private K key
property key


changeType

private ChangeType changeType
property change type

Constructor Detail

PropertyChangeEventImplementation

public PropertyChangeEventImplementation()
constructor for PropertyChangeEvent

Method Detail

getInstance

public PropertyCollection<?,?> getInstance()
Specified by:
getInstance in interface PropertyChangeEvent<K,V>
Returns:
Returns the instance.

setInstance

public void setInstance(PropertyCollection<?,?> setInstance)
Parameters:
setInstance - The instance to set.

getNewValue

public V getNewValue()
Specified by:
getNewValue in interface PropertyChangeEvent<K,V>
Returns:
Returns the newValue.

setNewValue

public void setNewValue(V setNewValue)
Parameters:
setNewValue - The newValue to set.

getOldValue

public V getOldValue()
Specified by:
getOldValue in interface PropertyChangeEvent<K,V>
Returns:
Returns the oldValue.

setOldValue

public void setOldValue(V setOldValue)
Parameters:
setOldValue - The oldValue to set.

getKey

public K getKey()
Specified by:
getKey in interface PropertyChangeEvent<K,V>
Returns:
Returns the key.

setKey

public void setKey(K setKey)
Parameters:
setKey - The key to set.

getChangeType

public ChangeType getChangeType()
Specified by:
getChangeType in interface PropertyChangeEvent<K,V>
Returns:
Returns the type.

setChangeType

public void setChangeType(ChangeType setType)
Parameters:
setType - The type to set.

getCollection

public PropertyCollection<K,V> getCollection()
Specified by:
getCollection in interface PropertyChangeEvent<K,V>
Returns:
Returns the collection.

setCollection

public void setCollection(PropertyCollection<K,V> setCollection)
Parameters:
setCollection - The collection to set.

toString

public java.lang.String toString()
(non-JSDoc)

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()