net.ontopia.topicmaps.impl.utils
Class DeletionUtils

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.DeletionUtils

public class DeletionUtils
extends java.lang.Object

INTERNAL: Topic map object deletion utilities.


Constructor Summary
DeletionUtils()
           
 
Method Summary
static void clear(TopicMapIF topicmap)
          INTERNAL: Deletes all the topics and associations from the topic map.
static void removeDependencies(ReifiableIF object)
           
static void removeDependencies(TopicIF topic)
          INTERNAL: Removes the dependencies to the given topic from its topic map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletionUtils

public DeletionUtils()
Method Detail

removeDependencies

public static void removeDependencies(TopicIF topic)
INTERNAL: Removes the dependencies to the given topic from its topic map. For the characteristics that have the topic in its scope gets the topic removed from the scope. Characteristics that have the topic as a type is removed from the topic map.

Parameters:
topic - The given topic; an object implementing TopicIF.
Since:
4.0

removeDependencies

public static void removeDependencies(ReifiableIF object)

clear

public static void clear(TopicMapIF topicmap)
INTERNAL: Deletes all the topics and associations from the topic map. Note that this is not the best method for emptying a topic map; use TopicMapStoreIF.clear() instead, which is much faster with the RDBMS.

Parameters:
topicmap - The given topicmap; an object implementing TopicMapIF.
Since:
2.0


Copyright © 2000-2012 Ontopia.