Class: Java_collectionMapping_base

Inherits:
Object
  • Object
show all
Defined in:
lib/ontomde-java/java/collectionMapping.rb

Overview

Helper class for wrapping a base type in ad-hoc collection.

Instance Method Summary collapse

Instance Method Details

#addCollectionImplem(type) ⇒ Object

return type enclosed in collection implementation declaration



49
50
51
# File 'lib/ontomde-java/java/collectionMapping.rb', line 49

def addCollectionImplem(type)
  return "#{getImplem}<#{type}>"
end

#addCollectionInterface(type) ⇒ Object

return type enclosed in collection interface declaration



45
46
47
# File 'lib/ontomde-java/java/collectionMapping.rb', line 45

def addCollectionInterface(type)
  return "#{getInterface}<#{type}>"
end

#addNew(type) ⇒ Object

return new element type collection creator



53
54
55
# File 'lib/ontomde-java/java/collectionMapping.rb', line 53

def addNew(type)
  return "new #{getImplem}<#{type}>()"
end