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