Package net.ontopia.topicmaps.utils
Class DuplicateSuppressionUtils
java.lang.Object
net.ontopia.topicmaps.utils.DuplicateSuppressionUtils
PUBLIC: A helper class that can remove duplicate objects from a topic map.
- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidINTERNAL: do not call this method.static Map<AssociationIF,Set<AssociationIF>> PUBLIC: Removes all duplicate associations of this topic.static voidINTERNAL: do not call this method.static voidremoveDuplicates(AssociationIF assoc) PUBLIC: Remove all duplicate association roles of the association.static voidremoveDuplicates(TopicIF topic) PUBLIC: Remove all duplicated characteristics of the given topic, except for duplicate associations the topic may participate in.static voidremoveDuplicates(TopicMapIF topicmap) PUBLIC: Remove all duplicates in the entire topic map.static voidremoveDuplicates(TopicNameIF basename) PUBLIC: Remove all duplicate variant names of the given topic name.static voidremoveDuplicateTopicNames(Collection<TopicNameIF> basenames) INTERNAL: do not call this method.
-
Constructor Details
-
DuplicateSuppressionUtils
public DuplicateSuppressionUtils()
-
-
Method Details
-
removeDuplicates
PUBLIC: Remove all duplicates in the entire topic map. -
removeDuplicates
PUBLIC: Remove all duplicated characteristics of the given topic, except for duplicate associations the topic may participate in. -
removeDuplicateTopicNames
INTERNAL: do not call this method. -
removeDuplicateOccurrences
INTERNAL: do not call this method. -
removeDuplicateAssociations
INTERNAL: do not call this method. -
removeDuplicates
PUBLIC: Remove all duplicate variant names of the given topic name. -
removeDuplicates
PUBLIC: Remove all duplicate association roles of the association. -
removeDuplicateAssociations
PUBLIC: Removes all duplicate associations of this topic.- Since:
- 2.1
-