org.ow2.wildcat.event
Class WEvent

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

public class WEvent
extends Object
implements WEventInterface

Event without arguments.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.wildcat.event.WEventInterface
WEventInterface.Scope
 
Field Summary
protected  Path source
          The source of the Event.
 
Constructor Summary
WEvent(Path source)
          Construct a new global event.
WEvent(Path source, WEventInterface.Scope scope)
          Constructor.
 
Method Summary
 Object clone()
           
 WEventInterface.Scope getScope()
           
 String getSource()
          Getter.
 void setScope(WEventInterface.Scope scope)
          Set the scope of the event.
 void setSource(Path path)
          Setter.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected Path source
The source of the Event.

Constructor Detail

WEvent

public WEvent(Path source,
              WEventInterface.Scope scope)
Constructor.

Parameters:
source - origin of the event
scope - scope of the event

WEvent

public WEvent(Path source)
Construct a new global event.

Parameters:
source - origin of the event
Method Detail

getSource

public String getSource()
Description copied from interface: WEventInterface
Getter.

Specified by:
getSource in interface WEventInterface
Returns:
the location at which the event has been fired

getScope

public WEventInterface.Scope getScope()
Specified by:
getScope in interface WEventInterface
Returns:
the scope of the event

setScope

public void setScope(WEventInterface.Scope scope)
Set the scope of the event.

Parameters:
scope - the scope of the event

setSource

public void setSource(Path path)
Setter.

Parameters:
path - origin of the event

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2010 OW2 Consortium. All Rights Reserved.