public AttributeAssignment(SQLRepository repository, ObjectVariable ov, SQLAttribute attribute) { this.Attribute = attribute; this.AttributeGUID = attribute.AttributeGUID; this.AttributeName = attribute.Name; this.Repository = repository; this.OvName = ov.Name; }
public static ObjectVariable createCorrectOvType(SQLElement eaElement, SQLRepository repository) { ObjectVariable ov = null; if (eaElement.Stereotype == SDMModelingMain.ObjectVariableStereotype) { ov = new ObjectVariable(eaElement, repository); } else if (eaElement.Stereotype == TGGModelingMain.TggObjectVariableStereotype) { ov = new TGGObjectVariable(eaElement, repository); } else if (eaElement.Stereotype == TGGModelingMain.TggCorrespondenceStereotype) { ov = new TGGCorrespondence(eaElement, repository); } return(ov); }