Пример #1
0
 void setEndProperties(TSF_EA.AssociationEnd eaEnd, MDAssociationEnd mdEnd)
 {
     //set the aggregationKind
     if (mdEnd.aggregationKind == "shared")
     {
         eaEnd.aggregation = UML.Classes.Kernel.AggregationKind.shared;
     }
     else
     {
         eaEnd.aggregation = UML.Classes.Kernel.AggregationKind.none;
     }
     //set the name
     eaEnd.name = mdEnd.name;
     //set the multiplicity
     if (!string.IsNullOrEmpty(mdEnd.lowerBound) &&
         !string.IsNullOrEmpty(mdEnd.upperBound))
     {
         eaEnd.multiplicity = new TSF_EA.Multiplicity(mdEnd.lowerBound, mdEnd.upperBound);
     }
 }
Пример #2
0
 public MDAssociation(MDAssociationEnd source, MDAssociationEnd target, string md_guid)
 {
     this.source  = source;
     this.target  = target;
     this.md_guid = md_guid;
 }