com.microsoft.tfs.core.clients.versioncontrol
Class BranchHistoryTreeItem
java.lang.Object
com.microsoft.tfs.core.clients.versioncontrol.BranchHistoryTreeItem
- All Implemented Interfaces:
- Hierarchical
- Direct Known Subclasses:
- BranchHistory
public class BranchHistoryTreeItem
- extends java.lang.Object
- implements Hierarchical
Represents a single branch in a tree of branch history items.
- Since:
- TEE-SDK-10.1
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
BranchHistoryTreeItem
public BranchHistoryTreeItem()
BranchHistoryTreeItem
public BranchHistoryTreeItem(java.lang.String serverPath,
int changesetId)
BranchHistoryTreeItem
public BranchHistoryTreeItem(ms.tfs.versioncontrol.clientservices._03._Item item)
createFromRelativeToItem
public static BranchHistoryTreeItem createFromRelativeToItem(ms.tfs.versioncontrol.clientservices._03._BranchRelative relative)
hasRelative
public boolean hasRelative()
isRequested
public boolean isRequested()
- Returns:
- the isRequested
setRequested
public void setRequested(boolean isRequested)
- Parameters:
isRequested
- the isRequested to set
getItem
public Item getItem()
- Returns:
- the item
setItem
public void setItem(Item item)
- Parameters:
item
- the item to set
getBranchToChangeTypeEx
public int getBranchToChangeTypeEx()
- Returns:
- the change type of the relative's branch target (data only
available from TFS 2010, 0 for previous server versions).
getParent
public java.lang.Object getParent()
- Specified by:
getParent
in interface Hierarchical
- Returns:
- the parent
getParentBranchHistoryTreeItem
public BranchHistoryTreeItem getParentBranchHistoryTreeItem()
- Returns:
- the parent
setParent
public void setParent(BranchHistoryTreeItem parent)
- Parameters:
parent
- the parent to set
getChildren
public java.lang.Object[] getChildren()
- Specified by:
getChildren
in interface Hierarchical
- Returns:
- the children of this object, or null if this object has no
children
getChildrenAsList
public java.util.List<BranchHistoryTreeItem> getChildrenAsList()
addChild
public boolean addChild(BranchHistoryTreeItem child)
hasChildren
public boolean hasChildren()
- Description copied from interface:
Hierarchical
- This method is included because it's often less expensive to check for
the existence of children than to retrieve the children.
- Specified by:
hasChildren
in interface Hierarchical
- Returns:
- true if this object has children, false if not
getLevel
public int getLevel()
- Returns:
- the level
setLevel
public void setLevel(int level)
- Parameters:
level
- the level to set
setChildren
public void setChildren(java.util.List<BranchHistoryTreeItem> children)
- Parameters:
children
- the children to set
getFromItem
public Item getFromItem()
setFromItem
public void setFromItem(Item fromItem)
getServerItem
public java.lang.String getServerItem()
getFromItemChangesetID
public int getFromItemChangesetID()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
searchForRequestedItem
protected BranchHistoryTreeItem searchForRequestedItem()
© 2015 Microsoft. All rights reserved.