com.starteam
Class ProcessItem

java.lang.Object
  extended by com.starteam.ProcessItem

public final class ProcessItem
extends java.lang.Object

A process item in the context of a given target view.


Constructor Summary
ProcessItem(Item item, View target)
          Constructs a process item in the context of a given target view.
ProcessItem(ViewMember vm)
          Constructs a process item.
 
Method Summary
 boolean equals(java.lang.Object another)
          Compares this ProcessItem to another for equality
 ChangePackageCollection getChangePackages()
          Gets the ChangePackages associated with this process item, if any.
 Item getItem()
          Gets the underlying item.
 View getTargetView()
          Gets the target view.
 int hashCode()
          Return a hashCode for this process item.
 ViewMemberCollection resolve()
          Resolves this process item in the context of its target view.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessItem

public ProcessItem(ViewMember vm)
Constructs a process item. Assumes that the view member resides in the target view.

Parameters:
vm - The ViewMember to be treated as a process item. The view member is not necessarily a valid type for the target view.

ProcessItem

public ProcessItem(Item item,
                   View target)
Constructs a process item in the context of a given target view.

Parameters:
item - The item to be treated as a process item. The item is not necessarily a valid type for the target view.
target - The target view.
Method Detail

getItem

public Item getItem()
Gets the underlying item.

Returns:
The underlying item.
Throws:
java.lang.IllegalStateException - if this process item represents a change package.

getTargetView

public View getTargetView()
Gets the target view.

Returns:
The target view.

getChangePackages

public ChangePackageCollection getChangePackages()
Gets the ChangePackages associated with this process item, if any.

Returns:
ChangePackageCollection

resolve

public ViewMemberCollection resolve()
Resolves this process item in the context of its target view.

Returns:
The list of associated file and folder revisions representing changes associated with this process item in the target view.

hashCode

public int hashCode()
Return a hashCode for this process item.

Overrides:
hashCode in class java.lang.Object
Returns:
a hashCode for this process item.

equals

public boolean equals(java.lang.Object another)
Compares this ProcessItem to another for equality

Overrides:
equals in class java.lang.Object
Parameters:
another - the ProcessItem to compare for equality
Returns:
true if the other ProcessItem is identical to this one


StarTeam SDK 13.0, Build 31
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.