Class: RTM::Ontopia
- Inherits:
-
JavaTMAPI
- Object
- JavaTMAPI
- RTM::Ontopia
- Defined in:
- lib/rtm/ontopia.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Rdbms
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Ontopia
constructor
A new instance of Ontopia.
Constructor Details
#initialize(*args) ⇒ Ontopia
Returns a new instance of Ontopia.
17 18 19 20 21 22 23 24 25 |
# File 'lib/rtm/ontopia.rb', line 17 def initialize(*args) super tmsf = Java::NetOntopiaTopicmapsImplTmapi2::TopicMapSystemFactory.new set_tmsf(tmsf) set_properties(@params[:properties]) set_features(@params[:features]) create_system end |
Class Method Details
.connect(*args) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rtm/ontopia.rb', line 27 def self.connect(*args) params = args.first # redirect to create an rdbms connection if an adapter is given and we did not already com from there if params && params[:adapter] && self != OntopiaRdbms OntopiaRdbms.connect(*args) else # adapter was not given or we already handled it and came back here through super super end end |