|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.viewcomparemerge.Scope
public abstract class Scope
Provides a client application a flexible way to specify the scope of a view compare/merge operation.
The View Compare/Merge engine provides implementations of Scope that should suffice for most applications. In each case, the implementation is public, and may be re-used in the development of custom Scopes.
ItemTypeScope,
FolderScope,
ItemListScope,
RevisionLabelScope,
ProcessItemScope,
AnyScope,
EveryScope| Constructor Summary | |
|---|---|
Scope()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getDescription()
Get a String that gives a reasonable description of this scope. |
abstract 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. |
abstract TypeCollection |
getItemTypes()
Get the list of item types that are included in this scope. |
abstract boolean |
isFullScope(Item.Type type)
Determines whether or not this represents a "Full Scope" operation for the given item type. |
abstract void |
refresh(Session session)
Provides a scope the opportunity to initialize or refresh its state. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scope()
| Method Detail |
|---|
public abstract boolean isFullScope(Item.Type type)
type - the type to test against
public abstract void refresh(Session session)
The view compare/merge engine calls refresh() once at the start of Session.compare(), and once for each call to Session.refresh().
session - the session to refreshpublic abstract TypeCollection getItemTypes()
public abstract Item getIncludedRevision(Item item)
During 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).
item - Item the item to test for inclusion
public abstract java.lang.String getDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||