Module: Java::OrgTmapiCore::Reifiable

Extends:
Superiseable
Includes:
RTM::Reifiable
Defined in:
rtm-javatmapi/lib/rtm/javatmapi/core/reifiable.rb

Overview

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

Instance Method Summary

Methods included from Superiseable

method_added, register_java_implementation, superised, superising

Instance Method Details

- (Object) reifier

Returns the reifier (a topic) of this Reifiable or nil if the Reifiable is not reified.

:call-seq:

  reifier -> Topic


15
16
17
# File 'rtm-javatmapi/lib/rtm/javatmapi/core/reifiable.rb', line 15

def reifier
  getReifier
end

- (Object) reifier=(identifier = nil)

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 = ()


30
31
32
33
34
35
36
37
# File 'rtm-javatmapi/lib/rtm/javatmapi/core/reifiable.rb', line 30

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