com.microsoft.tfs.core.clients.versioncontrol.events
Class DestroyEvent
java.lang.Object
com.microsoft.tfs.core.clients.CoreClientEvent
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)
. DestroyEvent
s are sent to DestroyListener
s.
- Since:
- TEE-SDK-10.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
specifiedflags
- the DestroyFlags
that were used in the destroy operation
(must not be null
)
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.