net.ontopia.topicmaps.utils
Class CopyUtils

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

public class CopyUtils
extends java.lang.Object

INTERNAL: Utilities for copying topic map data.

Since:
3.4

Constructor Summary
CopyUtils()
           
 
Method Summary
static AssociationIF copyAssociation(TopicIF targetPlayer, AssociationIF source, TopicIF sourcePlayer)
          INTERNAL: Copies the variant from the source topic to the target topic.
static TopicIF copyCharacteristics(TopicIF source)
          INTERNAL: Creates a new topic and copies all the characteristics from the source topic to this new topic.
static void copyCharacteristics(TopicIF target, TopicIF source)
          INTERNAL: Copies all the characteristics from the source topic to the target topic.
static OccurrenceIF copyOccurrence(TopicIF target, OccurrenceIF source)
          INTERNAL: Copies the occurrence from the source topic to the target topic.
static void copyOccurrenceData(OccurrenceIF target, OccurrenceIF source)
          INTERNAL: Copies the occurrence value and datatype from the source topic to the target topic.
static TopicNameIF copyTopicName(TopicIF target, TopicNameIF source)
          INTERNAL: Copies the name from the source topic to the target topic.
static VariantNameIF copyVariant(TopicNameIF target, VariantNameIF source)
          INTERNAL: Copies the variant from the source topic to the target topic.
static void copyVariantData(VariantNameIF target, VariantNameIF source)
          INTERNAL: Copies the variant value and datatype from the source topic to the target topic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyUtils

public CopyUtils()
Method Detail

copyCharacteristics

public static TopicIF copyCharacteristics(TopicIF source)
INTERNAL: Creates a new topic and copies all the characteristics from the source topic to this new topic.

Returns:
the new topic with a copy of all the characteristics.

copyCharacteristics

public static void copyCharacteristics(TopicIF target,
                                       TopicIF source)
INTERNAL: Copies all the characteristics from the source topic to the target topic.


copyOccurrence

public static OccurrenceIF copyOccurrence(TopicIF target,
                                          OccurrenceIF source)
INTERNAL: Copies the occurrence from the source topic to the target topic.

Since:
4.0

copyOccurrenceData

public static void copyOccurrenceData(OccurrenceIF target,
                                      OccurrenceIF source)
INTERNAL: Copies the occurrence value and datatype from the source topic to the target topic.

Since:
4.0

copyTopicName

public static TopicNameIF copyTopicName(TopicIF target,
                                        TopicNameIF source)
INTERNAL: Copies the name from the source topic to the target topic.

Since:
4.0

copyVariant

public static VariantNameIF copyVariant(TopicNameIF target,
                                        VariantNameIF source)
INTERNAL: Copies the variant from the source topic to the target topic.

Since:
4.0

copyVariantData

public static void copyVariantData(VariantNameIF target,
                                   VariantNameIF source)
INTERNAL: Copies the variant value and datatype from the source topic to the target topic.

Since:
4.0

copyAssociation

public static AssociationIF copyAssociation(TopicIF targetPlayer,
                                            AssociationIF source,
                                            TopicIF sourcePlayer)
INTERNAL: Copies the variant from the source topic to the target topic.

Since:
4.0


Copyright © 2000-2012 Ontopia.