Class CopyUtils

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

public class CopyUtils extends Object
INTERNAL: Utilities for copying topic map data.
Since:
3.4
  • Constructor Details

    • CopyUtils

      public CopyUtils()
  • Method Details

    • 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