com.microsoft.tfs.core.clients.versioncontrol.events
Class DestroyEvent

java.lang.Object
  extended by com.microsoft.tfs.core.clients.CoreClientEvent
      extended by com.microsoft.tfs.core.clients.versioncontrol.events.DestroyEvent

public class DestroyEvent
extends CoreClientEvent

A DestroyEvent represents a single item that was destroyed as a result of a call to VersionControlClient.destroy(ItemSpec, VersionSpec, VersionSpec, DestroyFlags) . DestroyEvents are sent to DestroyListeners.

Since:
TEE-SDK-10.1

Constructor Summary
DestroyEvent(EventSource source, Item destroyedItem, VersionSpec stopAt, DestroyFlags flags)
          Creates a new DestroyEvent.
 
Method Summary
 Item getDestroyedItem()
           
 DestroyFlags getFlags()
           
 VersionSpec getStopAt()
           
 
Methods inherited from class com.microsoft.tfs.core.clients.CoreClientEvent
getEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestroyEvent

public DestroyEvent(EventSource source,
                    Item destroyedItem,
                    VersionSpec stopAt,
                    DestroyFlags flags)
Creates a new DestroyEvent.

Parameters:
source - the EventSource (must not be null)
destroyedItem - the item that was destroyed (must not be null)
stopAt - the stop at version spec, or null if no stop at was specified
flags - the DestroyFlags that were used in the destroy operation (must not be null)
Method Detail

getDestroyedItem

public Item getDestroyedItem()
Returns:
the destroyed item that this event was sent for (never null)

getStopAt

public VersionSpec getStopAt()
Returns:
the stop at version spec that was specified to destroy, or null if no stop at version spec was specified

getFlags

public DestroyFlags getFlags()
Returns:
the DestroyFlags that were specified to destroy (never null)


© 2015 Microsoft. All rights reserved.