com.starteam
Interface File.Revision

All Known Implementing Classes:
File.SyncRecord, File.WebCacheWorkSpaceSync
Enclosing class:
File

public static interface File.Revision

The Revision interface globally and uniquely identifies a specific revision of a StarTeam object.


Method Summary
 int getContentRevision()
          Gets the content version of this item revision.
 DotNotation getDotNotation()
          Gets the dot notation of this revision of the repository object.
 int getObjectID()
          Gets the objectID (also known as the branch identifier) of this revision of the repository object.
 GUID getRepositoryID()
          Gets an ID that uniquely identifies the repository in which the object in question exists.
 int getRevisionNumber()
          Gets the version number of this revision of the repository object within its branch.
 int getRootObjectID()
          Gets the RootObjectID of the repository object.
 void setContentRevision(int rev)
          Sets the content version of this item revision.
 void setDotNotation(DotNotation dot)
          Sets the dot notation of this revision of the repository object.
 void setObjectID(int id)
          Sets the objectID of this revision of the repository object.
 void setRevisionNumber(int n)
          Sets the version number of this revision of the repository object.
 void setRootObjectID(int id)
          Sets the RootObjectID of the repository object.
 

Method Detail

getRepositoryID

GUID getRepositoryID()
Gets an ID that uniquely identifies the repository in which the object in question exists. We use the server's GUID in lower-case canonical format.

Returns:
An ID that uniquely identifies the repository in which the object in question exists.

getRootObjectID

int getRootObjectID()
Gets the RootObjectID of the repository object. All revisions and branches of an object share the same RootObjectID.

Returns:
The RootObjectID of the repository object.

setRootObjectID

void setRootObjectID(int id)
Sets the RootObjectID of the repository object.

Parameters:
id - The RootObjectID of the repository object.

getObjectID

int getObjectID()
Gets the objectID (also known as the branch identifier) of this revision of the repository object.

Returns:
The objectID of this revision of the repository object.

setObjectID

void setObjectID(int id)
Sets the objectID of this revision of the repository object.

Parameters:
id - The objectID of this revision of the repository object.

getRevisionNumber

int getRevisionNumber()
Gets the version number of this revision of the repository object within its branch.

Returns:
The version number of this revision of the repository object within its branch.
See Also:
VersionedObject.getRevisionNumber()

setRevisionNumber

void setRevisionNumber(int n)
Sets the version number of this revision of the repository object.

Parameters:
n - The version number of this revision of the repository object.

getDotNotation

DotNotation getDotNotation()
Gets the dot notation of this revision of the repository object. The dot notation uniquely identifies any revision from any branch off of the same root object ID. For example: "1.2.3.5".

Returns:
The dot notation of this revision of the repository object.

setDotNotation

void setDotNotation(DotNotation dot)
Sets the dot notation of this revision of the repository object.

Parameters:
dot - The dot notation of this revision of the repository object.

getContentRevision

int getContentRevision()
Gets the content version of this item revision. The content version does not increment in parallel with the view version; it only increments when the file contents (not just any property) changes.

Returns:
The content version of this item revision.

setContentRevision

void setContentRevision(int rev)
Sets the content version of this item revision.

Parameters:
rev - The content version of this item revision.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.