Brooklyn

brooklyn.mementos
[Java] Interface TreeNode


public interface TreeNode

A simple tree structure, where a node references a parent and children using their ids. e.g. could be used to represent the entity hierarchy within mementos, where the String is the id of parent/child entities.

Authors:
aled


Method Summary
java.util.List getChildren()

The ids of the children.

java.lang.String getId()

The id of this node in the tree.

java.lang.String getParent()

The id of the parent entity, or null if none.

 

Method Detail

getChildren

public java.util.List getChildren()
The ids of the children.


getId

public java.lang.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

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


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.