Interface ISyncInfoSetChangeEvent
-
- All Known Subinterfaces:
ISyncInfoTreeChangeEvent
- All Known Implementing Classes:
SyncInfoSetChangeEvent
public interface ISyncInfoSetChangeEventAn event generated when aSyncInfoSetcollection is changed. The event contains a description of the changes which include added, changed and removed resources. In some cases, (e.g. when the change is too complicated to be efficiently described using the mechanisms provided by this interface) the event will be a reset. In these cases, the client should ignore any other contents of the event and recalculate from scratch any state that is derived from theSyncInfoSetfrom which the event originated.The mix of return types,
SyncInfoandIResourceis required as a result of an optimization included inSyncInfoSetcollections that doesn't maintainSyncInfoobjects for in-sync resources.- Since:
- 3.0
- See Also:
SyncInfoSet.addSyncSetChangedListener(ISyncInfoSetChangeListener),ISyncInfoSetChangeListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyncInfo[]getAddedResources()Returns newly added out-of-syncSyncInfoelements.SyncInfo[]getChangedResources()Returns changedSyncInfoelements.IResource[]getRemovedResources()Returns the removedIResourceelements for which the set no longer contains on out-of-syncSyncInfo.SyncInfoSetgetSet()Returns theSyncInfoSetthat generated these events.
-
-
-
Method Detail
-
getAddedResources
SyncInfo[] getAddedResources()
Returns newly added out-of-syncSyncInfoelements.- Returns:
- newly added
SyncInfoelements or an empty list if this event doesn't contain added resources.
-
getChangedResources
SyncInfo[] getChangedResources()
Returns changedSyncInfoelements. The returned elements are still out-of-sync.- Returns:
- changed
SyncInfoelements or an empty list if this event doesn't contain changes resources.
-
getRemovedResources
IResource[] getRemovedResources()
Returns the removedIResourceelements for which the set no longer contains on out-of-syncSyncInfo. The returned elements are all in-sync resources.- Returns:
- removed
SyncInfoelements or an empty list if this event doesn't contain removed resources.
-
getSet
SyncInfoSet getSet()
Returns theSyncInfoSetthat generated these events.- Returns:
- the
SyncInfoSetthat generated these events.
-
-