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:
Serializable, Cloneable, WEventInterface

public class WAttributeEvent
extends WEvent
implements WEventInterface

WAttributeEvent holds events related to an attribute value change.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.wildcat.event.WEventInterface
WEventInterface.Scope
 
Field Summary
protected  Object value
          The new value of the attribute.
 
Fields inherited from class org.ow2.wildcat.event.WEvent
source
 
Constructor Summary
WAttributeEvent(Path source, Object value)
          Construct a new global WAttributeEvent.
WAttributeEvent(Path source, WEventInterface.Scope scope, Object value)
          Construct a new WAttributeEvent by setting its scope.
 
Method Summary
 Object getValue()
          POJO-style getter.
 Object getValue(String key)
          Map-style getter.
 String toString()
           
 
Methods inherited from class org.ow2.wildcat.event.WEvent
clone, getScope, getSource, setScope, 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
getScope, getSource
 

Field Detail

value

protected Object value
The new value of the attribute.

Constructor Detail

WAttributeEvent

public WAttributeEvent(Path source,
                       Object value)
Construct a new global WAttributeEvent.

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

WAttributeEvent

public WAttributeEvent(Path source,
                       WEventInterface.Scope scope,
                       Object value)
Construct a new WAttributeEvent by setting its scope.

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

getValue

public Object getValue()
POJO-style getter.

Returns:
the attribute new value

getValue

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

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

toString

public String toString()
Overrides:
toString in class WEvent


Copyright © 2010 OW2 Consortium. All Rights Reserved.