org.ow2.wildcat.event
Class WHierarchyEvent

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

public class WHierarchyEvent
extends WEvent
implements WEventInterface

WHierarchyEvent holds events related to the context hierarchy changes.

See Also:
Serialized Form

Nested Class Summary
static class WHierarchyEvent.Type
          The types of events
 
Nested classes/interfaces inherited from interface org.ow2.wildcat.event.WEventInterface
WEventInterface.Scope
 
Field Summary
protected  String target
          The object of the operation (ie: a resource or an attribute name)
protected  WHierarchyEvent.Type type
          The type of operation
 
Fields inherited from class org.ow2.wildcat.event.WEvent
source
 
Constructor Summary
WHierarchyEvent(Path source, WHierarchyEvent.Type type, String target)
          Constructor.
 
Method Summary
 String getTarget()
          Getter.
 WHierarchyEvent.Type getType()
          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

type

protected WHierarchyEvent.Type type
The type of operation


target

protected String target
The object of the operation (ie: a resource or an attribute name)

Constructor Detail

WHierarchyEvent

public WHierarchyEvent(Path source,
                       WHierarchyEvent.Type type,
                       String target)
Constructor.

Parameters:
source - location at which the event was fired
type - the type of change in the hierarchy
target - the object of the change
Method Detail

getType

public WHierarchyEvent.Type getType()
Getter.

Returns:
the type of change in the hierarchy

getTarget

public String getTarget()
Getter.

Returns:
the subject of the event

toString

public String toString()
Overrides:
toString in class WEvent


Copyright © 2010 OW2 Consortium. All Rights Reserved.