|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.CacheRef
com.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.VersionedObject
public class VersionedObject
A VersionedObject is a TrackedObject that maintains a revision history.
| Nested Class Summary | |
|---|---|
static class |
VersionedObject.Type
The Type for VersionedObject |
static class |
VersionedObject.WebCacheVersionedObject
Tracked Object accessor for cached SDK Objects contained objects are obtained from the artifact cache |
| Nested classes/interfaces inherited from class com.starteam.TrackedObject |
|---|
TrackedObject.WebCacheTrackedObject |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
static int |
getBranchRevision(DotNotation dotNotation)
Computes the "branch revision" from the specified dot notation. |
java.lang.String |
getComment()
Gets the comment describing this revision of the item. |
DotNotation |
getDotNotation()
Gets the dot notation identification of this resource version. |
int |
getRevisionNumber()
Gets the revision number for this object revision. |
int |
getRootObjectID()
Gets the root object ID for this resource. |
int |
getViewVersion()
The version number of this item calculated by counting direct ancestors of this item from this version to the initial version. |
static int |
getViewVersion(DotNotation dotNotation)
Computes the "view version" from the specified dot notation. |
boolean |
isFromHistory()
Determines whether or not this is a historical resource obtained from the history. |
void |
setComment(java.lang.String comment)
Sets the comment describing this revision of the item. |
| Methods inherited from class com.starteam.TrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime |
| Methods inherited from class com.starteam.CacheRef |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getRevisionNumber()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - The comment for the next revision of this item.public int getViewVersion()
public int getRootObjectID()
public DotNotation getDotNotation()
The first version added to the repository will have a dot notation of
"1.0". Each new revision will increment the version number
portion so the second revision would be "1.1".
When an item branches a new branch number will be issued and revision
will start counting from 0 again. For example, branching from version
"1.2" might result in "1.2.5.0" after which the
next version will be "1.2.5.1".
The value 5 in the previous example was assigned by the server based on the number of branches already made from the revision being branched.
public boolean isFromHistory()
public static int getViewVersion(DotNotation dotNotation)
dotNotation - A dot notation.
public static int getBranchRevision(DotNotation dotNotation)
dotNotation - A dot notation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||