Module: Java::OrgTmapiCore::Typed
Overview
Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. License: Apache License, Version 2.0
Instance Method Summary collapse
-
#type ⇒ Object
Returns the type of this typed construct (occurrence, role, association or name).
-
#type=(identifier) ⇒ Object
Sets the type of this typed Construct.
Methods included from Superiseable
method_added, register_java_implementation, superised, superising
Instance Method Details
#type ⇒ Object
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 |