Class: Java_collectionMapping_base
- Inherits:
-
Object
- Object
- Java_collectionMapping_base
- Defined in:
- lib/ontomde-uml2-java/collectionMapping.rb
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
38 39 40 |
# File 'lib/ontomde-uml2-java/collectionMapping.rb', line 38 def addCollectionImplem(type) return "#{getImplem}<#{type}>" end |
#addCollectionInterface(type) ⇒ Object
return type enclosed in collection interface declaration
34 35 36 |
# File 'lib/ontomde-uml2-java/collectionMapping.rb', line 34 def addCollectionInterface(type) return "#{getInterface}<#{type}>" end |
#addNew(type) ⇒ Object
return new element type collection creator
42 43 44 |
# File 'lib/ontomde-uml2-java/collectionMapping.rb', line 42 def addNew(type) return "new #{getImplem}<#{type}>()" end |