org.tm4j.topicmap.utils
Class TopicMapFragment

java.lang.Object
  extended byorg.tm4j.topicmap.utils.TopicMapCopier
      extended byorg.tm4j.topicmap.utils.TopicMapFragment

public class TopicMapFragment
extends TopicMapCopier

Encapsulates an algorithm for extracting a subset of topic map constructs from a source topic map and adding them to a destination topic map.


Constructor Summary
TopicMapFragment(TopicMap destTM, int maxRadius)
           
 
Method Summary
 void addAssociation(Association src, int depth)
           
 Topic addTopic(Topic t, int depth)
           
 TopicMap getTopicMap()
           
 
Methods inherited from class org.tm4j.topicmap.utils.TopicMapCopier
copy, copy, copy, copy, copy, copy, copy, copyID, copyScopedObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicMapFragment

public TopicMapFragment(TopicMap destTM,
                        int maxRadius)
Method Detail

getTopicMap

public TopicMap getTopicMap()

addTopic

public Topic addTopic(Topic t,
                      int depth)
               throws TopicMapProcessingException,
                      LocatorFactoryException
Throws:
TopicMapProcessingException
LocatorFactoryException

addAssociation

public void addAssociation(Association src,
                           int depth)
                    throws TopicMapProcessingException,
                           LocatorFactoryException
Throws:
TopicMapProcessingException
LocatorFactoryException