Package net.ontopia.topicmaps.utils
Class TopicTreeNode
- java.lang.Object
-
- net.ontopia.topicmaps.utils.TopicTreeNode
-
public class TopicTreeNode extends Object
EXPERIMENTAL.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description protected HashMap<String,Object>
attributes
protected List<TopicTreeNode>
children
protected TopicTreeNode
parent
protected TopicIF
topic
-
Constructor Summary
Constructors Constructor Description TopicTreeNode(TopicIF topic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
List<TopicTreeNode>
getChildren()
Returns a List containing TopicTreeNode objects.TopicTreeNode
getParent()
TopicIF
getTopic()
void
setAttribute(String name, Object value)
void
setParent(TopicTreeNode parent)
-
-
-
Field Detail
-
parent
protected TopicTreeNode parent
-
children
protected List<TopicTreeNode> children
-
topic
protected TopicIF topic
-
-
Constructor Detail
-
TopicTreeNode
public TopicTreeNode(TopicIF topic)
-
-
Method Detail
-
getChildren
public List<TopicTreeNode> getChildren()
Returns a List containing TopicTreeNode objects.
-
getParent
public TopicTreeNode getParent()
-
setParent
public void setParent(TopicTreeNode parent)
-
getTopic
public TopicIF getTopic()
-
-