Module: Java::OrgTmapiCore::Role

Extended by:
Superiseable
Includes:
RTM::Role
Defined in:
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 collapse

Methods included from Superiseable

method_added, register_java_implementation, superised, superising

Instance Method Details

#idObject

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

#parentObject 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

#playerObject

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