Class: Java_collectionMapping_base
- Inherits:
-
Object
- Object
- Java_collectionMapping_base
- Defined in:
- lib/ontomde-java/java/collectionMapping.rb
Overview
Helper class for wrapping a base type in ad-hoc collection.
Direct Known Subclasses
Java_collectionMapping_Collection_ArrayList, Java_collectionMapping_List_ArrayList, Java_collectionMapping_Set_HashSet
Instance Method Summary collapse
-
#addCollectionImplem(type) ⇒ Object
return type enclosed in collection implementation declaration.
-
#addCollectionInterface(type) ⇒ Object
return type enclosed in collection interface declaration.
-
#addNew(type) ⇒ Object
return new element type collection creator.
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 |