Package org.gcube.informationsystem.tree
Class Node<T>
- java.lang.Object
-
- org.gcube.informationsystem.tree.Node<T>
-
- All Implemented Interfaces:
Comparable<Node<T>>
public class Node<T> extends Object implements Comparable<Node<T>>
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringINDENTATION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node<T>addChild(Node<T> child)intcompareTo(Node<T> other)voidelaborate(NodeElaborator<T> nodeElaborator)protected voidelaborate(NodeElaborator<T> nodeElaborator, int level)Set<T>getChildrenElement()Set<Node<T>>getChildrenNodes()TgetNodeElement()Node<T>getParent()Tree<T>getTree()Node<T>setParent(Node<T> parent)StringtoString()
-
-
-
Field Detail
-
INDENTATION
public static String INDENTATION
-
-
Constructor Detail
-
Node
public Node(T t)
-
-
Method Detail
-
getNodeElement
public T getNodeElement()
-
compareTo
public int compareTo(Node<T> other)
- Specified by:
compareToin interfaceComparable<T>
-
elaborate
public void elaborate(NodeElaborator<T> nodeElaborator) throws Exception
- Throws:
Exception
-
elaborate
protected void elaborate(NodeElaborator<T> nodeElaborator, int level) throws Exception
- Throws:
Exception
-
-