com.starteam
Class LinkToTraceAdapter

java.lang.Object
  extended by com.starteam.TypedResource
      extended by com.starteam.LiveObject
          extended by com.starteam.TrackedObject
              extended by com.starteam.VersionedObject
                  extended by com.starteam.ViewMember
                      extended by com.starteam.Trace
                          extended by com.starteam.LinkToTraceAdapter
All Implemented Interfaces:
ISecurable, Lockable, LockableObject, java.lang.Cloneable

public final class LinkToTraceAdapter
extends Trace

An adapter class that surfaces a Link as if it were a Trace.

Since there are significant differences between the two models, the adapted link will actually be a new Trace (that is, a Trace that has not yet been saved to the StarTeam repository, for which isNew() returns true). Information from the Link is surfaced via the new Trace as described below.

All other properties of the new Trace are initialized to their default values.

The new Trace can of course be modified by the client application, and/or saved to the StarTeam repository using Item.update(). A Trace saved this way is then unrelated to the original Link.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.starteam.Trace
Trace.Status, Trace.TraceType, Trace.Type, Trace.WebCacheTrace
 
Nested classes/interfaces inherited from class com.starteam.ViewMember
ViewMember.LockType, ViewMember.MyLock, ViewMember.ShareState, ViewMember.WebCacheViewMember
 
Nested classes/interfaces inherited from class com.starteam.VersionedObject
VersionedObject.WebCacheVersionedObject
 
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
 
Constructor Summary
LinkToTraceAdapter(Link link)
          Creates a new Trace that represents the information in the given Link as closely as possible.
 
Method Summary
 ViewMember copy()
          Creates a copy of the Item and all of its properties.
 Link getLink()
          Gets the link from which this trace was derived.
 boolean isEqualTo(ViewMember vm)
          Compares two ViewMembers.
 
Methods inherited from class com.starteam.Trace
getDescription, getProperties, getSource, getStatus, getTarget, getTraceType, getView, isReverseShareRecommended, isSuspect, pinSource, pinTarget, reverseShareTo, setDescription, setSource, setSource, setStatus, setSuspect, setTarget, setTarget, setTraceType, shareTo, smartShareTo, toString, unpinSource, unpinTarget, update
 
Methods inherited from class com.starteam.ViewMember
equals, findLinks, getAllLabels, getAllShares, getAttachedLabels, getAttachments, getBehavior, getCache, getComment, getDeletedBy, getDeletedTime, getDisplayValue, getDotNotation, getExclusiveLocker, getExternalID, getExternalURL, getFromHistory, getFromHistory, getFromHistory, getFromHistory, getHistory, getID, getIntegerArrayValue, getLocker, getMyLockType, getParentContainer, getParentRevision, getPresentationID, getRights, getRootObjectID, getShare, getShare, getTraces, getValue, getViewMemberRevisions, getViewVersion, getVMID, hashCode, hasPermissions, isBookmarked, isBranchable, isDeleted, isDisembodied, isReadOnly, isRootShare, isUnread, lockExclusive, lockExclusive, lockNonExclusive, modifyBookmark, modifyReadStatus, putLock, remove, setAttachments, setBehavior, setBranchOnChange, setComment, setExternalID, setExternalURL, setFixedConfiguration, setFloatingConfiguration, setRights, setValue, unlock, updateRevisionComment
 
Methods inherited from class com.starteam.VersionedObject
getBranchRevision, getRevisionNumber, getViewVersion, isFromHistory
 
Methods inherited from class com.starteam.TrackedObject
getModifiedBy, getModifiedTime
 
Methods inherited from class com.starteam.LiveObject
getCreatedBy, getCreatedTime, toStarTeamURL
 
Methods inherited from class com.starteam.TypedResource
addToIntegerArray, getBooleanValue, getByteArrayValue, getCachedProperties, getContentValue, getDateTimeValue, getDateValue, getDisplayName, getDoubleValue, getEnumDisplayName, getEnumeratedValues, getIntegerValue, getLinkValue, getLongValue, getObjectID, getPossibleValues, getServer, getStringValue, getTimeSpanValue, getType, hasCachedProperties, hasValue, isDirty, isNew, removeFromIntegerArray, setBooleanValue, setByteArrayValue, setContentValue, setDateTimeValue, setDateValue, setDoubleValue, setEnumeratedValue, setEnumeratedValues, setIntegerArrayValue, setIntegerValue, setLinkValue, setLongValue, setStringValue, setTimeSpanValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.starteam.ISecurable
getServer, getType
 

Constructor Detail

LinkToTraceAdapter

public LinkToTraceAdapter(Link link)
Creates a new Trace that represents the information in the given Link as closely as possible.

Parameters:
link - The link to be adapted.
Method Detail

getLink

public Link getLink()
Gets the link from which this trace was derived.

Returns:
Link

copy

public ViewMember copy()
Creates a copy of the Item and all of its properties. Overrides the corresponding Item method.

Overrides:
copy in class ViewMember
Returns:
A copy of the ViewMember and all of its properties.
See Also:
ViewMember.isEqualTo(com.starteam.ViewMember)

isEqualTo

public boolean isEqualTo(ViewMember vm)
Compares two ViewMembers. Overrides the corresponding ViewMember method.

Overrides:
isEqualTo in class ViewMember
Parameters:
vm - The ViewMember to be compared to this one.
Returns:
true if no differences were found.
See Also:
ViewMember.copy()


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