com.microsoft.tfs.core.clients.commonstructure
Class CSSNode
java.lang.Object
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
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PATH_SEPERATOR
public static final char PATH_SEPERATOR
- Constant Field Value:
92
- See Also:
- Constant Field Values
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)
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.