Package net.ontopia.topicmaps.impl.utils
Class DeletionUtils
- java.lang.Object
-
- net.ontopia.topicmaps.impl.utils.DeletionUtils
-
public class DeletionUtils extends Object
INTERNAL: Topic map object deletion utilities.
-
-
Constructor Summary
Constructors Constructor Description DeletionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
removeDependencies
public static void removeDependencies(TopicIF topic)
INTERNAL: Removes the dependencies to the given topic from its topic map. Characteristics that have the topic in its scope get removed. Characteristics that have the topic as a type are 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
-
-