public final class TraceCollection extends ViewMemberCollection
ViewMemberCollection.BehaviorContainer, ViewMemberCollection.HistoryContainer, ViewMemberCollection.WebCacheViewMemberCollection| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
contains, find, find, find, getAt, getCache, getFromHistory, getFromHistory, getFromHistory, getHistory, getViewMember, getViewMember, getViewMemberBehavior, getViewMembers, lockExclusive, lockExclusive, lockNonExclusive, modifyBookmark, modifyReadStatus, reverse, setViewMemberBehavior, shareTo, sort, sort, sort, unlockaddTo, attach, containsAll, detach, get, getSyncRoot, indexOf, isEmpty, isFixedSize, isModified, isReadOnly, isSynchronized, iterator, positionOf, removeAt, resetCapacity, retainAll, size, toArray, toArrayequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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.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)
StarTeamCollectionadd in interface java.util.Collectionadd in class StarTeamCollectiono - The Object to add to the collectionpublic boolean addAll(java.util.Collection c)
StarTeamCollectionaddAll in interface java.util.CollectionaddAll in class StarTeamCollectionc - the specified collectionpublic boolean addAll(java.lang.Object[] c)
StarTeamCollectionaddAll in class StarTeamCollectionc - an array of Objects to add to this collectionpublic void clear()
ViewMemberCollectionclear in interface java.util.Collectionclear in class ViewMemberCollectionpublic boolean remove(java.lang.Object o)
StarTeamCollectionremove in interface java.util.Collectionremove in class StarTeamCollectiono - the object to removepublic boolean removeAll(java.util.Collection c)
StarTeamCollectionremoveAll in interface java.util.CollectionremoveAll in class StarTeamCollectionpublic void set(int index,
java.lang.Object o)
StarTeamCollectionset in class StarTeamCollectionindex - A valid index into the collection.o - The object to be set.public void insert(int index,
java.lang.Object o)
StarTeamCollectioninsert in class StarTeamCollectionindex - the position at which the object should be insertedo - the object to insertpublic void update()
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.