Module: Java::OrgTmapiCore::Reifiable
Overview
Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. License: Apache License, Version 2.0
Instance Method Summary collapse
-
#reifier ⇒ Object
Returns the reifier (a topic) of this Reifiable or nil if the Reifiable is not reified.
-
#reifier=(identifier = nil) ⇒ Object
Sets the reifier of this reifiable Construct.
Methods included from Superiseable
method_added, register_java_implementation, superised, superising
Instance Method Details
#reifier ⇒ Object
Returns the reifier (a topic) of this Reifiable or nil if the Reifiable is not reified.
:call-seq:
reifier -> Topic
15 16 17 |
# File 'lib/rtm/javatmapi/core/reifiable.rb', line 15 def reifier getReifier end |
#reifier=(identifier = nil) ⇒ Object
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 '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 |