private static T CreateFrom(UML.Classes.Kernel.Class clazz) { GlossaryItem item; Type TType = typeof(T); if (TType == typeof(BusinessItem)) { item = new BusinessItem(); } else if (TType == typeof(DataItem)) { item = new DataItem(); } else { return(null); } if (!clazz.stereotypes.Any(x => x.name.Equals(item.Stereotype))) { return(null); } item.Origin = clazz as TSF_EA.ElementWrapper; return((T)item); }
protected override List <string> AsListItemData(GlossaryItem item) { BusinessItem bi = item as BusinessItem; return(new List <string>() { bi.Name, bi.Description, bi.Version, bi.Status.ToString(), bi.UpdateDate.ToString() }); }