|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
com.microsoft.tfs.core.clients.versioncontrol.soapextensions.ItemIdentifier
public class ItemIdentifier
Identifies a server item at a given version, with an optional associated change (which is not strictly part of the identity).
equals(Object)
and hashCode()
do not consider this item's
change type (accessible from getChangeType()
). This behavior makes
this class useful for comparing against other ItemIdentifier
s queried
from the server at different times: the change type may change, but the same
item is being identified.
Field Summary |
---|
Fields inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper |
---|
webServiceObject |
Constructor Summary | |
---|---|
ItemIdentifier(ms.tfs.versioncontrol.clientservices._03._ItemIdentifier webServiceObject)
Creates a ItemIdentifier from a web service object. |
|
ItemIdentifier(Change change)
Creates a ItemIdentifier from a Change . |
|
ItemIdentifier(java.lang.String serverPath)
Creates a ItemIdentifier for the given server path. |
|
ItemIdentifier(java.lang.String serverPath,
int deletionID)
Creates a ItemIdentifier for the given server path and deletion
ID. |
|
ItemIdentifier(java.lang.String serverPath,
VersionSpec version,
int deletionID)
Creates a ItemIdentifier for the given server path at the given
version with the given deletion ID. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
ChangeType |
getChangeType()
|
int |
getDeletionID()
|
java.lang.String |
getItem()
|
VersionSpec |
getVersion()
|
ms.tfs.versioncontrol.clientservices._03._ItemIdentifier |
getWebServiceObject()
Gets the web service object this class wraps. |
int |
hashCode()
|
Methods inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ItemIdentifier(ms.tfs.versioncontrol.clientservices._03._ItemIdentifier webServiceObject)
ItemIdentifier
from a web service object.
webServiceObject
- the web service object (must not be null
)public ItemIdentifier(Change change)
ItemIdentifier
from a Change
. All fields will
be initialized from the given change (including version and change type).
change
- the change to create an identifier for (must not be
null
)public ItemIdentifier(java.lang.String serverPath)
ItemIdentifier
for the given server path. The version
and change type will be null.
serverPath
- the server path (must not be null
or empty)public ItemIdentifier(java.lang.String serverPath, int deletionID)
ItemIdentifier
for the given server path and deletion
ID. The version and change type will be null.
serverPath
- the server path (must not be null
or empty)deletionID
- the deletion ID (0 for none)public ItemIdentifier(java.lang.String serverPath, VersionSpec version, int deletionID)
ItemIdentifier
for the given server path at the given
version with the given deletion ID. The change type will be null.
serverPath
- the server path (must not be null
or empty)version
- the version of the item (may be null)deletionID
- the deletion ID (0 for none)Method Detail |
---|
public ms.tfs.versioncontrol.clientservices._03._ItemIdentifier getWebServiceObject()
public java.lang.String getItem()
null
or emptypublic VersionSpec getVersion()
public int getDeletionID()
public ChangeType getChangeType()
public boolean equals(java.lang.Object o)
equals
in class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
public int hashCode()
hashCode
in class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |