net.ontopia.topicmaps.utils
Class DuplicateSuppressionUtils

java.lang.Object
  extended by net.ontopia.topicmaps.utils.DuplicateSuppressionUtils

public class DuplicateSuppressionUtils
extends java.lang.Object

PUBLIC: A helper class that can remove duplicate objects from a topic map.

Since:
1.2

Constructor Summary
DuplicateSuppressionUtils()
           
 
Method Summary
static void removeDuplicateAssociations(java.util.Collection assocs)
          INTERNAL: do not call this method.
static java.util.Map removeDuplicateAssociations(TopicIF topic)
          PUBLIC: Removes all duplicate associations of this topic.
static void removeDuplicateOccurrences(java.util.Collection 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(java.util.Collection basenames)
          INTERNAL: do not call this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateSuppressionUtils

public DuplicateSuppressionUtils()
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(java.util.Collection basenames)
INTERNAL: do not call this method.


removeDuplicateOccurrences

public static void removeDuplicateOccurrences(java.util.Collection occurs)
INTERNAL: do not call this method.


removeDuplicateAssociations

public static void removeDuplicateAssociations(java.util.Collection 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 java.util.Map removeDuplicateAssociations(TopicIF topic)
PUBLIC: Removes all duplicate associations of this topic.

Since:
2.1


Copyright © 2000-2012 Ontopia.