Module: Muml_TypedElement
- Defined in:
- lib/ontomde-java/java/xsd.rb,
lib/ontomde-java/flex/main.rb,
lib/ontomde-java/flex/main.rb,
lib/ontomde-java/java/java.rb,
lib/ontomde-java/vmware/vso.rb,
lib/ontomde-java/java/component.rb
Constant Summary collapse
- ACTION_SCRIPT_COLLECTION =
ActionScript Collection container type.
'mx.collections.ArrayCollection'
Instance Method Summary collapse
-
#as_propertyRoleTypeWithGenerics ⇒ Object
Returns an action script array ActionScript 3 does not support type collection.
- #java_propertyAssociationConcreteType ⇒ Object
- #java_propertyAssociationType ⇒ Object
-
#java_propertyRoleConcreteType ⇒ Object
return java property type.
- #java_propertyRoleType ⇒ Object
- #vso_TypeName ⇒ Object
- #xsd_propertyAssociationConcreteType ⇒ Object
- #xsd_propertyAssociationType ⇒ Object
-
#xsd_propertyRoleConcreteType ⇒ Object
return java property type.
- #xsd_propertyRoleType ⇒ Object
Instance Method Details
#as_propertyRoleTypeWithGenerics ⇒ Object
Returns an action script array ActionScript 3 does not support type collection.
189 190 191 192 193 194 195 196 197 |
# File 'lib/ontomde-java/flex/main.rb', line 189 def as_propertyRoleTypeWithGenerics jtype="" if uml_type.empty? jtype="Number /* TODO: FIX:undefined type in uml model */ " else jtype = uml_type_one.as_qualifiedName end return umlx_upperValueIsOne? ? jtype : ACTION_SCRIPT_COLLECTION end |
#java_propertyAssociationConcreteType ⇒ Object
1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 |
# File 'lib/ontomde-java/java/java.rb', line 1305 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
1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 |
# File 'lib/ontomde-java/java/java.rb', line 1316 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>
1295 1296 1297 1298 |
# File 'lib/ontomde-java/java/java.rb', line 1295 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
1300 1301 1302 1303 |
# File 'lib/ontomde-java/java/java.rb', line 1300 def java_propertyRoleType return java_getCollectionMapping.addCollectionInterface( uml_type.empty? ? "Integer /* TODO: FIX:undefined type in uml model */ " : uml_type_one.java_qualifiedName ) end |
#vso_TypeName ⇒ Object
261 262 263 |
# File 'lib/ontomde-java/vmware/vso.rb', line 261 def vso_TypeName return %{#{"[" unless self.umlx_upperValueIsOne?}#{self.uml_type_one.java_Name}} end |
#xsd_propertyAssociationConcreteType ⇒ Object
1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 |
# File 'lib/ontomde-java/java/xsd.rb', line 1279 def xsd_propertyAssociationConcreteType return xsd_propertyRoleConcreteType if uml_qualifier.empty? j="java.util.Hashtable<" sep_next="" uml_qualifier.each { |key| j=j+sep_next+key.xsd_propertyRoleConcreteType sep_next="," } j=j+","+xsd_propertyRoleConcreteType+">" return j end |
#xsd_propertyAssociationType ⇒ Object
1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 |
# File 'lib/ontomde-java/java/xsd.rb', line 1290 def xsd_propertyAssociationType return xsd_propertyRoleType if uml_qualifier.empty? j="java.util.Hashtable<" sep_next="" uml_qualifier.each { |key| j=j+sep_next+key.xsd_propertyRoleType sep_next="," } j=j+","+xsd_propertyRoleType+">" return j end |
#xsd_propertyRoleConcreteType ⇒ Object
return java property type. (Uses xsd_qualifiedName)
NOTE
-
used for UML Parameter and UML Property
-
return “int” and a TODO comment if uml_type is undefined.
Example:
-
String
-
Set<String>
1269 1270 1271 1272 |
# File 'lib/ontomde-java/java/xsd.rb', line 1269 def xsd_propertyRoleConcreteType return xsd_getCollectionMapping.addCollectionImplem( uml_type.empty? ? "Integer /* TODO: FIX:undefined type in uml model */ " : uml_type_one.xsd_qualifiedName ) end |
#xsd_propertyRoleType ⇒ Object
1274 1275 1276 1277 |
# File 'lib/ontomde-java/java/xsd.rb', line 1274 def xsd_propertyRoleType return xsd_getCollectionMapping.addCollectionInterface( uml_type.empty? ? "Integer /* TODO: FIX:undefined type in uml model */ " : uml_type_one.xsd_qualifiedName ) end |