com.ibm.tivoli.maximo.skd.service

Class MXHierarchyNode

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.service.MXHierarchyNode
  • All Implemented Interfaces:
    java.io.Serializable


    public class MXHierarchyNode
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • MXHierarchyNode

        public MXHierarchyNode(MXNodeElement nodeElement,
                               MXHierarchyNode parent)
        Constructor
        Parameters:
        nodeElement -
        parent -
    • Method Detail

      • setParent

        public void setParent(MXHierarchyNode parent)
        Set the parent node
        Parameters:
        parent -
      • addChild

        public void addChild(MXHierarchyNode child)
        Add a child node
        Parameters:
        child -
      • getId

        public java.lang.String getId()
        Get the id of the node
        Returns:
        id
      • getChildCount

        public int getChildCount()
        Get children count
        Returns:
        count
      • getChild

        public MXHierarchyNode getChild(int index)
        Get child node at index
        Parameters:
        index -
        Returns:
        child node
      • getNodeElement

        public MXNodeElement getNodeElement()
        Get node element
        Returns:
        node element
      • getParent

        public MXHierarchyNode getParent()
        Get parent node
        Returns:
        parent node
      • removeChild

        public void removeChild(MXHierarchyNode child)
        Remove child node
        Parameters:
        child - node
      • removeChild

        public void removeChild(java.lang.String childId)
        Remove child node with nodeid parameter
        Parameters:
        child - Id
      • removeChild

        public MXHierarchyNode removeChild(int index)
        Remove child node with node index
        Parameters:
        index -
        Returns:
        child node
      • reverseChildOrder

        public void reverseChildOrder()
        Reverse child node order.