Module: Java::OrgTmapiCore::Typed

Extended by:
Superiseable
Includes:
RTM::Typed
Defined in:
lib/rtm/javatmapi/core/typed.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

#typeObject

Returns the type of this typed construct (occurrence, role, association or name).

:call-seq:

type -> Topic


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

def type
  getType
end

#type=(identifier) ⇒ Object

Sets the type of this typed Construct. Any previous type is overridden.

Identifier may be a topic reference.

:call-seq:

type=(identifier)


27
28
29
# File 'lib/rtm/javatmapi/core/typed.rb', line 27

def type=(identifier)
	setType(topic_map.get!(identifier))
end