com.starteam
Class LinkToTraceAdapter
java.lang.Object
com.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.VersionedObject
com.starteam.ViewMember
com.starteam.Trace
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.
-
Trace.getSource() will return a LinkValue that references the same Item as
one of the Link endpoints.
-
Trace.getTarget() will return a LinkValue that references the same Item as
the other Link endpoint.
-
Trace.getDescription() will return the same string as Link.getComment().
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.
|
Constructor Summary |
LinkToTraceAdapter(Link link)
Creates a new Trace that represents the information in the given Link as
closely as possible. |
| 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.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 |
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.
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.