rtm-javatmapi 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rtm/javatmapi.rb +34 -11
- data/lib/rtm/javatmapi/aliases.rb +17 -17
- data/lib/rtm/javatmapi/core.rb +1 -0
- data/lib/rtm/javatmapi/core/association.rb +2 -2
- data/lib/rtm/javatmapi/core/construct.rb +30 -6
- data/lib/rtm/javatmapi/core/datatype_aware.rb +60 -0
- data/lib/rtm/javatmapi/core/locator.rb +4 -8
- data/lib/rtm/javatmapi/core/name.rb +65 -39
- data/lib/rtm/javatmapi/core/occurrence.rb +4 -28
- data/lib/rtm/javatmapi/core/reifiable.rb +7 -17
- data/lib/rtm/javatmapi/core/role.rb +3 -3
- data/lib/rtm/javatmapi/core/scoped.rb +7 -12
- data/lib/rtm/javatmapi/core/topic.rb +132 -61
- data/lib/rtm/javatmapi/core/topic_map.rb +88 -57
- data/lib/rtm/javatmapi/core/typed.rb +2 -2
- data/lib/rtm/javatmapi/core/variant.rb +5 -5
- data/lib/rtm/javatmapi/javalibs/ctm-writer-1.0.0a.jar +0 -0
- data/lib/rtm/javatmapi/javalibs/tmapi-2.0.jar +0 -0
- data/lib/rtm/javatmapi/superiseable.rb +9 -52
- metadata +6 -8
- data/lib/rtm/javatmapi/base.rb +0 -30
- data/lib/rtm/javatmapi/inclusion.rb +0 -46
- data/lib/rtm/javatmapi/java_implementations.rb +0 -40
- data/lib/rtm/javatmapi/javalibs/tmapi-2.0a2.jar +0 -0
@@ -1,40 +0,0 @@
|
|
1
|
-
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
|
2
|
-
# License: Apache License, Version 2.0
|
3
|
-
|
4
|
-
module Superiseable
|
5
|
-
module WithJavaImplementations
|
6
|
-
|
7
|
-
class CJavaImplementations
|
8
|
-
def initialize
|
9
|
-
@java_implementations = Hash.new{|h,k| h[k] = []}
|
10
|
-
end
|
11
|
-
|
12
|
-
def [](interface)
|
13
|
-
@java_implementations[interface]
|
14
|
-
end
|
15
|
-
|
16
|
-
def add(interface,impl)
|
17
|
-
begin
|
18
|
-
begin
|
19
|
-
impl
|
20
|
-
rescue
|
21
|
-
puts "Error in java_implementations.rb: #{interface}: #{impl}"
|
22
|
-
end
|
23
|
-
@java_implementations[interface] << impl
|
24
|
-
rescue
|
25
|
-
puts "Something went wrong in java_implementations.rb"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
JavaImplementations = CJavaImplementations.new
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
module Java::OrgTmapiCore::Construct
|
35
|
-
include Superiseable::WithJavaImplementations
|
36
|
-
end
|
37
|
-
|
38
|
-
module Java::OrgTmapiCore::Locator
|
39
|
-
include Superiseable::WithJavaImplementations
|
40
|
-
end
|
Binary file
|