Module: Java::OrgTmapiCore::Role
- Extends:
- Superiseable
- Includes:
- RTM::Role
- Defined in:
- rtm-javatmapi/lib/rtm/javatmapi/core/role.rb
Overview
Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. License: Apache License, Version 2.0
Instance Method Summary
-
- (Object) id
Returns the identifier of the current Role.
-
- (Object) parent
(also: #reverse_children)
Returns the Association to which this Role belongs.
-
- (Object) player
Returns the Topic playing the current Role.
-
- (Object) player(identifier)
Sets the role player.
Methods included from Superiseable
method_added, register_java_implementation, superised, superising
Instance Method Details
- (Object) id
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 'rtm-javatmapi/lib/rtm/javatmapi/core/role.rb', line 46 def id getId end |
- (Object) parent Also known as: reverse_children
Returns the Association to which this Role belongs.
:call-seq:
parent -> Association
14 15 16 |
# File 'rtm-javatmapi/lib/rtm/javatmapi/core/role.rb', line 14 def parent getParent end |
- (Object) player
Returns the Topic playing the current Role.
:call-seq:
player -> Topic
24 25 26 |
# File 'rtm-javatmapi/lib/rtm/javatmapi/core/role.rb', line 24 def player getPlayer end |
- (Object) player=(identifier)
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 'rtm-javatmapi/lib/rtm/javatmapi/core/role.rb', line 36 def player=(identifier) setPlayer(topic_map.get!(identifier)) end |