com.starbase.starteam
Class NotificationEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.starbase.starteam.NotificationEvent
All Implemented Interfaces:
java.io.Serializable

public class NotificationEvent
extends java.util.EventObject

An event triggered whenever a "notification" for a given Item is added or removed on the server.

See Also:
NotificationListener, View.addItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type), Folder.addItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type, int), ItemListManager.addItemListener(com.starbase.starteam.IItemListener), Serialized Form

Method Summary
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 Item getItem()
          Gets the Item whose notification state has changed.
 java.lang.Object getSource()
          The object on which the Event initially occurred.
 int hashCode()
          returns a unique hash for all instances of this type
 java.lang.String toString()
          Gets a short description of this Event.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getItem

public Item getItem()
Gets the Item whose notification state has changed.

Item.getParentItem() will return a valid parent Folder object. For performance reasons, the same Folder object may be modified and re-used in subsequent events. If an application wants to modify the Folder, or save its state for later use, it should make its own private copy.

Returns:
The Item whose notification state has changed.
See Also:
Item

getSource

public java.lang.Object getSource()
The object on which the Event initially occurred.

Overrides:
getSource in class java.util.EventObject
Returns:
The object on which the Event initially occurred.

toString

public java.lang.String toString()
Gets a short description of this Event.

Overrides:
toString in class java.util.EventObject
Returns:
A short description of this Event.

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class java.lang.Object
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class java.lang.Object
Returns:
int a unique hash for all instances of this type


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.