com.microsoft.tfs.core.util
Interface Hierarchical

All Known Implementing Classes:
BranchHistory, BranchHistoryTreeItem, CSSNode, Report, ReportFolder, ReportNode, WSSDocument, WSSDocumentLibrary, WSSFolder, WSSNode

public interface Hierarchical

An interface that can be implemented by any object which has a hierarchical relationship with other objects.

The point of implementing this interface is to make the hierarchcial relationship explicit and to aid the UI layer in building hierarchical interfaces.

Since:
TEE-SDK-10.1
Thread-safety:
thread-compatible

Method Summary
 java.lang.Object[] getChildren()
           
 java.lang.Object getParent()
           
 boolean hasChildren()
          This method is included because it's often less expensive to check for the existence of children than to retrieve the children.
 

Method Detail

getParent

java.lang.Object getParent()
Returns:
the parent of this object, or null if this object has no parent

getChildren

java.lang.Object[] getChildren()
Returns:
the children of this object, or null if this object has no children

hasChildren

boolean hasChildren()
This method is included because it's often less expensive to check for the existence of children than to retrieve the children.

Returns:
true if this object has children, false if not


© 2015 Microsoft. All rights reserved.