Sha256: d841c83fe14f926f4037be96273bb6dc904a087fa0e826a15a02ad6130baf068

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

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

module Java::OrgTmapiCore::Typed

  include RTM::Typed
  extend Superiseable

  # Returns the type of this typed construct
  # (occurrence, role, association or name).
  #
  # :call-seq:
  #   type -> Topic
  #
  def type
    getType
  end
  
  superised
  # Sets the type of this typed Construct. Any previous type is overridden.
  #
  # Identifier may be a topic reference.
  #
  # :call-seq:
  #   type=(identifier)
  #
	def type=(identifier)
		setType(topic_map.get!(identifier))
	end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rtm-javatmapi-0.3.1-java lib/rtm/javatmapi/core/typed.rb
rtm-javatmapi-0.3.0 lib/rtm/javatmapi/core/typed.rb
rtm-javatmapi-0.2.1 lib/rtm/javatmapi/core/typed.rb