net.ontopia.topicmaps.utils
Class TopicTreeBuilder

java.lang.Object
  extended by net.ontopia.topicmaps.utils.TopicTreeBuilder

public class TopicTreeBuilder
extends java.lang.Object

EXPERIMENTAL.

Since:
1.2

Constructor Summary
TopicTreeBuilder(TopicIF assocType, TopicIF parentRole, TopicIF childRole)
           
 
Method Summary
 TopicTreeNode build()
          EXPERIMENTAL: Builds a tree consisting of all the topics participating in any associations of the given type.
 TopicTreeNode build(TopicIF topic)
          EXPERIMENTAL: Builds a tree consisting of all the topics directly related to the one given.
 void setFilterTypes(java.util.Collection types)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicTreeBuilder

public TopicTreeBuilder(TopicIF assocType,
                        TopicIF parentRole,
                        TopicIF childRole)
Method Detail

setFilterTypes

public void setFilterTypes(java.util.Collection types)

build

public TopicTreeNode build(TopicIF topic)
EXPERIMENTAL: Builds a tree consisting of all the topics directly related to the one given. The node given can be placed at any position in the tree.


build

public TopicTreeNode build()
EXPERIMENTAL: Builds a tree consisting of all the topics participating in any associations of the given type. A node with a null topic will be introduced as the common root of all the subtrees.



Copyright © 2000-2010 Ontopia.