Sha256: 79a728da3efd5afa35a4d2eaafd0e9b6e01dbb7af86fb76af8a0323a5530826e

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
# License:   Apache License, Version 2.0

module RTM::Sugar
  module TopicMap
    module Types

      # Returns all topics in this topic map that are used
      # as types of associations.
      #
      # :call-seq:
      #   association_types -> Collection of Topics
      #
      def association_types
        type_instance_index.getAssociationTypes
      end

      # Returns the all Topics in this TopicMap that are used
      # as types of Roles.
      #
      # :call-seq:
      #   role_types -> Collection of Topics
      #
      def role_types
        type_instance_index.getRoleTypes
      end

      # Returns all Topics in this TopicMap that are used
      # as types of Names.
      #
      # :call-seq:
      #   name_types -> Collection of Topics
      #
      def name_types
        type_instance_index.getNameTypes
      end

      # Returns all Topics in this TopicMap that are used
      # as types of Occurrences.
      #
      # :call-seq:
      #   occurrence_types -> Collection of Topics
      #
      def occurrence_types
        type_instance_index.getOccurrenceTypes
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtm-0.3.0 lib/rtm/sugar/topic_map/types.rb