nl.uva.vlet.vrs
Class ResourceEvent

java.lang.Object
  extended by nl.uva.vlet.vrs.ResourceEvent

public class ResourceEvent
extends java.lang.Object


Field Summary
 VAttribute[] attributes
          Parent VRL if Applicable
 boolean boolVal
           
 VRL[] childs
          child locations if applicable
 EventType eventType
          The Event Type
 VRL location
          Single node or list of nodes for which this event applies
 java.lang.String message
           
 VRL newLocation
          newLocation for rename events (old location=this.location)
 ResourceEventListener specificListener
           
 
Method Summary
static void addResourceEventListener(ResourceEventListener listener)
           
static ResourceEvent createAttributesChangedEvent(VRL node, VAttribute[] attrs)
           
static ResourceEvent createBusyEvent(VRL node, boolean val)
           
static ResourceEvent createChildAddedEvent(VRL node, VRL child)
           
static ResourceEvent createChildsAddedEvent(VRL node, VRL[] childs)
           
static ResourceEvent createDeletedEvent(VRL node)
           
static ResourceEvent createMessageEvent(VRL node, java.lang.String message)
           
static ResourceEvent createRefreshEvent(VRL node2)
           
static ResourceEvent createRenameEvent(VRL oldLocation, VRL newLocation)
           
static ResourceEvent createSetAttributeEvent(VRL source, java.lang.String name, java.lang.String value)
           
static ResourceEvent createSetChildsEvent(VRL node, VRL[] childs)
           
static void fireEvent(ResourceEvent event)
           
static void fireMessageEvent(VRL source, java.lang.String message)
           
 java.lang.String getMessage()
           
 VRL getSource()
           
 EventType getType()
           
static void removeResourceEventListener(ResourceEventListener listener)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eventType

public EventType eventType
The Event Type


location

public VRL location
Single node or list of nodes for which this event applies


newLocation

public VRL newLocation
newLocation for rename events (old location=this.location)


childs

public VRL[] childs
child locations if applicable


attributes

public VAttribute[] attributes
Parent VRL if Applicable


boolVal

public boolean boolVal

message

public java.lang.String message

specificListener

public ResourceEventListener specificListener
Method Detail

getMessage

public java.lang.String getMessage()

getType

public EventType getType()

getSource

public VRL getSource()

toString

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

createChildAddedEvent

public static ResourceEvent createChildAddedEvent(VRL node,
                                                  VRL child)

createChildsAddedEvent

public static ResourceEvent createChildsAddedEvent(VRL node,
                                                   VRL[] childs)

createSetChildsEvent

public static ResourceEvent createSetChildsEvent(VRL node,
                                                 VRL[] childs)

createDeletedEvent

public static ResourceEvent createDeletedEvent(VRL node)

createRefreshEvent

public static ResourceEvent createRefreshEvent(VRL node2)

createRenameEvent

public static ResourceEvent createRenameEvent(VRL oldLocation,
                                              VRL newLocation)

createAttributesChangedEvent

public static ResourceEvent createAttributesChangedEvent(VRL node,
                                                         VAttribute[] attrs)

createSetAttributeEvent

public static ResourceEvent createSetAttributeEvent(VRL source,
                                                    java.lang.String name,
                                                    java.lang.String value)

createBusyEvent

public static ResourceEvent createBusyEvent(VRL node,
                                            boolean val)

createMessageEvent

public static ResourceEvent createMessageEvent(VRL node,
                                               java.lang.String message)

fireMessageEvent

public static void fireMessageEvent(VRL source,
                                    java.lang.String message)

addResourceEventListener

public static void addResourceEventListener(ResourceEventListener listener)

removeResourceEventListener

public static void removeResourceEventListener(ResourceEventListener listener)

fireEvent

public static void fireEvent(ResourceEvent event)