|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.StarTeamCollection
com.starteam.ViewMemberCollection
com.starteam.TraceCollection
public final class TraceCollection
Caches Traces for a given view. Also provides a Trace query mechanism.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.starteam.ViewMemberCollection |
|---|
ViewMemberCollection.BehaviorContainer, ViewMemberCollection.HistoryContainer, ViewMemberCollection.WebCacheViewMemberCollection |
| Constructor Summary | |
|---|---|
TraceCollection()
Constructs an empty collection capable of holding trace objects |
|
TraceCollection(Trace t)
Constructs a trace collection containing only the specified trace |
|
TraceCollection(Trace[] a)
Constructs a trace collection containing all the traces of the specified array. |
|
TraceCollection(TraceCollection c)
Constructs a trace collection containing all the traces of the specified trace collection. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
Add the specified element to the collection. |
boolean |
addAll(java.util.Collection c)
Add all the elements of the specified collection to this one. |
boolean |
addAll(java.lang.Object[] c)
Add all the elements of the specified array to this one. |
void |
clear()
Removes all of the elements from this collection. |
TraceCollection |
getTraces(LinkValue value,
TraceFinder.Direction direction,
TraceFinder.PinType pin)
Gets all traces to or from the given LinkValue that meet the specified criteria. |
TraceCollection |
getTraces(java.lang.String url,
TraceFinder.Direction direction,
TraceFinder.PinType pin)
Gets all traces to or from the given endpoint that meet the specified criteria. |
TraceCollection |
getTraces(ViewMember item)
Gets all traces that reference any revision of the given StarTeam item either as the source or the target. |
TraceCollection |
getTraces(ViewMember item,
TraceFinder.Direction direction,
TraceFinder.PinType pin)
Gets all traces to or from the given StarTeam item that meet the specified criteria. |
TraceCollection |
getTracesFrom(ViewMember source)
Gets all traces that reference any revision of the given StarTeam item as the source endpoint. |
TraceCollection |
getTracesTo(ViewMember target)
Gets all traces that reference any revision of the given StarTeam item as the target endpoint. |
void |
insert(int index,
java.lang.Object o)
insert the object into the collection at the specified index |
boolean |
remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present |
boolean |
removeAll(java.util.Collection c)
Removes all this collection's elements that are also contained in the specified collection |
void |
set(int index,
java.lang.Object o)
Sets the object at a given index in the collection, and removes the (existing) object at that index in the collection, provided that the object does not already exist in the collection |
void |
update()
Updates all the Traces specified in this collection using a single bulk server command Note that only traces support a bulk mechanism for add & edit. |
| Methods inherited from class com.starteam.ViewMemberCollection |
|---|
contains, find, find, find, getAt, getCache, getFromHistory, getFromHistory, getFromHistory, getHistory, getViewMember, getViewMember, getViewMemberBehavior, lockExclusive, lockExclusive, lockNonExclusive, modifyBookmark, modifyReadStatus, reverse, setViewMemberBehavior, sort, sort, sort, unlock |
| Methods inherited from class com.starteam.StarTeamCollection |
|---|
addTo, attach, containsAll, detach, get, getSyncRoot, indexOf, isEmpty, isFixedSize, isModified, isReadOnly, isSynchronized, iterator, positionOf, removeAt, resetCapacity, retainAll, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public TraceCollection()
public TraceCollection(TraceCollection c)
c - the TraceCollection whose elements are to be placed into this
collection.public TraceCollection(Trace[] a)
a - the trace array whose elements are to be placed into this
collection.public TraceCollection(Trace t)
t - the trace object to be placed into this collection.| Method Detail |
|---|
public TraceCollection getTraces(ViewMember item)
item - endpoint starTeam item.
public TraceCollection getTracesFrom(ViewMember source)
source - The StarTeam item.
public TraceCollection getTracesTo(ViewMember target)
target - The StarTeam item.
public TraceCollection getTraces(ViewMember item,
TraceFinder.Direction direction,
TraceFinder.PinType pin)
item - The source or target endpoint.direction - Indicates whether the URL must match the source endpoint of
the trace, or the target endpoint, or may match either.pin - Indicates whether the trace must reference a specific revision
of the item, or may match any revision. Many Pin values are
supported only for LinkValues that reference StarTeam items.
public TraceCollection getTraces(LinkValue value,
TraceFinder.Direction direction,
TraceFinder.PinType pin)
value - The source or target endpoint.direction - Indicates whether the URL must match the source endpoint of
the trace, or the target endpoint, or may match either.pin - Indicates whether the trace must reference a specific revision
of the item, or may match any revision. Many Pin values are
supported only for LinkValues that reference StarTeam items.
public TraceCollection getTraces(java.lang.String url,
TraceFinder.Direction direction,
TraceFinder.PinType pin)
url - The URL of the source or target endpoint.direction - Indicates whether the URL must match the source endpoint of
the trace, or the target endpoint, or may match either.pin - Indicates whether the trace must reference a specific revision
of the item, or may match any revision. Many Pin values are
supported only for StarTeam URLs.
public boolean add(java.lang.Object o)
StarTeamCollection
add in interface java.util.Collectionadd in class StarTeamCollectiono - The Object to add to the collection
public boolean addAll(java.util.Collection c)
StarTeamCollection
addAll in interface java.util.CollectionaddAll in class StarTeamCollectionc - the specified collection
public boolean addAll(java.lang.Object[] c)
StarTeamCollection
addAll in class StarTeamCollectionc - an array of Objects to add to this collection
public void clear()
ViewMemberCollection
clear in interface java.util.Collectionclear in class ViewMemberCollectionpublic boolean remove(java.lang.Object o)
StarTeamCollection
remove in interface java.util.Collectionremove in class StarTeamCollectiono - the object to remove
public boolean removeAll(java.util.Collection c)
StarTeamCollection
removeAll in interface java.util.CollectionremoveAll in class StarTeamCollection
public void set(int index,
java.lang.Object o)
StarTeamCollection
set in class StarTeamCollectionindex - A valid index into the collection.o - The object to be set.
public void insert(int index,
java.lang.Object o)
StarTeamCollection
insert in class StarTeamCollectionindex - the position at which the object should be insertedo - the object to insertpublic void update()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||