Module: Muml_MultiplicityElement
- Defined in:
- lib/ontomde-java/java/collectionMapping.rb,
lib/ontomde-java/java/xsdCollectionMapping.rb
Overview
Java collection mapping rules for UML property and UML parameter.
Instance Method Summary collapse
-
#java_getCollectionMapping ⇒ Object
returns a Java_collectionMaping object containing mapping rules to java collection element.
-
#xsd_getCollectionMapping ⇒ Object
returns a XSD_collectionMaping object containing mapping rules to java collection element.
Instance Method Details
#java_getCollectionMapping ⇒ Object
returns a Java_collectionMaping object containing mapping rules to java collection element
Examples:
-
Array
-
List
-
Set
Reference:
-
#java_use_Arrays?
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ontomde-java/java/collectionMapping.rb', line 13 def java_getCollectionMapping if self.umlx_upperValueIsOne? return Java_collectionMapping_None.instance elsif java_use_Arrays? return Java_collectionMapping_Array.instance elsif uml_isOrdered? # this mapping is used wether or not isUnique return Java_collectionMapping_List_ArrayList.instance elsif uml_isUnique return Java_collectionMapping_Set_HashSet.instance else return Java_collectionMapping_Collection_ArrayList.instance end end |
#xsd_getCollectionMapping ⇒ Object
returns a XSD_collectionMaping object containing mapping rules to java collection element
Examples:
-
Array
-
List
-
Set
Reference:
-
#xsd_use_Arrays?
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ontomde-java/java/xsdCollectionMapping.rb', line 13 def xsd_getCollectionMapping if self.umlx_upperValueIsOne? return XSD_collectionMapping_None.instance elsif xsd_use_Arrays? return XSD_collectionMapping_Array.instance elsif uml_isOrdered? # this mapping is used wether or not isUnique return XSD_collectionMapping_List_ArrayList.instance elsif uml_isUnique return XSD_collectionMapping_Set_HashSet.instance else return XSD_collectionMapping_Collection_ArrayList.instance end end |