xmlBlaster 2.2.0 API

org.xmlBlaster.util.property
Class PropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.xmlBlaster.util.property.PropertyChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class PropertyChangeEvent
extends java.util.EventObject

The immutable event object when a property was created or has changed.

Author:
Marcel Ruff
See Also:
testsuite.TestProperty, Serialized Form

Field Summary
private  java.lang.String key
           
private  java.lang.String newValue
           
private  java.lang.String oldValue
           
private static long serialVersionUID
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PropertyChangeEvent(java.lang.String key, java.lang.String oldValue, java.lang.String newValue)
          Constructs a new PropertyChangeEvent instance.
 
Method Summary
 java.lang.String getKey()
          The unique key of the property
 java.lang.String getNewValue()
          The new value of this property
 java.lang.String getOldValue()
          The previous value of this property
private  void readObject(java.io.ObjectInputStream in)
          Throws NotSerializableException, since PropertyChangeEvent objects are not intended to be serializable.
 java.lang.String toString()
           
 java.lang.String toXml()
           
private  void writeObject(java.io.ObjectOutputStream out)
          Throws NotSerializableException, since PropertyChangeEvent objects are not intended to be serializable.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

key

private java.lang.String key

oldValue

private java.lang.String oldValue

newValue

private java.lang.String newValue
Constructor Detail

PropertyChangeEvent

public PropertyChangeEvent(java.lang.String key,
                           java.lang.String oldValue,
                           java.lang.String newValue)
Constructs a new PropertyChangeEvent instance.

Parameters:
key - The property key
oldValue - The old value
newValue - The new or changed value
Method Detail

getKey

public java.lang.String getKey()
The unique key of the property


getOldValue

public java.lang.String getOldValue()
The previous value of this property


getNewValue

public java.lang.String getNewValue()
The new value of this property


toXml

public java.lang.String toXml()

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.NotSerializableException
Throws NotSerializableException, since PropertyChangeEvent objects are not intended to be serializable.

Throws:
java.io.NotSerializableException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.NotSerializableException
Throws NotSerializableException, since PropertyChangeEvent objects are not intended to be serializable.

Throws:
java.io.NotSerializableException

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.