|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.viewcomparemerge.Scope
com.starteam.viewcomparemerge.AnyScope
public class AnyScope
Combines multiple scopes. An item is considered in scope if it is included in at least one member scope.
Session.setScope(com.starteam.viewcomparemerge.Scope),
Scope| Constructor Summary | |
|---|---|
AnyScope()
Creates an empty scope. |
|
AnyScope(Scope[] scopes)
Creates a scope that initially contains the given members. |
|
| Method Summary | |
|---|---|
void |
add(Scope scope)
Adds the given member scope. |
java.lang.String |
getDescription()
Return a description of this scope. |
Item |
getIncludedRevision(Item item)
Determines whether or not the given source item is in scope for the current view compare/merge operation, and, if so, returns the item revision that should be used for comparision. |
TypeCollection |
getItemTypes()
Get the list of item types that are included in this scope. |
boolean |
isFullScope(Item.Type type)
Determines whether or not this represents a "Full Scope" operation for the given item type. |
void |
refresh(Session session)
Provides a scope the opportunity to initialize or refresh its state. |
void |
remove(Scope scope)
Removes the given member scope. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnyScope()
public AnyScope(Scope[] scopes)
scopes - an array of scopes to include| Method Detail |
|---|
public void add(Scope scope)
scope - The scope to be added.public void remove(Scope scope)
scope - The scope to be removed.public java.lang.String getDescription()
getDescription in class Scopepublic boolean isFullScope(Item.Type type)
Scope
isFullScope in class Scopetype - the Type to test for
Scope.isFullScope(com.starteam.Item.Type)public void refresh(Session session)
ScopeThe view compare/merge engine calls refresh() once at the start of Session.compare(), and once for each call to Session.refresh().
refresh in class Scopesession - the session to refreshScope.refresh(com.starteam.viewcomparemerge.Session)public TypeCollection getItemTypes()
Scope
getItemTypes in class ScopeScope.getItemTypes()public Item getIncludedRevision(Item item)
ScopeDuring a compare operation, the getIncludedRevision() method is called for every source folder whose parent is in scope, and for every item whose type and parent folder are in scope.
Each implementation of Scope must guarantee that if getIncludedRevision() is called again on the same item, without an intervening call to refresh(), the result is the same between calls. That is, until a refresh() is called, a given item must be consistently in scope or out of scope.
Scope implementations may assume that getIncludedRevision() is called only for types that are in scope (and folders).
getIncludedRevision in class Scopeitem - the item, whose revision may have been included
Scope.getIncludedRevision(com.starteam.Item)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||