|
|||||||||
| 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.FolderScope
public class FolderScope
Allows folders to be included or excluded from the scope of the view compare/merge operation in a flexible way.
Session.setScope(com.starteam.viewcomparemerge.Scope),
Scope| Constructor Summary | |
|---|---|
FolderScope(Folder f)
Creates a new FolderScope that includes the files in the given source folder. |
|
FolderScope(Folder f,
boolean bIncludeSubfolders)
Creates a new FolderScope that includes the files in the given source folder, and optionally in all of its child folders at any depth. |
|
FolderScope(Folder f,
boolean bIncludeSubfolders,
Item.Type type)
Creates a new FolderScope that includes the files in the given source folder, and optionally in all of its child folders at any depth. |
|
FolderScope(Folder f,
boolean bIncludeSubfolders,
TypeCollection tc)
Construct a folder scope |
|
FolderScope(Folder f,
Item.Type type)
Creates a new FolderScope that includes the items of the given type in the given source folder. |
|
FolderScope(FolderListManager folders)
Creates a new FolderScope that includes all of the folders indicated by the given FolderListManager. |
|
FolderScope(FolderListManager folders,
Item.Type type)
Creates a new FolderScope that includes all of the folders indicated by the given FolderListManager. |
|
FolderScope(FolderListManager folders,
TypeCollection tc)
Construct a Folder Scope |
|
FolderScope(Folder f,
TypeCollection types)
Creates a new FolderScope that includes the items of all of the given types in the given source folder. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderScope(Folder f)
f - A folder in the source view.
public FolderScope(Folder f,
Item.Type type)
f - A folder in the source view.type - An item type.
public FolderScope(Folder f,
TypeCollection types)
f - A folder in the source view.types - A list of item types.
public FolderScope(Folder f,
boolean bIncludeSubfolders)
f - A folder in the source view.bIncludeSubfolders - true to include files in child folders; false to include only
the files in the folder itself.
public FolderScope(Folder f,
boolean bIncludeSubfolders,
Item.Type type)
f - A folder in the source view.bIncludeSubfolders - true to include files in child folders;type - the type of the items included in scope false to include only
the files in the folder itself.
public FolderScope(Folder f,
boolean bIncludeSubfolders,
TypeCollection tc)
f - the folder to includebIncludeSubfolders - true to include sub folderstc - the types of the items included in scopepublic FolderScope(FolderListManager folders)
The client application is free to include or exclude folders from the FolderListManager at any time. Changes will be reflected in the scope after the next refresh().
folders - The FolderListManager that describes the scope.FolderListManager
public FolderScope(FolderListManager folders,
Item.Type type)
The client application is free to include or exclude folders from the FolderListManager at any time. Changes will be reflected in the scope after the next refresh().
folders - The FolderListManager that describes the scope.type - the type to includeFolderListManager
public FolderScope(FolderListManager folders,
TypeCollection tc)
folders - the folders to includetc - the types to include| Method Detail |
|---|
public java.lang.String getDescription()
getDescription in class Scopepublic boolean isFullScope(Item.Type type)
Scope
isFullScope in class Scopetype - the item type to test
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 be refreshedScope.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 to be tested for inclusion
Scope.getIncludedRevision(com.starteam.Item)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||