Example #1
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            AttributeType copyAttributeType = (AttributeType)copyComponent;

            copyAttributeType.Name          = this.Name;
            copyAttributeType.IsSealed      = this.IsSealed;
            copyAttributeType.XSDDefinition = this.XSDDefinition;
            copyAttributeType.XSDAtomic     = this.XSDAtomic;
            if (BaseType != null)
            {
                copyAttributeType.baseTypeGuid = createdCopies.GetGuidForCopyOf(BaseType);
            }
            if (Schema != null)
            {
                copyAttributeType.schemaGuid = createdCopies.GetGuidForCopyOf(Schema);
            }
            if (Component != null)
            {
                copyAttributeType.componentGuid = createdCopies.GetGuidForCopyOf(Component);
            }
            if (RepresentedPIMType != null)
            {
                copyAttributeType.representedPIMTypeGuid = RepresentedPIMType;
            }
            this.CopyCollection(Operations, copyAttributeType.Operations, projectVersion, createdCopies);
            copyAttributeType.SetProjectVersion(projectVersion);
        }
Example #2
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PSMGeneralization copyPSMGeneralization = (PSMGeneralization)copyComponent;

            copyPSMGeneralization.generalGuid  = createdCopies.GetGuidForCopyOf(General);
            copyPSMGeneralization.specificGuid = createdCopies.GetGuidForCopyOf(Specific);
        }
Example #3
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PSMAssociation copyPSMAssociation = (PSMAssociation)copyComponent;

            copyPSMAssociation.Lower      = this.Lower;
            copyPSMAssociation.Upper      = this.Upper;
            copyPSMAssociation.parentGuid = createdCopies.GetGuidForCopyOf(Parent);
            copyPSMAssociation.childGuid  = createdCopies.GetGuidForCopyOf(Child);
        }
Example #4
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PIMAssociationEnd copyPIMAssociationEnd = (PIMAssociationEnd)copyComponent;

            copyPIMAssociationEnd.Lower              = this.Lower;
            copyPIMAssociationEnd.Upper              = this.Upper;
            copyPIMAssociationEnd.IsNavigable        = this.IsNavigable;
            copyPIMAssociationEnd.IsShared           = this.IsShared;
            copyPIMAssociationEnd.isComposite        = this.IsComposite;
            copyPIMAssociationEnd.pimClassGuid       = createdCopies.GetGuidForCopyOf(PIMClass);
            copyPIMAssociationEnd.pimAssociationGuid = createdCopies.GetGuidForCopyOf(PIMAssociation);
        }
Example #5
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PIMAttribute copyPIMAttribute = (PIMAttribute)copyComponent;

            copyPIMAttribute.Lower        = this.Lower;
            copyPIMAttribute.Upper        = this.Upper;
            copyPIMAttribute.DefaultValue = this.DefaultValue;

            if (AttributeType != null)
            {
                copyPIMAttribute.attributeTypeGuid = createdCopies.GetGuidForCopyOf(AttributeType);
            }
            copyPIMAttribute.pimClassGuid = createdCopies.GetGuidForCopyOf(PIMClass);
        }
Example #6
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);
            Component _copyComponent = (Component)copyComponent;

            _copyComponent.schemaGuid = createdCopies.GetGuidForCopyOf(Schema);
            _copyComponent.Name       = this.Name;
        }
Example #7
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            ModelOperation copyModelOperation = (ModelOperation)copyComponent;

            if (PIMClass != null)
            {
                copyModelOperation.pimClassGuid = createdCopies.GetGuidForCopyOf(PIMClass);
            }
            if (DeclaringType != null)
            {
                copyModelOperation.declaringTypeGuid = createdCopies.GetGuidForCopyOf(DeclaringType);
            }

            this.CopyCollection <ModelOperationParameter>(Parameters, copyModelOperation.Parameters, projectVersion, createdCopies);
        }
Example #8
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            StereotypeInstance copyStereotypeInstance = (StereotypeInstance)copyComponent;

            copyStereotypeInstance.componentGuid  = createdCopies.GetGuidForCopyOf(Component);
            copyStereotypeInstance.stereotypeGuid = this.stereotypeGuid;
        }
Example #9
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PSMComponent copyPSMComponent = (PSMComponent)copyComponent;

            if (Interpretation != null)
            {
                copyPSMComponent.interpretationGuid = createdCopies.GetGuidForCopyOf(Interpretation);
            }
        }
Example #10
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PSMSchemaReference copyPSMSchemaReference = (PSMSchemaReference)copyComponent;

            copyPSMSchemaReference.Namespace            = this.Namespace;
            copyPSMSchemaReference.NamespacePrefix      = this.NamespacePrefix;
            copyPSMSchemaReference.SchemaLocation       = this.SchemaLocation;
            copyPSMSchemaReference.ReferenceType        = this.ReferenceType;
            copyPSMSchemaReference.referencedSchemaGuid = createdCopies.GetGuidForCopyOf(ReferencedPSMSchema);
        }
Example #11
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            Diagram copyDiagram = (Diagram)copyComponent;

            copyDiagram.SetProjectVersion(projectVersion);
            copyDiagram.Caption    = this.Caption;
            copyDiagram.schemaGuid = createdCopies.GetGuidForCopyOf(this.Schema);
            this.CopyRefCollection(Components, copyDiagram.Components, projectVersion, createdCopies);
            this.CopyDictionary(ViewHelpers, copyDiagram.ViewHelpers, projectVersion, createdCopies);
        }
Example #12
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PSMAssociationMember copyPSMAssociationMember = (PSMAssociationMember)copyComponent;

            if (ParentAssociation != null)
            {
                copyPSMAssociationMember.parentAssociationGuid = createdCopies.GetGuidForCopyOf(ParentAssociation);
            }

            this.CopyRefCollection(ChildPSMAssociations, copyPSMAssociationMember.ChildPSMAssociations, projectVersion, createdCopies, true);
        }
Example #13
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PSMClass copyPSMClass = (PSMClass)copyComponent;

            if (RepresentedClass != null)
            {
                copyPSMClass.representedClassGuid = createdCopies.GetGuidForCopyOf(RepresentedClass);
            }
            this.CopyCollection(PSMAttributes, copyPSMClass.PSMAttributes, projectVersion, createdCopies);
            copyPSMClass.Abstract = this.Abstract;
            copyPSMClass.Final    = this.Final;
        }
Example #14
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PIMClass copyPIMClass = (PIMClass)copyComponent;

            this.CopyCollection(PIMAttributes, copyPIMClass.PIMAttributes, projectVersion, createdCopies);
            this.CopyCollection(PIMOperations, copyPIMClass.PIMOperations, projectVersion, createdCopies);
            this.CopyRefCollection(GeneralizationsAsGeneral, copyPIMClass.GeneralizationsAsGeneral, projectVersion, createdCopies, true);
            if (GeneralizationAsSpecific != null)
            {
                copyPIMClass.generalizationAsSpecificGuid = createdCopies.GetGuidForCopyOf(GeneralizationAsSpecific);
            }
            this.CopyRefCollection(PIMAssociationEnds, copyPIMClass.PIMAssociationEnds, projectVersion, createdCopies, true);
            copyPIMClass.Abstract = this.Abstract;
            copyPIMClass.Final    = this.Final;
        }
Example #15
0
 public override IExolutioCloneable Clone(ProjectVersion projectVersion, ElementCopiesMap createdCopies)
 {
     return(new LabelViewHelper(projectVersion.Project.TranslateComponent <Diagram>(createdCopies.GetGuidForCopyOf(Diagram))));
 }