Module: Java::OrgTmapiCore::Role
Overview
Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. License: Apache License, Version 2.0
Instance Method Summary collapse
-
#id ⇒ Object
Returns the identifier of the current Role.
-
#parent ⇒ Object
(also: #reverse_children)
Returns the Association to which this Role belongs.
-
#player ⇒ Object
Returns the Topic playing the current Role.
-
#player=(identifier) ⇒ Object
Sets the role player.
Methods included from Superiseable
method_added, register_java_implementation, superised, superising
Instance Method Details
#id ⇒ Object
Returns the identifier of the current Role. This property has no representation in the Topic Maps - Data Model.
:call-seq:
id -> String
46 47 48 |
# File 'lib/rtm/javatmapi/core/role.rb', line 46 def id getId end |
#parent ⇒ Object Also known as: reverse_children
Returns the Association to which this Role belongs.
:call-seq:
parent -> Association
14 15 16 |
# File 'lib/rtm/javatmapi/core/role.rb', line 14 def parent getParent end |
#player ⇒ Object
Returns the Topic playing the current Role.
:call-seq:
player -> Topic
24 25 26 |
# File 'lib/rtm/javatmapi/core/role.rb', line 24 def player getPlayer end |
#player=(identifier) ⇒ Object
Sets the role player. Any previous role player will be overriden.
Identifier may be a topic reference.
:call-seq:
player=(identifier)
36 37 38 |
# File 'lib/rtm/javatmapi/core/role.rb', line 36 def player=(identifier) setPlayer(topic_map.get!(identifier)) end |