예제 #1
0
 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;
 }
예제 #2
0
        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);
        }