Package net.ontopia.topicmaps.impl.utils
Class DeletionUtils
java.lang.Object
net.ontopia.topicmaps.impl.utils.DeletionUtils
INTERNAL: Topic map object deletion utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear(TopicMapIF topicmap) INTERNAL: Deletes all the topics and associations from the topic map.static voidremoveDependencies(ReifiableIF object) static voidremoveDependencies(TopicIF topic) INTERNAL: Removes the dependencies to the given topic from its topic map.
-
Constructor Details
-
DeletionUtils
public DeletionUtils()
-
-
Method Details
-
removeDependencies
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
-
clear
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
-