brooklyn.mementos
Interface TreeNode

All Known Subinterfaces:
EntityMemento, LocationMemento

public interface TreeNode

A simple tree structure, where a node references a parent and children using their ids.


Method Summary
 List<String> getChildren()
          The ids of the children.
 String getId()
          The id of this node in the tree.
 String getParent()
          The id of the parent entity, or null if none.
 

Method Detail

getId

String getId()
The id of this node in the tree. This id will be used by the parent's getChildren(), and by each child's getParent().


getParent

String getParent()
The id of the parent entity, or null if none.


getChildren

List<String> getChildren()
The ids of the children.



Copyright © 2013. All Rights Reserved.