Module: Muml_TypedElement
- Defined in:
- lib/ontomde-uml2-java/java.rb
Instance Method Summary collapse
- #java_propertyAssociationConcreteType ⇒ Object
- #java_propertyAssociationType ⇒ Object
-
#java_propertyRoleConcreteType ⇒ Object
return java property type.
- #java_propertyRoleType ⇒ Object
Instance Method Details
#java_propertyAssociationConcreteType ⇒ Object
1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 |
# File 'lib/ontomde-uml2-java/java.rb', line 1093 def java_propertyAssociationConcreteType return java_propertyRoleConcreteType if uml_qualifier.empty? j="java.util.Hashtable<" sep_next="" uml_qualifier.each { |key| j=j+sep_next+key.java_propertyRoleConcreteType sep_next="," } j=j+","+java_propertyRoleConcreteType+">" return j end |
#java_propertyAssociationType ⇒ Object
1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 |
# File 'lib/ontomde-uml2-java/java.rb', line 1104 def java_propertyAssociationType return java_propertyRoleType if uml_qualifier.empty? j="java.util.Hashtable<" sep_next="" uml_qualifier.each { |key| j=j+sep_next+key.java_propertyRoleType sep_next="," } j=j+","+java_propertyRoleType+">" return j end |
#java_propertyRoleConcreteType ⇒ Object
return java property type. (Uses java_qualifiedName)
NOTE
-
used for UML Parameter and UML Property
-
return “int” and a TODO comment if uml_type is undefined.
Example:
-
String
-
Set<String>
1083 1084 1085 1086 |
# File 'lib/ontomde-uml2-java/java.rb', line 1083 def java_propertyRoleConcreteType return java_getCollectionMapping.addCollectionImplem( uml_type.empty? ? "Integer /* TODO: FIX:undefined type in uml model */ " : uml_type_one.java_qualifiedName ) end |
#java_propertyRoleType ⇒ Object
1088 1089 1090 1091 |
# File 'lib/ontomde-uml2-java/java.rb', line 1088 def java_propertyRoleType return java_getCollectionMapping.addCollectionInterface( uml_type.empty? ? "Integer /* TODO: FIX:undefined type in uml model */ " : uml_type_one.java_qualifiedName ) end |