com.microsoft.tfs.core.clients.commonstructure
Class CSSNode

java.lang.Object
  extended by com.microsoft.tfs.core.clients.commonstructure.CSSNode
All Implemented Interfaces:
Hierarchical, Labelable

public class CSSNode
extends java.lang.Object
implements Hierarchical, Labelable

A node in the Classification Service Tree (i.e. Areas and Iterations).

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

Field Summary
static char PATH_SEPERATOR
           
 
Constructor Summary
CSSNode(CSSStructureType structureType, java.lang.String uri)
           
CSSNode(CSSStructureType structureType, java.lang.String uri, java.lang.String name, java.lang.String parentUri, java.lang.String path, java.lang.String projectUri)
           
 
Method Summary
 boolean addChild(CSSNode childNode)
           
 void addChildAt(int index, CSSNode child)
           
 CSSNode getChildAt(int index)
           
 java.lang.Object[] getChildren()
           
 int getChildrenSize()
           
 java.lang.String getLabel()
           
 int getLevel()
           
 java.lang.String getName()
           
 java.lang.Object getParent()
           
 CSSNode getParentNode()
           
 java.lang.String getParentURI()
           
 java.lang.String getPath()
           
 java.lang.String getProjectURI()
           
 CSSStructureType getStructureType()
           
 java.lang.String getURI()
           
 boolean hasChildren()
          This method is included because it's often less expensive to check for the existence of children than to retrieve the children.
 int indexOfChild(CSSNode node)
           
 CSSNode removeChildAt(int index)
           
 boolean removeChildNode(CSSNode node)
           
static CSSNode resolveNode(CSSNode parentNode, java.lang.String initialPath)
           
 void setLevel(int level)
           
 void setName(java.lang.String name)
           
 void setParentURI(java.lang.String parentUri)
           
 void setPath(java.lang.String path)
           
 void setProjectURI(java.lang.String projectUri)
           
 void setURI(java.lang.String uri)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PATH_SEPERATOR

public static final char PATH_SEPERATOR
Constant Field Value:
92
See Also:
Constant Field Values
Constructor Detail

CSSNode

public CSSNode(CSSStructureType structureType,
               java.lang.String uri)

CSSNode

public CSSNode(CSSStructureType structureType,
               java.lang.String uri,
               java.lang.String name,
               java.lang.String parentUri,
               java.lang.String path,
               java.lang.String projectUri)
Method Detail

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

removeChildNode

public boolean removeChildNode(CSSNode node)

indexOfChild

public int indexOfChild(CSSNode node)

removeChildAt

public CSSNode removeChildAt(int index)

addChildAt

public void addChildAt(int index,
                       CSSNode child)

getChildAt

public CSSNode getChildAt(int index)

getChildrenSize

public int getChildrenSize()

getParent

public java.lang.Object getParent()
Specified by:
getParent in interface Hierarchical
Returns:
the parent of this object, or null if this object has no parent

getParentNode

public CSSNode getParentNode()

hasChildren

public boolean hasChildren()
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

addChild

public boolean addChild(CSSNode childNode)

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Labelable

getLevel

public int getLevel()

setLevel

public void setLevel(int level)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getParentURI

public java.lang.String getParentURI()

setParentURI

public void setParentURI(java.lang.String parentUri)

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

getProjectURI

public java.lang.String getProjectURI()

setProjectURI

public void setProjectURI(java.lang.String projectUri)

getURI

public java.lang.String getURI()

setURI

public void setURI(java.lang.String uri)

getStructureType

public CSSStructureType getStructureType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

resolveNode

public static CSSNode resolveNode(CSSNode parentNode,
                                  java.lang.String initialPath)


© 2015 Microsoft. All rights reserved.