org.ow2.wildcat.event
Class WAttributeEvent

java.lang.Object
  extended by org.ow2.wildcat.event.WEvent
      extended by org.ow2.wildcat.event.WAttributeEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, WEventInterface

public class WAttributeEvent
extends WEvent
implements WEventInterface

WAttributeEvent holds events related to an attribute value change.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object value
          The new value of the attribtue
 
Fields inherited from class org.ow2.wildcat.event.WEvent
source
 
Constructor Summary
WAttributeEvent(Path source, java.lang.Object value)
          Constructor.
 
Method Summary
 java.lang.Object getValue()
          POJO-style getter.
 java.lang.Object getValue(java.lang.String key)
          Map-style getter.
 java.lang.String toString()
           
 
Methods inherited from class org.ow2.wildcat.event.WEvent
clone, getSource, setSource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.wildcat.event.WEventInterface
getSource
 

Field Detail

value

protected java.lang.Object value
The new value of the attribtue

Constructor Detail

WAttributeEvent

public WAttributeEvent(Path source,
                       java.lang.Object value)
Constructor.

Parameters:
source - the location of the attribute
value - the new value of the attribute
Method Detail

getValue

public java.lang.Object getValue()
POJO-style getter.

Returns:
the attribute new value

getValue

public java.lang.Object getValue(java.lang.String key)
Map-style getter.

Parameters:
key - map key
Returns:
Map value or null if key is not associated

toString

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


Copyright © 2008 OW2 Consortium. All Rights Reserved.