|
@@ -203,24 +203,30 @@ String function readAssociationDestination(model : Element, name : String):
|
|
|
Element function allAssociationDestinations(model : Element, name : String, association_type : String):
|
|
|
Element tmp
|
|
|
Element result
|
|
|
+ String val
|
|
|
|
|
|
result = set_create()
|
|
|
tmp = allOutgoingAssociationInstances(model, name, association_type)
|
|
|
|
|
|
while (set_len(tmp) > 0):
|
|
|
- set_add(result, readAssociationDestination(model, set_pop(tmp)))
|
|
|
+ val = readAssociationDestination(model, set_pop(tmp))
|
|
|
+ if (val != ""):
|
|
|
+ set_add(result, val)
|
|
|
|
|
|
return result!
|
|
|
|
|
|
Element function allAssociationOrigins(model : Element, name : String, association_type : String):
|
|
|
Element tmp
|
|
|
Element result
|
|
|
+ String val
|
|
|
|
|
|
result = set_create()
|
|
|
tmp = allIncomingAssociationInstances(model, name, association_type)
|
|
|
|
|
|
while (set_len(tmp) > 0):
|
|
|
- set_add(result, readAssociationSource(model, set_pop(tmp)))
|
|
|
+ val = readAssociationSource(model, set_pop(tmp))
|
|
|
+ if (val != ""):
|
|
|
+ set_add(result, val)
|
|
|
|
|
|
return result!
|
|
|
|