com.microsoft.tfs.core.clients.versioncontrol.offline
Class OfflineChange

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.offline.OfflineChange

public class OfflineChange
extends java.lang.Object

Represents one change made while the user was offline that was discovered during the "return online" process.

Since:
TEE-SDK-10.1
Thread-safety:
thread-compatible

Constructor Summary
OfflineChange(java.lang.String localPath, OfflineChangeType changeType, ItemType serverItemType)
          Represents a change to an item done offline.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static OfflineChange[] getChangesByType(OfflineChange[] changes, OfflineChangeType type)
          Gets the changes detected from synchronization by change type.
 OfflineChangeType[] getChangeTypes()
           
 java.lang.String getLocalPath()
           
 PropertyValue[] getPropertyValue()
           
 ItemType getServerItemType()
           
 java.lang.String getSourceLocalPath()
           
 boolean hasChangeType(OfflineChangeType type)
           
 boolean hasPropertyChange()
           
 void setSourceLocalPath(java.lang.String sourceLocalPath)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineChange

public OfflineChange(java.lang.String localPath,
                     OfflineChangeType changeType,
                     ItemType serverItemType)
Represents a change to an item done offline.

Parameters:
localPath - the local path changed (must not be null)
changeType - the type of changed detected (must not be null)
serverItemType - if the local item corresponded to (mapped to) a server item, the type of the server item (otherwise null)
Method Detail

getLocalPath

public java.lang.String getLocalPath()

getServerItemType

public ItemType getServerItemType()

getSourceLocalPath

public java.lang.String getSourceLocalPath()

setSourceLocalPath

public void setSourceLocalPath(java.lang.String sourceLocalPath)

hasChangeType

public boolean hasChangeType(OfflineChangeType type)

hasPropertyChange

public boolean hasPropertyChange()

getPropertyValue

public PropertyValue[] getPropertyValue()

getChangeTypes

public OfflineChangeType[] getChangeTypes()

getChangesByType

public static final OfflineChange[] getChangesByType(OfflineChange[] changes,
                                                     OfflineChangeType type)
Gets the changes detected from synchronization by change type.

Returns:
a List of changes filtered to the change type

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


© 2015 Microsoft. All rights reserved.