Sha256: 2bfb4c3885f2472fc650eac43571e6f342d48b11debc1d7f5e7492b3ae541178

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

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

module Java::OrgTmapiCore::Reifiable

  include RTM::Reifiable
  extend Superiseable

  # Returns the reifier (a topic) of this Reifiable
  # or nil if the Reifiable is not reified.
  #
  # :call-seq:
  #   reifier -> Topic
  #
  def reifier
    getReifier
  end

  superised
  # Sets the reifier of this reifiable Construct.
  # The specified reifier MUST NOT reify another information item.
  #
  # Identifier may be a topic reference or nil,
  # if an existing reifier should be removed.
  #
  # :call-seq:
  #   reifier = identifier
  #   reifier = ()
  #
  def reifier=(identifier=nil)
    unless identifier
      setReifier(nil)
      return
    end
    raise("reifier=: identifier muss be a Topic, Locator or String; not given or nil") unless identifier.is_a?(Java::OrgTmapiCore::Topic) || identifier.is_a?(Java::OrgTmapiCore::Locator) || identifier.is_a?(String)
    setReifier(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/reifiable.rb
rtm-javatmapi-0.3.0 lib/rtm/javatmapi/core/reifiable.rb
rtm-javatmapi-0.2.1 lib/rtm/javatmapi/core/reifiable.rb