public override List <String> doRule(SQLElement eaElement, SQLWrapperClasses.SQLRepository repository) { List <String> results = new List <string>(); if (MocaTaggableElement.isIgnored(eaElement)) { return(results); } if (eaElement.Stereotype == SDMModelingMain.StatementNodeStereotype || eaElement.Stereotype == SDMModelingMain.StoryNodeStereotype || eaElement.Stereotype == SDMModelingMain.StopNodeStereotype) { int incomingCount = 0; foreach (SQLConnector edge in eaElement.Connectors) { if (edge.SupplierID == eaElement.ElementID) { incomingCount++; } } if (incomingCount == 0) { results.Add("At least one incoming Edge is needed"); } } return(results); }
public static void addToTreeQueue(String GUID, MocaTaggableElement tagElement) { if (!SaveTreeQueue.ContainsKey(GUID)) { SaveTreeQueue.Add(GUID, tagElement); } }