Exemple #1
0
 public void AddMemberName(string shortName)
 {
     if (_memberNames == null)
     {
         _memberNames = new global::System.Collections.Generic.Dictionary <string, string>();
     }
     _memberNames.Add(shortName, FullName + "." + shortName);
 }
Exemple #2
0
 public void AddEnumValue(string name, object value)
 {
     if (_enumValues == null)
     {
         _enumValues = new global::System.Collections.Generic.Dictionary <string, object>();
     }
     _enumValues.Add(name, value);
 }
Exemple #3
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(10);
                createElementLinkMap.Add(typeof(AbstractionModelHasConceptType), 0);
                createElementLinkMap.Add(typeof(AbstractionModelHasInformationTypeFormat), 1);
                createElementLinkMap.Add(typeof(ConceptTypeHasUniqueness), 2);
                createElementLinkMap.Add(typeof(ConceptTypeHasChildAsPartOfAssociation), 3);
                createElementLinkMap.Add(typeof(InformationType), 4);
                createElementLinkMap.Add(typeof(ConceptTypeRelatesToConceptType), 5);
                createElementLinkMap.Add(typeof(ConceptTypeAssimilatesConceptType), 6);
                createElementLinkMap.Add(typeof(UniquenessIncludesConceptTypeChild), 7);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::ORMSolutions.ORMArchitect.ORMAbstraction.AbstractionDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new AbstractionModelHasConceptType(partition, roleAssignments, propertyAssignments));

            case 1: return(new AbstractionModelHasInformationTypeFormat(partition, roleAssignments, propertyAssignments));

            case 2: return(new ConceptTypeHasUniqueness(partition, roleAssignments, propertyAssignments));

            case 3: return(new ConceptTypeHasChildAsPartOfAssociation(partition, roleAssignments, propertyAssignments));

            case 4: return(new InformationType(partition, roleAssignments, propertyAssignments));

            case 5: return(new ConceptTypeRelatesToConceptType(partition, roleAssignments, propertyAssignments));

            case 6: return(new ConceptTypeAssimilatesConceptType(partition, roleAssignments, propertyAssignments));

            case 7: return(new UniquenessIncludesConceptTypeChild(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #4
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(8);
                createElementLinkMap.Add(typeof(FONDOHasClase), 0);
                createElementLinkMap.Add(typeof(ClaseHasAtributo), 1);
                createElementLinkMap.Add(typeof(RelacionBase), 2);
                createElementLinkMap.Add(typeof(ClaseHasOperacion), 3);
                createElementLinkMap.Add(typeof(RelacionHerencia), 4);
                createElementLinkMap.Add(typeof(RelacionAgregacion), 5);
                createElementLinkMap.Add(typeof(RelacionAsociacion), 6);
                createElementLinkMap.Add(typeof(OperacionHasParametro), 7);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::UPM_IPS.DRMRRBRRMProyectoIPS.DRMRRBRRMProyectoIPSDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new FONDOHasClase(partition, roleAssignments, propertyAssignments));

            case 1: return(new ClaseHasAtributo(partition, roleAssignments, propertyAssignments));

            case 2: return(new RelacionBase(partition, roleAssignments, propertyAssignments));

            case 3: return(new ClaseHasOperacion(partition, roleAssignments, propertyAssignments));

            case 4: return(new RelacionHerencia(partition, roleAssignments, propertyAssignments));

            case 5: return(new RelacionAgregacion(partition, roleAssignments, propertyAssignments));

            case 6: return(new RelacionAsociacion(partition, roleAssignments, propertyAssignments));

            case 7: return(new OperacionHasParametro(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #5
0
        public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }

            if (createElementMap == null)
            {
                createElementMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(10);
                createElementMap.Add(typeof(EntityType), 0);
                createElementMap.Add(typeof(Attribute), 1);
                createElementMap.Add(typeof(Value), 2);
                createElementMap.Add(typeof(Role), 3);
                createElementMap.Add(typeof(CardinalityQualifier), 4);
                createElementMap.Add(typeof(OptionalRole), 5);
                createElementMap.Add(typeof(ExclusiveArc), 6);
                createElementMap.Add(typeof(BinaryAssociation), 7);
                createElementMap.Add(typeof(BarkerErModel), 8);
            }
            int index;

            if (!createElementMap.TryGetValue(elementType, out index))
            {
                throw new global::System.ArgumentException("elementType is not recognized as a type of domain class which belongs to this domain model.");
            }
            switch (index)
            {
            case 0: return(new EntityType(partition, propertyAssignments));

            case 1: return(new Attribute(partition, propertyAssignments));

            case 2: return(new Value(partition, propertyAssignments));

            case 3: return(new Role(partition, propertyAssignments));

            case 4: return(new CardinalityQualifier(partition, propertyAssignments));

            case 5: return(new OptionalRole(partition, propertyAssignments));

            case 6: return(new ExclusiveArc(partition, propertyAssignments));

            case 7: return(new BinaryAssociation(partition, propertyAssignments));

            case 8: return(new BarkerErModel(partition, propertyAssignments));

            default: return(null);
            }
        }
Exemple #6
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(4);
                createElementLinkMap.Add(typeof(SampleOrmModelHasElements), 0);
                createElementLinkMap.Add(typeof(EntityHasRelationShips), 1);
                createElementLinkMap.Add(typeof(EntityHasProperties), 2);
                createElementLinkMap.Add(typeof(EntityHasReferences), 3);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::Company.OrmLanguage.OrmLanguageDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new SampleOrmModelHasElements(partition, roleAssignments, propertyAssignments));

            case 1: return(new EntityHasRelationShips(partition, roleAssignments, propertyAssignments));

            case 2: return(new EntityHasProperties(partition, roleAssignments, propertyAssignments));

            case 3: return(new EntityHasReferences(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #7
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(8);
                createElementLinkMap.Add(typeof(FactTypeMapsTowardsRole), 0);
                createElementLinkMap.Add(typeof(AbstractionModelIsForORMModel), 1);
                createElementLinkMap.Add(typeof(ConceptTypeIsForObjectType), 2);
                createElementLinkMap.Add(typeof(ConceptTypeChildHasPathFactType), 3);
                createElementLinkMap.Add(typeof(InformationTypeFormatIsForValueType), 4);
                createElementLinkMap.Add(typeof(UniquenessIsForUniquenessConstraint), 5);
                createElementLinkMap.Add(typeof(ExcludedORMModelElement), 6);
                createElementLinkMap.Add(typeof(GenerationSettingTargetsAbstractionModel), 7);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                throw new global::System.ArgumentException("elementLinkType is not recognized as a type of domain relationship which belongs to this domain model.");
            }
            switch (index)
            {
            // A constructor was not generated for FactTypeMapsTowardsRole because it had HasCustomConstructor
            // set to true. Please provide the constructor below.
            case 0: return(new FactTypeMapsTowardsRole(partition, roleAssignments, propertyAssignments));

            case 1: return(new AbstractionModelIsForORMModel(partition, roleAssignments, propertyAssignments));

            case 2: return(new ConceptTypeIsForObjectType(partition, roleAssignments, propertyAssignments));

            case 3: return(new ConceptTypeChildHasPathFactType(partition, roleAssignments, propertyAssignments));

            case 4: return(new InformationTypeFormatIsForValueType(partition, roleAssignments, propertyAssignments));

            case 5: return(new UniquenessIsForUniquenessConstraint(partition, roleAssignments, propertyAssignments));

            case 6: return(new ExcludedORMModelElement(partition, roleAssignments, propertyAssignments));

            case 7: return(new GenerationSettingTargetsAbstractionModel(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #8
0
        public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }

            if (createElementMap == null)
            {
                createElementMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(5);
                createElementMap.Add(typeof(ExampleModel), 0);
                createElementMap.Add(typeof(ExampleElement), 1);
                createElementMap.Add(typeof(LanguageSmDiagram), 2);
                createElementMap.Add(typeof(ExampleConnector), 3);
                createElementMap.Add(typeof(ExampleShape), 4);
            }
            int index;

            if (!createElementMap.TryGetValue(elementType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::CompanyName.LanguageSm.LanguageSmDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
                    elementType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementType");
            }
            switch (index)
            {
            case 0: return(new ExampleModel(partition, propertyAssignments));

            case 1: return(new ExampleElement(partition, propertyAssignments));

            case 2: return(new LanguageSmDiagram(partition, propertyAssignments));

            case 3: return(new ExampleConnector(partition, propertyAssignments));

            case 4: return(new ExampleShape(partition, propertyAssignments));

            default: return(null);
            }
        }
Exemple #9
0
        // enforces a bijection Adaptee-->Adapter:
        public static _nMemberInfoAdapter <A, C> getMemberInfoAdapter(A memberInfoAdaptee)
        {
            _nMemberInfoAdapter <A, C> result;

            if (!adapteeTable.TryGetValue(memberInfoAdaptee, out result))
            {
                result = new _nMemberInfoAdapter <A, C>(memberInfoAdaptee);
                adapteeTable.Add(memberInfoAdaptee, result);
            }
            return(result);
        }
Exemple #10
0
        private global::StrawberryShake.OperationRequest CreateRequest(global::System.String email)
        {
            var arguments = new global::System.Collections.Generic.Dictionary <global::System.String, global::System.Object?>();

            arguments.Add("email", FormatEmail(email));

            return(new global::StrawberryShake.OperationRequest(
                       "GetMessages",
                       GetMessagesQueryDocument.Instance,
                       arguments));
        }
            public static ExhaustiveEntityData Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var instance = new ExhaustiveEntityData();

                {
                    instance.Field1 = obj.GetEntity(1);
                }
                {
                    if (obj.GetEntityCount(2) == 1)
                    {
                        instance.Field2 = new global::Improbable.Gdk.Core.EntitySnapshot?(obj.GetEntity(2));
                    }
                }
                {
                    {
                        instance.Field3 = new global::System.Collections.Generic.List <global::Improbable.Gdk.Core.EntitySnapshot>();
                        var list       = instance.Field3;
                        var listLength = obj.GetEntityCount(3);
                        for (var i = 0; i < listLength; i++)
                        {
                            list.Add(obj.IndexEntity(3, (uint)i));
                        }
                    }
                }
                {
                    {
                        var map     = new global::System.Collections.Generic.Dictionary <global::Improbable.Gdk.Core.EntitySnapshot, string>();
                        var mapSize = obj.GetObjectCount(4);
                        instance.Field4 = map;
                        for (var i = 0; i < mapSize; i++)
                        {
                            var mapObj = obj.IndexObject(4, (uint)i);
                            var key    = mapObj.GetEntity(1);
                            var value  = mapObj.GetString(2);
                            map.Add(key, value);
                        }
                    }
                }
                {
                    {
                        var map     = new global::System.Collections.Generic.Dictionary <string, global::Improbable.Gdk.Core.EntitySnapshot>();
                        var mapSize = obj.GetObjectCount(5);
                        instance.Field5 = map;
                        for (var i = 0; i < mapSize; i++)
                        {
                            var mapObj = obj.IndexObject(5, (uint)i);
                            var key    = mapObj.GetString(1);
                            var value  = mapObj.GetEntity(2);
                            map.Add(key, value);
                        }
                    }
                }
                return(instance);
            }
Exemple #12
0
        public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }

            if (createElementMap == null)
            {
                createElementMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(10);
                createElementMap.Add(typeof(LALDominio), 0);
                createElementMap.Add(typeof(Simbolo), 1);
                createElementMap.Add(typeof(Sinonimo), 2);
                createElementMap.Add(typeof(Nocao), 3);
                createElementMap.Add(typeof(Impacto), 4);
                createElementMap.Add(typeof(VisualLALDiagram), 5);
                createElementMap.Add(typeof(HyperlinkConnector), 6);
                createElementMap.Add(typeof(SimboloCompartment), 7);
            }
            int index;

            if (!createElementMap.TryGetValue(elementType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::Maxsys.VisualLAL.VisualLALDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
                    elementType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementType");
            }
            switch (index)
            {
            case 0: return(new LALDominio(partition, propertyAssignments));

            case 1: return(new Simbolo(partition, propertyAssignments));

            case 2: return(new Sinonimo(partition, propertyAssignments));

            case 3: return(new Nocao(partition, propertyAssignments));

            case 4: return(new Impacto(partition, propertyAssignments));

            case 5: return(new VisualLALDiagram(partition, propertyAssignments));

            case 6: return(new HyperlinkConnector(partition, propertyAssignments));

            case 7: return(new SimboloCompartment(partition, propertyAssignments));

            default: return(null);
            }
        }
Exemple #13
0
            public static global::Improbable.TestSchema.ExhaustiveEntity.Update DeserializeUpdate(global::Improbable.Worker.CInterop.SchemaComponentData data)
            {
                var update = new global::Improbable.TestSchema.ExhaustiveEntity.Update();
                var obj    = data.GetFields();

                update.Field1 = obj.GetEntity(1);

                if (obj.GetEntityCount(2) == 1)
                {
                    update.Field2 = new global::Improbable.Gdk.Core.Option <global::Improbable.Gdk.Core.EntitySnapshot?>(obj.GetEntity(2));
                }

                {
                    var listSize = obj.GetEntityCount(3);
                    update.Field3 = new global::Improbable.Gdk.Core.Option <global::System.Collections.Generic.List <global::Improbable.Gdk.Core.EntitySnapshot> >(new global::System.Collections.Generic.List <global::Improbable.Gdk.Core.EntitySnapshot>());

                    for (var i = 0; i < listSize; i++)
                    {
                        var value = obj.IndexEntity(3, (uint)i);
                        update.Field3.Value.Add(value);
                    }
                }

                {
                    var map     = new global::System.Collections.Generic.Dictionary <global::Improbable.Gdk.Core.EntitySnapshot, string>();
                    var mapSize = obj.GetObjectCount(4);
                    update.Field4 = map;

                    for (var i = 0; i < mapSize; i++)
                    {
                        var mapObj = obj.IndexObject(4, (uint)i);
                        var key    = mapObj.GetEntity(1);
                        var value  = mapObj.GetString(2);
                        map.Add(key, value);
                    }
                }

                {
                    var map     = new global::System.Collections.Generic.Dictionary <string, global::Improbable.Gdk.Core.EntitySnapshot>();
                    var mapSize = obj.GetObjectCount(5);
                    update.Field5 = map;

                    for (var i = 0; i < mapSize; i++)
                    {
                        var mapObj = obj.IndexObject(5, (uint)i);
                        var key    = mapObj.GetString(1);
                        var value  = mapObj.GetEntity(2);
                        map.Add(key, value);
                    }
                }

                return(update);
            }
Exemple #14
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(10);
                createElementLinkMap.Add(typeof(AbstractionModelHasConceptType), 0);
                createElementLinkMap.Add(typeof(AbstractionModelHasInformationTypeFormat), 1);
                createElementLinkMap.Add(typeof(ConceptTypeHasUniqueness), 2);
                createElementLinkMap.Add(typeof(ConceptTypeHasChildAsPartOfAssociation), 3);
                createElementLinkMap.Add(typeof(InformationType), 4);
                createElementLinkMap.Add(typeof(ConceptTypeRelatesToConceptType), 5);
                createElementLinkMap.Add(typeof(ConceptTypeAssimilatesConceptType), 6);
                createElementLinkMap.Add(typeof(UniquenessIncludesConceptTypeChild), 7);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                throw new global::System.ArgumentException("elementLinkType is not recognized as a type of domain relationship which belongs to this domain model.");
            }
            switch (index)
            {
            case 0: return(new AbstractionModelHasConceptType(partition, roleAssignments, propertyAssignments));

            case 1: return(new AbstractionModelHasInformationTypeFormat(partition, roleAssignments, propertyAssignments));

            case 2: return(new ConceptTypeHasUniqueness(partition, roleAssignments, propertyAssignments));

            case 3: return(new ConceptTypeHasChildAsPartOfAssociation(partition, roleAssignments, propertyAssignments));

            case 4: return(new InformationType(partition, roleAssignments, propertyAssignments));

            case 5: return(new ConceptTypeRelatesToConceptType(partition, roleAssignments, propertyAssignments));

            case 6: return(new ConceptTypeAssimilatesConceptType(partition, roleAssignments, propertyAssignments));

            case 7: return(new UniquenessIncludesConceptTypeChild(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #15
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(3);
                createElementLinkMap.Add(typeof(FactTypeShapeHasRoleDisplayOrder), 0);
                createElementLinkMap.Add(typeof(ORMDiagramHasExtensionElement), 1);
                createElementLinkMap.Add(typeof(ORMBaseShapeHasExtensionElement), 2);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::ORMSolutions.ORMArchitect.Core.ShapeModel.ORMShapeDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new FactTypeShapeHasRoleDisplayOrder(partition, roleAssignments, propertyAssignments));

            case 1: return(new ORMDiagramHasExtensionElement(partition, roleAssignments, propertyAssignments));

            case 2: return(new ORMBaseShapeHasExtensionElement(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(3);
                createElementLinkMap.Add(typeof(AbstractNodeReferencesTargetAbstractNode), 0);
                createElementLinkMap.Add(typeof(CompoundHasAbstractNode), 1);
                createElementLinkMap.Add(typeof(CompoundHasSubprogramNode), 2);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::SPbSU.RobotsLanguage.RobotsLanguageDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new AbstractNodeReferencesTargetAbstractNode(partition, roleAssignments, propertyAssignments));

            case 1: return(new CompoundHasAbstractNode(partition, roleAssignments, propertyAssignments));

            case 2: return(new CompoundHasSubprogramNode(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #17
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(3);
                createElementLinkMap.Add(typeof(PrototoolsHasVentana), 0);
                createElementLinkMap.Add(typeof(MenuHasMenuItem), 1);
                createElementLinkMap.Add(typeof(VentanaHasMenu), 2);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::ce.GEB_NGN_PCR_Practica1.GEB_NGN_PCR_Practica1DomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new PrototoolsHasVentana(partition, roleAssignments, propertyAssignments));

            case 1: return(new MenuHasMenuItem(partition, roleAssignments, propertyAssignments));

            case 2: return(new VentanaHasMenu(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #18
0
        public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }

            if (createElementMap == null)
            {
                createElementMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(4);
                createElementMap.Add(typeof(AbstractionModel), 0);
                createElementMap.Add(typeof(ConceptType), 1);
                createElementMap.Add(typeof(InformationTypeFormat), 2);
                createElementMap.Add(typeof(Uniqueness), 3);
            }
            int index;

            if (!createElementMap.TryGetValue(elementType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::ORMSolutions.ORMArchitect.ORMAbstraction.AbstractionDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
                    elementType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementType");
            }
            switch (index)
            {
            case 0: return(new AbstractionModel(partition, propertyAssignments));

            case 1: return(new ConceptType(partition, propertyAssignments));

            case 2: return(new InformationTypeFormat(partition, propertyAssignments));

            case 3: return(new Uniqueness(partition, propertyAssignments));

            default: return(null);
            }
        }
Exemple #19
0
        public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }

            if (createElementMap == null)
            {
                createElementMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(3);
                createElementMap.Add(typeof(BarkerERDiagram), 0);
                createElementMap.Add(typeof(AssociationConnector), 1);
                createElementMap.Add(typeof(BarkerEntityShape), 2);
            }
            int index;

            if (!createElementMap.TryGetValue(elementType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::ORMSolutions.ORMArchitect.Views.BarkerERView.BarkerERShapeDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
                    elementType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementType");
            }
            switch (index)
            {
            // A constructor was not generated for BarkerERDiagram because it had HasCustomConstructor
            // set to true. Please provide the constructor below.
            case 0: return(new BarkerERDiagram(partition, propertyAssignments));

            case 1: return(new AssociationConnector(partition, propertyAssignments));

            case 2: return(new BarkerEntityShape(partition, propertyAssignments));

            default: return(null);
            }
        }
            public static DependentType Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var instance = new DependentType();

                {
                    instance.A = global::Improbable.TestSchema.ExhaustiveRepeatedData.Serialization.Deserialize(obj.GetObject(1));
                }

                {
                    instance.B = (global::Improbable.TestSchema.SomeEnum)obj.GetEnum(2);
                }

                {
                    if (obj.GetEnumCount(3) == 1)
                    {
                        instance.C = new global::Improbable.TestSchema.SomeEnum?((global::Improbable.TestSchema.SomeEnum)obj.GetEnum(3));
                    }
                }

                {
                    {
                        instance.D = new global::System.Collections.Generic.List <global::Improbable.TestSchema.SomeType>();
                        var list       = instance.D;
                        var listLength = obj.GetObjectCount(4);

                        for (var i = 0; i < listLength; i++)
                        {
                            list.Add(global::Improbable.TestSchema.SomeType.Serialization.Deserialize(obj.IndexObject(4, (uint)i)));
                        }
                    }
                }

                {
                    {
                        var map     = new global::System.Collections.Generic.Dictionary <global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>();
                        var mapSize = obj.GetObjectCount(5);
                        instance.E = map;

                        for (var i = 0; i < mapSize; i++)
                        {
                            var mapObj = obj.IndexObject(5, (uint)i);
                            var key    = (global::Improbable.TestSchema.SomeEnum)mapObj.GetEnum(1);
                            var value  = global::Improbable.TestSchema.SomeType.Serialization.Deserialize(mapObj.GetObject(2));
                            map.Add(key, value);
                        }
                    }
                }

                return(instance);
            }
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(2);
                createElementLinkMap.Add(typeof(CustomPropertyHasCustomPropertyDefinition), 0);
                createElementLinkMap.Add(typeof(CustomPropertyGroupContainsCustomPropertyDefinition), 1);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertiesDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new CustomPropertyHasCustomPropertyDefinition(partition, roleAssignments, propertyAssignments));

            case 1: return(new CustomPropertyGroupContainsCustomPropertyDefinition(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #22
0
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(7);
                createElementLinkMap.Add(typeof(ContainerHasPorts), 0);
                createElementLinkMap.Add(typeof(RiskModelHasContainers), 1);
                createElementLinkMap.Add(typeof(Generalization), 2);
                createElementLinkMap.Add(typeof(Interaction), 3);
                createElementLinkMap.Add(typeof(ContainerHasAssets), 4);
                createElementLinkMap.Add(typeof(ContainerHasAgents), 5);
                createElementLinkMap.Add(typeof(Contains), 6);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::JA.Risk.RiskDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new ContainerHasPorts(partition, roleAssignments, propertyAssignments));

            case 1: return(new RiskModelHasContainers(partition, roleAssignments, propertyAssignments));

            case 2: return(new Generalization(partition, roleAssignments, propertyAssignments));

            case 3: return(new Interaction(partition, roleAssignments, propertyAssignments));

            case 4: return(new ContainerHasAssets(partition, roleAssignments, propertyAssignments));

            case 5: return(new ContainerHasAgents(partition, roleAssignments, propertyAssignments));

            case 6: return(new Contains(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
Exemple #23
0
        public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }

            if (createElementMap == null)
            {
                createElementMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(3);
                createElementMap.Add(typeof(DomainModel), 0);
                createElementMap.Add(typeof(DomainClass2), 1);
                createElementMap.Add(typeof(DomainClass2Shape), 2);
            }
            int index;

            if (!createElementMap.TryGetValue(elementType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::Tum.PDE.VSPluginDSL.VSPluginDSLDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
                    elementType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementType");
            }
            switch (index)
            {
            case 0: return(new DomainModel(partition, propertyAssignments));

            case 1: return(new DomainClass2(partition, propertyAssignments));

            case 2: return(new DomainClass2Shape(partition, propertyAssignments));

            default: return(null);
            }
        }
        public override NodeNameEditorModel CreateEditorModel()
        {
            Func <string, string> urlifyDelegate = (name) =>
            {
                var replacementDict = new global::System.Collections.Generic.Dictionary <string, string>();
                _appContext.Settings.Urls.CharReplacements.ForEach(x => replacementDict.Add(x.Char, x.Value));

                return(name.ToUrlAlias(replacementDict,
                                       _appContext.Settings.Urls.RemoveDoubleDashes,
                                       _appContext.Settings.Urls.StripNonAscii,
                                       _appContext.Settings.Urls.UrlEncode));
            };

            return(new NodeNameEditorModel(urlifyDelegate));
        }
            public static global::Improbable.DependentSchema.DependentComponent.Component Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj, global::Unity.Entities.World world)
            {
                var component = new global::Improbable.DependentSchema.DependentComponent.Component();

                component.aHandle = global::Improbable.Gdk.Core.ReferenceProvider <global::Improbable.TestSchema.ExhaustiveRepeatedData> .Create();

                component.A = global::Improbable.TestSchema.ExhaustiveRepeatedData.Serialization.Deserialize(obj.GetObject(1));

                component.B = (global::Improbable.TestSchema.SomeEnum)obj.GetEnum(2);

                component.cHandle = global::Improbable.Gdk.Core.ReferenceProvider <global::Improbable.TestSchema.SomeEnum?> .Create();

                if (obj.GetEnumCount(3) == 1)
                {
                    component.C = new global::Improbable.TestSchema.SomeEnum?((global::Improbable.TestSchema.SomeEnum)obj.GetEnum(3));
                }

                component.dHandle = global::Improbable.Gdk.Core.ReferenceProvider <global::System.Collections.Generic.List <global::Improbable.TestSchema.SomeType> > .Create();

                {
                    component.D = new global::System.Collections.Generic.List <global::Improbable.TestSchema.SomeType>();
                    var list       = component.D;
                    var listLength = obj.GetObjectCount(4);

                    for (var i = 0; i < listLength; i++)
                    {
                        list.Add(global::Improbable.TestSchema.SomeType.Serialization.Deserialize(obj.IndexObject(4, (uint)i)));
                    }
                }

                component.eHandle = global::Improbable.Gdk.Core.ReferenceProvider <global::System.Collections.Generic.Dictionary <global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType> > .Create();

                {
                    var map     = new global::System.Collections.Generic.Dictionary <global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>();
                    var mapSize = obj.GetObjectCount(5);
                    component.E = map;

                    for (var i = 0; i < mapSize; i++)
                    {
                        var mapObj = obj.IndexObject(5, (uint)i);
                        var key    = (global::Improbable.TestSchema.SomeEnum)mapObj.GetEnum(1);
                        var value  = global::Improbable.TestSchema.SomeType.Serialization.Deserialize(mapObj.GetObject(2));
                        map.Add(key, value);
                    }
                }

                return(component);
            }
Exemple #26
0
        public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementType == null)
            {
                throw new global::System.ArgumentNullException("elementType");
            }

            if (createElementMap == null)
            {
                createElementMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(7);
                createElementMap.Add(typeof(Prototools), 0);
                createElementMap.Add(typeof(Ventana), 1);
                createElementMap.Add(typeof(Menu), 2);
                createElementMap.Add(typeof(MenuItem), 3);
                createElementMap.Add(typeof(GEB_NGN_PCR_Practica1Diagram), 4);
                createElementMap.Add(typeof(CompartmentShape1), 5);
                createElementMap.Add(typeof(CompartmentMenuandItems), 6);
            }
            int index;

            if (!createElementMap.TryGetValue(elementType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::ce.GEB_NGN_PCR_Practica1.GEB_NGN_PCR_Practica1DomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
                    elementType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementType");
            }
            switch (index)
            {
            case 0: return(new Prototools(partition, propertyAssignments));

            case 1: return(new Ventana(partition, propertyAssignments));

            case 2: return(new Menu(partition, propertyAssignments));

            case 3: return(new MenuItem(partition, propertyAssignments));

            case 4: return(new GEB_NGN_PCR_Practica1Diagram(partition, propertyAssignments));

            case 5: return(new CompartmentShape1(partition, propertyAssignments));

            case 6: return(new CompartmentMenuandItems(partition, propertyAssignments));

            default: return(null);
            }
        }
Exemple #27
0
 public global::Windows.UI.Xaml.Markup.IXamlMember GetMemberByLongName(string longMemberName)
 {
     if (global::System.String.IsNullOrEmpty(longMemberName))
     {
         return null;
     }
     global::Windows.UI.Xaml.Markup.IXamlMember xamlMember;
     if (_xamlMembers.TryGetValue(longMemberName, out xamlMember))
     {
         return xamlMember;
     }
     xamlMember = CreateXamlMember(longMemberName);
     if (xamlMember != null)
     {
         _xamlMembers.Add(longMemberName, xamlMember);
     }
     return xamlMember;
 }
Exemple #28
0
 public global::Windows.UI.Xaml.Markup.IXamlType GetXamlTypeByName(string typeName)
 {
     if (global::System.String.IsNullOrEmpty(typeName))
     {
         return null;
     }
     global::Windows.UI.Xaml.Markup.IXamlType xamlType;
     if (_xamlTypes.TryGetValue(typeName, out xamlType))
     {
         return xamlType;
     }
     xamlType = CreateXamlType(typeName);
     if (xamlType != null)
     {
         _xamlTypes.Add(typeName, xamlType);
     }
     return xamlType;
 }
Exemple #29
0
            public static global::Improbable.Interest.Snapshot DeserializeSnapshot(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var component = new global::Improbable.Interest.Snapshot();

                {
                    var map     = new global::System.Collections.Generic.Dictionary <uint, global::Improbable.ComponentInterest>();
                    var mapSize = obj.GetObjectCount(1);
                    component.ComponentInterest = map;

                    for (var i = 0; i < mapSize; i++)
                    {
                        var mapObj = obj.IndexObject(1, (uint)i);
                        var key    = mapObj.GetUint32(1);
                        var value  = global::Improbable.ComponentInterest.Serialization.Deserialize(mapObj.GetObject(2));
                        map.Add(key, value);
                    }
                }

                return(component);
            }
        public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
        {
            if (elementLinkType == null)
            {
                throw new global::System.ArgumentNullException("elementLinkType");
            }
            if (roleAssignments == null)
            {
                throw new global::System.ArgumentNullException("roleAssignments");
            }

            if (createElementLinkMap == null)
            {
                createElementLinkMap = new global::System.Collections.Generic.Dictionary <global::System.Type, int>(6);
                createElementLinkMap.Add(typeof(Flow), 0);
                createElementLinkMap.Add(typeof(FlowGraphHasComments), 1);
                createElementLinkMap.Add(typeof(FlowGraphHasActors), 2);
                createElementLinkMap.Add(typeof(CommentReferencesSubjects), 3);
                createElementLinkMap.Add(typeof(ObjectFlow), 4);
                createElementLinkMap.Add(typeof(ActorHasFlowElements), 5);
            }
            int index;

            if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
            {
                // construct exception error message
                string exceptionError = string.Format(
                    global::System.Globalization.CultureInfo.CurrentCulture,
                    global::AppDevUnited.TaskFlowDSLSample.TaskFlowDSLSampleDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
                    elementLinkType.Name);
                throw new global::System.ArgumentException(exceptionError, "elementLinkType");
            }
            switch (index)
            {
            case 0: return(new Flow(partition, roleAssignments, propertyAssignments));

            case 1: return(new FlowGraphHasComments(partition, roleAssignments, propertyAssignments));

            case 2: return(new FlowGraphHasActors(partition, roleAssignments, propertyAssignments));

            case 3: return(new CommentReferencesSubjects(partition, roleAssignments, propertyAssignments));

            case 4: return(new ObjectFlow(partition, roleAssignments, propertyAssignments));

            case 5: return(new ActorHasFlowElements(partition, roleAssignments, propertyAssignments));

            default: return(null);
            }
        }
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(27);
				createElementMap.Add(typeof(ModelRoot), 0);
				createElementMap.Add(typeof(ModelClass), 1);
				createElementMap.Add(typeof(ModelAttribute), 2);
				createElementMap.Add(typeof(Comment), 3);
				createElementMap.Add(typeof(ClassOperation), 4);
				createElementMap.Add(typeof(ModelInterface), 5);
				createElementMap.Add(typeof(InterfaceOperation), 6);
				createElementMap.Add(typeof(MultipleAssociation), 7);
				createElementMap.Add(typeof(ClassDiagram), 8);
				createElementMap.Add(typeof(UnidirectionalConnector), 9);
				createElementMap.Add(typeof(BidirectionalConnector), 10);
				createElementMap.Add(typeof(AggregationConnector), 11);
				createElementMap.Add(typeof(CompositionConnector), 12);
				createElementMap.Add(typeof(MultipleAssociationRoleConnector), 13);
				createElementMap.Add(typeof(AssociationClassConnector), 14);
				createElementMap.Add(typeof(GeneralizationConnector), 15);
				createElementMap.Add(typeof(ImplementationConnector), 16);
				createElementMap.Add(typeof(CommentConnector), 17);
				createElementMap.Add(typeof(CommentBoxShape), 18);
				createElementMap.Add(typeof(ClassShape), 19);
				createElementMap.Add(typeof(InterfaceShape), 20);
				createElementMap.Add(typeof(MultipleAssociationShape), 21);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::LinqToRdf.Design.LinqToRdfDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				case 0: return new ModelRoot(partition, propertyAssignments);
				case 1: return new ModelClass(partition, propertyAssignments);
				case 2: return new ModelAttribute(partition, propertyAssignments);
				case 3: return new Comment(partition, propertyAssignments);
				case 4: return new ClassOperation(partition, propertyAssignments);
				case 5: return new ModelInterface(partition, propertyAssignments);
				case 6: return new InterfaceOperation(partition, propertyAssignments);
				case 7: return new MultipleAssociation(partition, propertyAssignments);
				case 8: return new ClassDiagram(partition, propertyAssignments);
				case 9: return new UnidirectionalConnector(partition, propertyAssignments);
				case 10: return new BidirectionalConnector(partition, propertyAssignments);
				case 11: return new AggregationConnector(partition, propertyAssignments);
				case 12: return new CompositionConnector(partition, propertyAssignments);
				case 13: return new MultipleAssociationRoleConnector(partition, propertyAssignments);
				case 14: return new AssociationClassConnector(partition, propertyAssignments);
				case 15: return new GeneralizationConnector(partition, propertyAssignments);
				case 16: return new ImplementationConnector(partition, propertyAssignments);
				case 17: return new CommentConnector(partition, propertyAssignments);
				case 18: return new CommentBoxShape(partition, propertyAssignments);
				case 19: return new ClassShape(partition, propertyAssignments);
				case 20: return new InterfaceShape(partition, propertyAssignments);
				case 21: return new MultipleAssociationShape(partition, propertyAssignments);
				default: return null;
			}
		}
Exemple #32
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(22);
				createElementMap.Add(typeof(ServiceContractModel), 0);
				createElementMap.Add(typeof(ServiceContract), 1);
				createElementMap.Add(typeof(Operation), 2);
				createElementMap.Add(typeof(Service), 3);
				createElementMap.Add(typeof(Message), 4);
				createElementMap.Add(typeof(DataContractMessagePart), 5);
				createElementMap.Add(typeof(PrimitiveMessagePart), 6);
				createElementMap.Add(typeof(XsdMessage), 7);
				createElementMap.Add(typeof(DataContractFault), 8);
				createElementMap.Add(typeof(XsdElementFault), 9);
				createElementMap.Add(typeof(ServiceContractDiagram), 10);
				createElementMap.Add(typeof(OperationConnector), 11);
				createElementMap.Add(typeof(ServiceConnector), 12);
				createElementMap.Add(typeof(MessageOperationConnector), 13);
				createElementMap.Add(typeof(ServiceContractShape), 14);
				createElementMap.Add(typeof(MessageShape), 15);
				createElementMap.Add(typeof(OperationShape), 16);
				createElementMap.Add(typeof(ServiceShape), 17);
				createElementMap.Add(typeof(XsdMessageShape), 18);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Microsoft.Practices.ServiceFactory.ServiceContracts.ServiceContractDslDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				case 0: return new ServiceContractModel(partition, propertyAssignments);
				case 1: return new ServiceContract(partition, propertyAssignments);
				case 2: return new Operation(partition, propertyAssignments);
				case 3: return new Service(partition, propertyAssignments);
				case 4: return new Message(partition, propertyAssignments);
				case 5: return new DataContractMessagePart(partition, propertyAssignments);
				case 6: return new PrimitiveMessagePart(partition, propertyAssignments);
				case 7: return new XsdMessage(partition, propertyAssignments);
				case 8: return new DataContractFault(partition, propertyAssignments);
				case 9: return new XsdElementFault(partition, propertyAssignments);
				case 10: return new ServiceContractDiagram(partition, propertyAssignments);
				case 11: return new OperationConnector(partition, propertyAssignments);
				case 12: return new ServiceConnector(partition, propertyAssignments);
				case 13: return new MessageOperationConnector(partition, propertyAssignments);
				case 14: return new ServiceContractShape(partition, propertyAssignments);
				case 15: return new MessageShape(partition, propertyAssignments);
				case 16: return new OperationShape(partition, propertyAssignments);
				case 17: return new ServiceShape(partition, propertyAssignments);
				case 18: return new XsdMessageShape(partition, propertyAssignments);
				default: return null;
			}
		}
Exemple #33
0
		/// <summary>
		/// Construct the mapping from Moniker Xml tag name to DomainClassInfo that derives from ManyToOneRelation.
		/// </summary>
		/// <param name="serializationContext">Serialization context.</param>
		/// <param name="domainDataDirectory">DomainDataDirectory to be used to discover all derived classes.</param>
		private void ConstructDerivedClassMonikersLookupTable(DslModeling::SerializationContext serializationContext, DslModeling::DomainDataDirectory domainDataDirectory)
		{
			global::System.Diagnostics.Debug.Assert(derivedClassMonikers == null); // Shouldn't construct the table more than once.
			derivedClassMonikers = new global::System.Collections.Generic.Dictionary<string, DslModeling::DomainClassInfo> (global::System.StringComparer.CurrentCulture);
	
			DslModeling::DomainClassInfo thisClass = domainDataDirectory.GetDomainClass(ManyToOneRelation.DomainClassId);
			global::System.Diagnostics.Debug.Assert(thisClass != null, "Cannot find DomainClassInfo for ModelRoot!");
	
			global::System.Collections.ObjectModel.ReadOnlyCollection<DslModeling::DomainClassInfo> descendents = thisClass.AllDescendants;
			if (descendents != null)
			{
				foreach (DslModeling::DomainClassInfo descendent in descendents)
				{
					DslModeling::DomainClassXmlSerializer descendentSerializer = serializationContext.Directory.GetSerializer(descendent.Id);
					if (descendentSerializer != null)
					{
						string descendentMonikerTagName = descendentSerializer.MonikerTagName;
						if (!string.IsNullOrEmpty (descendentMonikerTagName))
						{
							global::System.Diagnostics.Debug.Assert(!derivedClassMonikers.ContainsKey (descendentMonikerTagName));
							derivedClassMonikers.Add (descendentMonikerTagName, descendent);
						}
					}
				}
			}
		}
        /// <summary>
        /// Create a shape of the given link shape type.
        /// </summary>
        /// <param name="shapeTypeId">Shape type id.</param>
        /// <param name="modelElement">Model element.</param>
		/// <param name="assignments">Properties for the shape.</param>
        /// <returns>Shape if one could be created. Null otherwise.</returns>
        public override DslModeling::ModelElement CreateShapeForElementLink(System.Guid shapeTypeId, DslModeling::ModelElement modelElement, params DslModeling::PropertyAssignment[] assignments)
		{
			
			DslEditorDiagrams::LinkShape nodeShape = null;	
		
			if( createRSShapeMap == null )
			{
				createRSShapeMap = new global::System.Collections.Generic.Dictionary<global::System.Guid, int>(2);
				createRSShapeMap.Add(global::Tum.FamilyTreeDSL.ParentOfShape.DomainClassId, 0);
				createRSShapeMap.Add(global::Tum.FamilyTreeDSL.MarriedToShape.DomainClassId, 1);
			}
			int index;
			if (!createRSShapeMap.TryGetValue(shapeTypeId, out index))
				throw new global::System.ArgumentException("Unrecognized shape type " + shapeTypeId.ToString());
			switch (index)
			{
				case 0: nodeShape = new global::Tum.FamilyTreeDSL.ParentOfShape(modelElement.Store, assignments); break;
				case 1: nodeShape = new global::Tum.FamilyTreeDSL.MarriedToShape(modelElement.Store, assignments); break;
				
			}

			if( nodeShape == null )
				throw new System.InvalidOperationException("Couldn't create shape of type " + shapeTypeId.ToString() + " for element link " + modelElement.ToString());
			
			nodeShape.Element = modelElement;
								
			return nodeShape;
		
        }
		/// <summary>
		/// This method creates one SimpleMonikerResolver instance for each DomainModel used in serialization.
		/// </summary>
		/// <param name="store">Store on which moniker resolvers will be set up.</param>
		internal protected virtual global::System.Collections.Generic.IDictionary<global::System.Guid, DslModeling::IMonikerResolver> GetMonikerResolvers(DslModeling::Store store)
		{
			#region Check Parameters
			global::System.Diagnostics.Debug.Assert(store != null);
			if (store == null)
				throw new global::System.ArgumentNullException("store");
			#endregion
			
			global::System.Collections.Generic.Dictionary<global::System.Guid, DslModeling::IMonikerResolver> result = new global::System.Collections.Generic.Dictionary<global::System.Guid, DslModeling::IMonikerResolver>();
			result.Add(DslDiagrams::CoreDesignSurfaceDomainModel.DomainModelId, new DslDiagrams::CoreDesignSurfaceSerializationBehaviorMonikerResolver(store, this.Directory));
			result.Add(AsyncDslDomainModel.DomainModelId, new AsyncDslSerializationBehaviorMonikerResolver(store, this.Directory));
			return result;
		}
Exemple #36
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(17);
				createElementMap.Add(typeof(HostDesignerModel), 0);
				createElementMap.Add(typeof(HostApplication), 1);
				createElementMap.Add(typeof(ServiceReference), 2);
				createElementMap.Add(typeof(Endpoint), 3);
				createElementMap.Add(typeof(ClientApplication), 4);
				createElementMap.Add(typeof(Proxy), 5);
				createElementMap.Add(typeof(HostDesignerDiagram), 6);
				createElementMap.Add(typeof(ServiceConnector), 7);
				createElementMap.Add(typeof(ProxyEndpointConnector), 8);
				createElementMap.Add(typeof(HostApplicationShape), 9);
				createElementMap.Add(typeof(BaseGeometryShape), 10);
				createElementMap.Add(typeof(ServiceDescriptionShape), 11);
				createElementMap.Add(typeof(ClientApplicationShape), 12);
				createElementMap.Add(typeof(EndpointPortShape), 13);
				createElementMap.Add(typeof(ProxyPortShape), 14);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				case 0: return new HostDesignerModel(partition, propertyAssignments);
				case 1: return new HostApplication(partition, propertyAssignments);
				case 2: return new ServiceReference(partition, propertyAssignments);
				case 3: return new Endpoint(partition, propertyAssignments);
				case 4: return new ClientApplication(partition, propertyAssignments);
				case 5: return new Proxy(partition, propertyAssignments);
				case 6: return new HostDesignerDiagram(partition, propertyAssignments);
				case 7: return new ServiceConnector(partition, propertyAssignments);
				case 8: return new ProxyEndpointConnector(partition, propertyAssignments);
				case 9: return new HostApplicationShape(partition, propertyAssignments);
				case 10: return new BaseGeometryShape(partition, propertyAssignments);
				case 11: return new ServiceDescriptionShape(partition, propertyAssignments);
				case 12: return new ClientApplicationShape(partition, propertyAssignments);
				case 13: return new EndpointPortShape(partition, propertyAssignments);
				case 14: return new ProxyPortShape(partition, propertyAssignments);
				default: return null;
			}
		}
Exemple #37
0
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(6);
				createElementLinkMap.Add(typeof(HostDesignerModelHasHostApplications), 0);
				createElementLinkMap.Add(typeof(HostApplicationHasServiceDescriptions), 1);
				createElementLinkMap.Add(typeof(ServiceDescriptionHasEndpoints), 2);
				createElementLinkMap.Add(typeof(ClientApplicationHasProxies), 3);
				createElementLinkMap.Add(typeof(ProxyReferencesEndpoint), 4);
				createElementLinkMap.Add(typeof(HostDesignerModelHasClientApplications), 5);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
			
			}
			switch (index)
			{
				case 0: return new HostDesignerModelHasHostApplications(partition, roleAssignments, propertyAssignments);
				case 1: return new HostApplicationHasServiceDescriptions(partition, roleAssignments, propertyAssignments);
				case 2: return new ServiceDescriptionHasEndpoints(partition, roleAssignments, propertyAssignments);
				case 3: return new ClientApplicationHasProxies(partition, roleAssignments, propertyAssignments);
				case 4: return new ProxyReferencesEndpoint(partition, roleAssignments, propertyAssignments);
				case 5: return new HostDesignerModelHasClientApplications(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
Exemple #38
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(3);
				createElementMap.Add(typeof(BarkerERDiagram), 0);
				createElementMap.Add(typeof(AssociationConnector), 1);
				createElementMap.Add(typeof(BarkerEntityShape), 2);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				throw new global::System.ArgumentException("elementType is not recognized as a type of domain class which belongs to this domain model.");
			}
			switch (index)
			{
				// A constructor was not generated for BarkerERDiagram because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 0: return new BarkerERDiagram(partition, propertyAssignments);
				case 1: return new AssociationConnector(partition, propertyAssignments);
				case 2: return new BarkerEntityShape(partition, propertyAssignments);
				default: return null;
			}
		}
 /// <summary>
 /// Gets an EntityQuery instance that can be used to load <see cref="Region"/> entity instances using the 'GetRegionById' query.
 /// </summary>
 /// <param name="id">The value for the 'id' parameter of the query.</param>
 /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Region"/> entity instances.</returns>
 public global::OpenRiaServices.DomainServices.Client.EntityQuery<global::DbContextModels.Northwind.Region> GetRegionByIdQuery(int id)
 {
     global::System.Collections.Generic.Dictionary<string, object> parameters = new global::System.Collections.Generic.Dictionary<string, object>();
     parameters.Add("id", id);
     this.ValidateMethod("GetRegionByIdQuery", parameters);
     return base.CreateQuery<global::DbContextModels.Northwind.Region>("GetRegionById", parameters, false, false);
 }
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
			
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(0);
				createElementLinkMap.Add(typeof(DomainModelHasDomainClass2), 0);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Tum.PDE.VSPluginDSL.VSPluginDSLDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
		
			}
			switch (index)
			{
				case 0: return new DomainModelHasDomainClass2(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
Exemple #41
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(8);
				createElementMap.Add(typeof(MappingCustomizationModel), 0);
				createElementMap.Add(typeof(AssimilationMapping), 1);
				createElementMap.Add(typeof(ReferenceModeNaming), 2);
				createElementMap.Add(typeof(DefaultReferenceModeNaming), 3);
				createElementMap.Add(typeof(RelationalNameGenerator), 4);
				createElementMap.Add(typeof(SchemaGenerationSetting), 5);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				throw new global::System.ArgumentException("elementType is not recognized as a type of domain class which belongs to this domain model.");
			}
			switch (index)
			{
				case 0: return new MappingCustomizationModel(partition, propertyAssignments);
				case 1: return new AssimilationMapping(partition, propertyAssignments);
				case 2: return new ReferenceModeNaming(partition, propertyAssignments);
				case 3: return new DefaultReferenceModeNaming(partition, propertyAssignments);
				// A constructor was not generated for RelationalNameGenerator because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 4: return new RelationalNameGenerator(partition, propertyAssignments);
				case 5: return new SchemaGenerationSetting(partition, propertyAssignments);
				default: return null;
			}
		}
 /// <summary>
 /// Gets an EntityQuery instance that can be used to load <see cref="User2"/> entity instances using the 'Login' query.
 /// </summary>
 /// <param name="userName">The value for the 'userName' parameter of the query.</param>
 /// <param name="password">The value for the 'password' parameter of the query.</param>
 /// <param name="isPersistent">The value for the 'isPersistent' parameter of the query.</param>
 /// <param name="customData">The value for the 'customData' parameter of the query.</param>
 /// <returns>An EntityQuery that can be loaded to retrieve <see cref="User2"/> entity instances.</returns>
 public global::OpenRiaServices.DomainServices.Client.EntityQuery<global::RootNamespace.TestNamespace.User2> LoginQuery(string userName, string password, bool isPersistent, string customData)
 {
     global::System.Collections.Generic.Dictionary<string, object> parameters = new global::System.Collections.Generic.Dictionary<string, object>();
     parameters.Add("userName", userName);
     parameters.Add("password", password);
     parameters.Add("isPersistent", isPersistent);
     parameters.Add("customData", customData);
     this.ValidateMethod("LoginQuery", parameters);
     return base.CreateQuery<global::RootNamespace.TestNamespace.User2>("Login", parameters, true, false);
 }
Exemple #43
0
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(14);
				createElementLinkMap.Add(typeof(AssimilationMappingCustomizesFactType), 0);
				createElementLinkMap.Add(typeof(MappingCustomizationModelHasAssimilationMapping), 1);
				createElementLinkMap.Add(typeof(ReferenceModeNamingCustomizesObjectType), 2);
				createElementLinkMap.Add(typeof(MappingCustomizationModelHasReferenceModeNaming), 3);
				createElementLinkMap.Add(typeof(DefaultReferenceModeNamingCustomizesORMModel), 4);
				createElementLinkMap.Add(typeof(MappingCustomizationModelHasDefaultReferenceModeNaming), 5);
				createElementLinkMap.Add(typeof(SchemaIsForAbstractionModel), 6);
				createElementLinkMap.Add(typeof(TableIsPrimarilyForConceptType), 7);
				createElementLinkMap.Add(typeof(TableIsAlsoForConceptType), 8);
				createElementLinkMap.Add(typeof(TableIsAlsoForConceptTypeHasAssimilationPath), 9);
				createElementLinkMap.Add(typeof(ColumnHasConceptTypeChild), 10);
				createElementLinkMap.Add(typeof(UniquenessConstraintIsForUniqueness), 11);
				createElementLinkMap.Add(typeof(DomainIsForInformationTypeFormat), 12);
				createElementLinkMap.Add(typeof(GenerationSettingTargetsSchema), 13);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				throw new global::System.ArgumentException("elementLinkType is not recognized as a type of domain relationship which belongs to this domain model.");
			}
			switch (index)
			{
				case 0: return new AssimilationMappingCustomizesFactType(partition, roleAssignments, propertyAssignments);
				case 1: return new MappingCustomizationModelHasAssimilationMapping(partition, roleAssignments, propertyAssignments);
				case 2: return new ReferenceModeNamingCustomizesObjectType(partition, roleAssignments, propertyAssignments);
				case 3: return new MappingCustomizationModelHasReferenceModeNaming(partition, roleAssignments, propertyAssignments);
				case 4: return new DefaultReferenceModeNamingCustomizesORMModel(partition, roleAssignments, propertyAssignments);
				case 5: return new MappingCustomizationModelHasDefaultReferenceModeNaming(partition, roleAssignments, propertyAssignments);
				case 6: return new SchemaIsForAbstractionModel(partition, roleAssignments, propertyAssignments);
				case 7: return new TableIsPrimarilyForConceptType(partition, roleAssignments, propertyAssignments);
				case 8: return new TableIsAlsoForConceptType(partition, roleAssignments, propertyAssignments);
				case 9: return new TableIsAlsoForConceptTypeHasAssimilationPath(partition, roleAssignments, propertyAssignments);
				case 10: return new ColumnHasConceptTypeChild(partition, roleAssignments, propertyAssignments);
				case 11: return new UniquenessConstraintIsForUniqueness(partition, roleAssignments, propertyAssignments);
				case 12: return new DomainIsForInformationTypeFormat(partition, roleAssignments, propertyAssignments);
				case 13: return new GenerationSettingTargetsSchema(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(31);
				createElementLinkMap.Add(typeof(nHydrateModelHasEntities), 0);
				createElementLinkMap.Add(typeof(EntityHasEntities), 1);
				createElementLinkMap.Add(typeof(EntityHasFields), 2);
				createElementLinkMap.Add(typeof(nHydrateModelHasStoredProcedures), 3);
				createElementLinkMap.Add(typeof(StoredProcedureHasFields), 4);
				createElementLinkMap.Add(typeof(StoredProcedureHasParameters), 5);
				createElementLinkMap.Add(typeof(nHydrateModelHasViews), 6);
				createElementLinkMap.Add(typeof(ViewHasFields), 7);
				createElementLinkMap.Add(typeof(nHydrateModelHasRelationFields), 8);
				createElementLinkMap.Add(typeof(EntityHasStaticDatum), 9);
				createElementLinkMap.Add(typeof(EntityInheritsEntity), 10);
				createElementLinkMap.Add(typeof(EntityHasComposites), 11);
				createElementLinkMap.Add(typeof(CompositeHasFields), 12);
				createElementLinkMap.Add(typeof(EntityHasMetadata), 13);
				createElementLinkMap.Add(typeof(FieldHasMetadata), 14);
				createElementLinkMap.Add(typeof(nHydrateModelHasFunctions), 15);
				createElementLinkMap.Add(typeof(FunctionHasParameters), 16);
				createElementLinkMap.Add(typeof(FunctionHasFields), 17);
				createElementLinkMap.Add(typeof(nHydrateModelHasModules), 18);
				createElementLinkMap.Add(typeof(FunctionReferencesModules), 19);
				createElementLinkMap.Add(typeof(ViewReferencesModules), 20);
				createElementLinkMap.Add(typeof(StoredProcedureReferencesModules), 21);
				createElementLinkMap.Add(typeof(EntityReferencesModules), 22);
				createElementLinkMap.Add(typeof(FieldReferencesModules), 23);
				createElementLinkMap.Add(typeof(nHydrateModelHasRelationModules), 24);
				createElementLinkMap.Add(typeof(ModuleHasModuleRules), 25);
				createElementLinkMap.Add(typeof(EntityHasIndexes), 26);
				createElementLinkMap.Add(typeof(IndexHasIndexColumns), 27);
				createElementLinkMap.Add(typeof(nHydrateModelHasModelMetadata), 28);
				createElementLinkMap.Add(typeof(EntityHasViews), 29);
				createElementLinkMap.Add(typeof(nHydrateModelHasIndexModules), 30);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::nHydrate2.Dsl.nHydrate2DomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
			
			}
			switch (index)
			{
				case 0: return new nHydrateModelHasEntities(partition, roleAssignments, propertyAssignments);
				// A constructor was not generated for EntityHasEntities because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 1: return new EntityHasEntities(partition, roleAssignments, propertyAssignments);
				case 2: return new EntityHasFields(partition, roleAssignments, propertyAssignments);
				case 3: return new nHydrateModelHasStoredProcedures(partition, roleAssignments, propertyAssignments);
				case 4: return new StoredProcedureHasFields(partition, roleAssignments, propertyAssignments);
				case 5: return new StoredProcedureHasParameters(partition, roleAssignments, propertyAssignments);
				case 6: return new nHydrateModelHasViews(partition, roleAssignments, propertyAssignments);
				case 7: return new ViewHasFields(partition, roleAssignments, propertyAssignments);
				case 8: return new nHydrateModelHasRelationFields(partition, roleAssignments, propertyAssignments);
				case 9: return new EntityHasStaticDatum(partition, roleAssignments, propertyAssignments);
				// A constructor was not generated for EntityInheritsEntity because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 10: return new EntityInheritsEntity(partition, roleAssignments, propertyAssignments);
				case 11: return new EntityHasComposites(partition, roleAssignments, propertyAssignments);
				case 12: return new CompositeHasFields(partition, roleAssignments, propertyAssignments);
				case 13: return new EntityHasMetadata(partition, roleAssignments, propertyAssignments);
				case 14: return new FieldHasMetadata(partition, roleAssignments, propertyAssignments);
				case 15: return new nHydrateModelHasFunctions(partition, roleAssignments, propertyAssignments);
				case 16: return new FunctionHasParameters(partition, roleAssignments, propertyAssignments);
				case 17: return new FunctionHasFields(partition, roleAssignments, propertyAssignments);
				case 18: return new nHydrateModelHasModules(partition, roleAssignments, propertyAssignments);
				case 19: return new FunctionReferencesModules(partition, roleAssignments, propertyAssignments);
				case 20: return new ViewReferencesModules(partition, roleAssignments, propertyAssignments);
				case 21: return new StoredProcedureReferencesModules(partition, roleAssignments, propertyAssignments);
				case 22: return new EntityReferencesModules(partition, roleAssignments, propertyAssignments);
				case 23: return new FieldReferencesModules(partition, roleAssignments, propertyAssignments);
				case 24: return new nHydrateModelHasRelationModules(partition, roleAssignments, propertyAssignments);
				case 25: return new ModuleHasModuleRules(partition, roleAssignments, propertyAssignments);
				case 26: return new EntityHasIndexes(partition, roleAssignments, propertyAssignments);
				case 27: return new IndexHasIndexColumns(partition, roleAssignments, propertyAssignments);
				case 28: return new nHydrateModelHasModelMetadata(partition, roleAssignments, propertyAssignments);
				// A constructor was not generated for EntityHasViews because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 29: return new EntityHasViews(partition, roleAssignments, propertyAssignments);
				case 30: return new nHydrateModelHasIndexModules(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
Exemple #45
0
		/// <summary>
		/// Construct the apping from XmlTagName to DomainClassInfo that derives from ModelHasClass.
		/// </summary>
		/// <param name="serializationContext">Serialization context.</param>
		/// <param name="domainDataDirectory">DomainDataDirectory to be used to discover all derived classes.</param>
		private void ConstructDerivedClassesLookupTable(DslModeling::SerializationContext serializationContext, DslModeling::DomainDataDirectory domainDataDirectory)
		{
			global::System.Diagnostics.Debug.Assert(derivedClasses == null); // Shouldn't construct the table more than once.
			derivedClasses = new global::System.Collections.Generic.Dictionary<string, DslModeling::DomainClassInfo> (global::System.StringComparer.CurrentCulture);
	
			DslModeling::DomainClassInfo thisClass = domainDataDirectory.GetDomainClass(ModelHasClass.DomainClassId);
			global::System.Diagnostics.Debug.Assert(thisClass != null, "Cannot find DomainClassInfo for ModelRoot!");
	
			global::System.Collections.ObjectModel.ReadOnlyCollection<DslModeling::DomainClassInfo> descendents = thisClass.AllDescendants;
			if (descendents != null)
			{
				foreach (DslModeling::DomainClassInfo descendent in descendents)
				{
					global::System.Type descendentType = descendent.ImplementationClass;
					if (!descendentType.IsAbstract)
					{
						DslModeling::DomainClassXmlSerializer descendentSerializer = serializationContext.Directory.GetSerializer(descendent.Id);
						if (descendentSerializer != null)
						{
							string descendentXmlTagName = descendentSerializer.XmlTagName;
							if (!string.IsNullOrEmpty (descendentXmlTagName))
							{
								global::System.Diagnostics.Debug.Assert(!derivedClasses.ContainsKey (descendentXmlTagName));
								derivedClasses.Add (descendentXmlTagName, descendent);
							}
						}
					}
					else
					{   // Ignore abstract derived classes because they cannot be instantiated directly.
					}
				}
			}
		}
Exemple #46
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(8);
				createElementMap.Add(typeof(SampleOrmModel), 0);
				createElementMap.Add(typeof(EntityElement), 1);
				createElementMap.Add(typeof(Property), 2);
				createElementMap.Add(typeof(Reference), 3);
				createElementMap.Add(typeof(OrmLanguageDiagram), 4);
				createElementMap.Add(typeof(EntityHasRelationShipsConnector), 5);
				createElementMap.Add(typeof(EntityShape), 6);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Company.OrmLanguage.OrmLanguageDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				case 0: return new SampleOrmModel(partition, propertyAssignments);
				case 1: return new EntityElement(partition, propertyAssignments);
				case 2: return new Property(partition, propertyAssignments);
				case 3: return new Reference(partition, propertyAssignments);
				case 4: return new OrmLanguageDiagram(partition, propertyAssignments);
				case 5: return new EntityHasRelationShipsConnector(partition, propertyAssignments);
				case 6: return new EntityShape(partition, propertyAssignments);
				default: return null;
			}
		}
		/// <summary>
		/// This method returns the moniker resolvers for each of the domain models in the store
		/// </summary>
		/// <param name="store">Store on which the moniker resolvers are set up.</param>
		internal protected virtual global::System.Collections.Generic.IDictionary<global::System.Guid, DslModeling::IMonikerResolver> GetMonikerResolvers(DslModeling::Store store)
		{
			#region Check Parameters
			global::System.Diagnostics.Debug.Assert(store != null);
			if (store == null)
				throw new global::System.ArgumentNullException("store");
			#endregion
			
			global::System.Collections.Generic.Dictionary<global::System.Guid, DslModeling::IMonikerResolver> result = new global::System.Collections.Generic.Dictionary<global::System.Guid, DslModeling::IMonikerResolver>();
			foreach (DslModeling::DomainModelInfo modelInfo in store.DomainDataDirectory.DomainModels)
			{
				if (modelInfo.MonikerResolver != null)
				{
					result.Add(modelInfo.Id, modelInfo.MonikerResolver);
				}
			}
			
			return result;
		}
Exemple #48
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(3);
				createElementMap.Add(typeof(CustomPropertyGroup), 0);
				createElementMap.Add(typeof(CustomPropertyDefinition), 1);
				createElementMap.Add(typeof(CustomProperty), 2);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				throw new global::System.ArgumentException("elementType is not recognized as a type of domain class which belongs to this domain model.");
			}
			switch (index)
			{
				case 0: return new CustomPropertyGroup(partition, propertyAssignments);
				case 1: return new CustomPropertyDefinition(partition, propertyAssignments);
				case 2: return new CustomProperty(partition, propertyAssignments);
				default: return null;
			}
		}
Exemple #49
0
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(10);
				createElementLinkMap.Add(typeof(AbstractionModelHasConceptType), 0);
				createElementLinkMap.Add(typeof(AbstractionModelHasInformationTypeFormat), 1);
				createElementLinkMap.Add(typeof(ConceptTypeHasUniqueness), 2);
				createElementLinkMap.Add(typeof(ConceptTypeHasChildAsPartOfAssociation), 3);
				createElementLinkMap.Add(typeof(InformationType), 4);
				createElementLinkMap.Add(typeof(ConceptTypeRelatesToConceptType), 5);
				createElementLinkMap.Add(typeof(ConceptTypeAssimilatesConceptType), 6);
				createElementLinkMap.Add(typeof(UniquenessIncludesConceptTypeChild), 7);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::ORMSolutions.ORMArchitect.ORMAbstraction.AbstractionDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
			
			}
			switch (index)
			{
				case 0: return new AbstractionModelHasConceptType(partition, roleAssignments, propertyAssignments);
				case 1: return new AbstractionModelHasInformationTypeFormat(partition, roleAssignments, propertyAssignments);
				case 2: return new ConceptTypeHasUniqueness(partition, roleAssignments, propertyAssignments);
				case 3: return new ConceptTypeHasChildAsPartOfAssociation(partition, roleAssignments, propertyAssignments);
				case 4: return new InformationType(partition, roleAssignments, propertyAssignments);
				case 5: return new ConceptTypeRelatesToConceptType(partition, roleAssignments, propertyAssignments);
				case 6: return new ConceptTypeAssimilatesConceptType(partition, roleAssignments, propertyAssignments);
				case 7: return new UniquenessIncludesConceptTypeChild(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(15);
				createElementLinkMap.Add(typeof(UnidirectionalAssociation), 0);
				createElementLinkMap.Add(typeof(ClassHasAttributes), 1);
				createElementLinkMap.Add(typeof(ModelRootHasComments), 2);
				createElementLinkMap.Add(typeof(ClassHasOperations), 3);
				createElementLinkMap.Add(typeof(Generalization), 4);
				createElementLinkMap.Add(typeof(BidirectionalAssociation), 5);
				createElementLinkMap.Add(typeof(InterfaceHasOperation), 6);
				createElementLinkMap.Add(typeof(MultipleAssociationRole), 7);
				createElementLinkMap.Add(typeof(AssociationClassRelationship), 8);
				createElementLinkMap.Add(typeof(Aggregation), 9);
				createElementLinkMap.Add(typeof(Composition), 10);
				createElementLinkMap.Add(typeof(ModelRootHasTypes), 11);
				createElementLinkMap.Add(typeof(CommentReferencesSubjects), 12);
				createElementLinkMap.Add(typeof(Implementation), 13);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::LinqToRdf.Design.LinqToRdfDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
			
			}
			switch (index)
			{
				case 0: return new UnidirectionalAssociation(partition, roleAssignments, propertyAssignments);
				case 1: return new ClassHasAttributes(partition, roleAssignments, propertyAssignments);
				case 2: return new ModelRootHasComments(partition, roleAssignments, propertyAssignments);
				case 3: return new ClassHasOperations(partition, roleAssignments, propertyAssignments);
				case 4: return new Generalization(partition, roleAssignments, propertyAssignments);
				case 5: return new BidirectionalAssociation(partition, roleAssignments, propertyAssignments);
				case 6: return new InterfaceHasOperation(partition, roleAssignments, propertyAssignments);
				case 7: return new MultipleAssociationRole(partition, roleAssignments, propertyAssignments);
				case 8: return new AssociationClassRelationship(partition, roleAssignments, propertyAssignments);
				case 9: return new Aggregation(partition, roleAssignments, propertyAssignments);
				case 10: return new Composition(partition, roleAssignments, propertyAssignments);
				case 11: return new ModelRootHasTypes(partition, roleAssignments, propertyAssignments);
				case 12: return new CommentReferencesSubjects(partition, roleAssignments, propertyAssignments);
				case 13: return new Implementation(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
Exemple #51
0
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(4);
				createElementLinkMap.Add(typeof(SampleOrmModelHasElements), 0);
				createElementLinkMap.Add(typeof(EntityHasRelationShips), 1);
				createElementLinkMap.Add(typeof(EntityHasProperties), 2);
				createElementLinkMap.Add(typeof(EntityHasReferences), 3);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Company.OrmLanguage.OrmLanguageDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
			
			}
			switch (index)
			{
				case 0: return new SampleOrmModelHasElements(partition, roleAssignments, propertyAssignments);
				case 1: return new EntityHasRelationShips(partition, roleAssignments, propertyAssignments);
				case 2: return new EntityHasProperties(partition, roleAssignments, propertyAssignments);
				case 3: return new EntityHasReferences(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
			
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(13);
				createElementMap.Add(typeof(VModell), 0);
				createElementMap.Add(typeof(VModellvariante), 1);
				createElementMap.Add(typeof(Referenzmodell), 2);
				createElementMap.Add(typeof(RolleDependencyShape), 3);
				createElementMap.Add(typeof(DisziplinDependencyShape), 4);
				createElementMap.Add(typeof(ErzAbhDependencyShape), 5);
				createElementMap.Add(typeof(Musterbibliothek), 6);
				createElementMap.Add(typeof(Mustergruppe), 7);
				createElementMap.Add(typeof(Themenmuster), 8);
				createElementMap.Add(typeof(Mustertext), 9);
				createElementMap.Add(typeof(Zusatzthema), 10);
				createElementMap.Add(typeof(Varianten), 11);
				createElementMap.Add(typeof(Variante), 12);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Tum.VModellXT.VModellXTDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				case 0: return new VModell(partition, propertyAssignments);
				case 1: return new VModellvariante(partition, propertyAssignments);
				case 2: return new Referenzmodell(partition, propertyAssignments);
				case 3: return new RolleDependencyShape(partition, propertyAssignments);
				case 4: return new DisziplinDependencyShape(partition, propertyAssignments);
				case 5: return new ErzAbhDependencyShape(partition, propertyAssignments);
				case 6: return new Musterbibliothek(partition, propertyAssignments);
				case 7: return new Mustergruppe(partition, propertyAssignments);
				case 8: return new Themenmuster(partition, propertyAssignments);
				case 9: return new Mustertext(partition, propertyAssignments);
				case 10: return new Zusatzthema(partition, propertyAssignments);
				case 11: return new Varianten(partition, propertyAssignments);
				case 12: return new Variante(partition, propertyAssignments);
				default: return null;
			}
		}
Exemple #53
0
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(2);
				createElementLinkMap.Add(typeof(CustomPropertyHasCustomPropertyDefinition), 0);
				createElementLinkMap.Add(typeof(CustomPropertyGroupContainsCustomPropertyDefinition), 1);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				throw new global::System.ArgumentException("elementLinkType is not recognized as a type of domain relationship which belongs to this domain model.");
			}
			switch (index)
			{
				case 0: return new CustomPropertyHasCustomPropertyDefinition(partition, roleAssignments, propertyAssignments);
				case 1: return new CustomPropertyGroupContainsCustomPropertyDefinition(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
			
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(0);
				createElementLinkMap.Add(typeof(VModellHasVModellvariante), 0);
				createElementLinkMap.Add(typeof(VModellvarianteHasVModellStruktur), 1);
				createElementLinkMap.Add(typeof(VModellvarianteHasTextbausteine), 2);
				createElementLinkMap.Add(typeof(VModellvarianteHasVorgehensbausteine), 3);
				createElementLinkMap.Add(typeof(VModellvarianteHasRollen), 4);
				createElementLinkMap.Add(typeof(VModellvarianteHasPDSSpezifikationen), 5);
				createElementLinkMap.Add(typeof(VModellvarianteHasAblaufbausteine), 6);
				createElementLinkMap.Add(typeof(VModellvarianteHasAblaufbausteinspezifikationen), 7);
				createElementLinkMap.Add(typeof(VModellvarianteHasProjekttypen), 8);
				createElementLinkMap.Add(typeof(VModellvarianteHasProjekttypvarianten), 9);
				createElementLinkMap.Add(typeof(VModellvarianteHasVortailoring), 10);
				createElementLinkMap.Add(typeof(VModellvarianteHasEntscheidungspunkte), 11);
				createElementLinkMap.Add(typeof(VModellvarianteHasProjektmerkmale), 12);
				createElementLinkMap.Add(typeof(VModellvarianteHasKonventionsabbildungen), 13);
				createElementLinkMap.Add(typeof(VModellvarianteHasMethodenreferenzen), 14);
				createElementLinkMap.Add(typeof(VModellvarianteHasWerkzeugreferenzen), 15);
				createElementLinkMap.Add(typeof(VModellvarianteHasGlossar), 16);
				createElementLinkMap.Add(typeof(VModellvarianteHasAbkuerzungen), 17);
				createElementLinkMap.Add(typeof(VModellvarianteHasQuellen), 18);
				createElementLinkMap.Add(typeof(VModellvarianteHasAenderungsoperationen), 19);
				createElementLinkMap.Add(typeof(VModellvarianteHasReferenzmodell), 20);
				createElementLinkMap.Add(typeof(ReferenzmodellHasVModell), 21);
				createElementLinkMap.Add(typeof(ReferenzmodellReferencesVModellvariante), 22);
				createElementLinkMap.Add(typeof(MusterbibliothekHasMustergruppe), 23);
				createElementLinkMap.Add(typeof(MustergruppeHasThemenmuster), 24);
				createElementLinkMap.Add(typeof(ThemenmusterReferencesThema), 25);
				createElementLinkMap.Add(typeof(ThemenmusterReferencesUnterthema), 26);
				createElementLinkMap.Add(typeof(ThemenmusterHasMustertext), 27);
				createElementLinkMap.Add(typeof(ThemenmusterSourceHasThemenmusterTarget), 28);
				createElementLinkMap.Add(typeof(ThemenmusterHasZusatzthema), 29);
				createElementLinkMap.Add(typeof(ZusatzthemaHasMustertext), 30);
				createElementLinkMap.Add(typeof(ZusatzthemaSourceHasZusatzthemaTarget), 31);
				createElementLinkMap.Add(typeof(MusterbibliothekHasVModell), 32);
				createElementLinkMap.Add(typeof(VariantenHasVariante), 33);
				createElementLinkMap.Add(typeof(VarianteSourceReferencesVarianteTarget), 34);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Tum.VModellXT.VModellXTDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
		
			}
			switch (index)
			{
				case 0: return new VModellHasVModellvariante(partition, roleAssignments, propertyAssignments);
				case 1: return new VModellvarianteHasVModellStruktur(partition, roleAssignments, propertyAssignments);
				case 2: return new VModellvarianteHasTextbausteine(partition, roleAssignments, propertyAssignments);
				case 3: return new VModellvarianteHasVorgehensbausteine(partition, roleAssignments, propertyAssignments);
				case 4: return new VModellvarianteHasRollen(partition, roleAssignments, propertyAssignments);
				case 5: return new VModellvarianteHasPDSSpezifikationen(partition, roleAssignments, propertyAssignments);
				case 6: return new VModellvarianteHasAblaufbausteine(partition, roleAssignments, propertyAssignments);
				case 7: return new VModellvarianteHasAblaufbausteinspezifikationen(partition, roleAssignments, propertyAssignments);
				case 8: return new VModellvarianteHasProjekttypen(partition, roleAssignments, propertyAssignments);
				case 9: return new VModellvarianteHasProjekttypvarianten(partition, roleAssignments, propertyAssignments);
				case 10: return new VModellvarianteHasVortailoring(partition, roleAssignments, propertyAssignments);
				case 11: return new VModellvarianteHasEntscheidungspunkte(partition, roleAssignments, propertyAssignments);
				case 12: return new VModellvarianteHasProjektmerkmale(partition, roleAssignments, propertyAssignments);
				case 13: return new VModellvarianteHasKonventionsabbildungen(partition, roleAssignments, propertyAssignments);
				case 14: return new VModellvarianteHasMethodenreferenzen(partition, roleAssignments, propertyAssignments);
				case 15: return new VModellvarianteHasWerkzeugreferenzen(partition, roleAssignments, propertyAssignments);
				case 16: return new VModellvarianteHasGlossar(partition, roleAssignments, propertyAssignments);
				case 17: return new VModellvarianteHasAbkuerzungen(partition, roleAssignments, propertyAssignments);
				case 18: return new VModellvarianteHasQuellen(partition, roleAssignments, propertyAssignments);
				case 19: return new VModellvarianteHasAenderungsoperationen(partition, roleAssignments, propertyAssignments);
				case 20: return new VModellvarianteHasReferenzmodell(partition, roleAssignments, propertyAssignments);
				case 21: return new ReferenzmodellHasVModell(partition, roleAssignments, propertyAssignments);
				case 22: return new ReferenzmodellReferencesVModellvariante(partition, roleAssignments, propertyAssignments);
				case 23: return new MusterbibliothekHasMustergruppe(partition, roleAssignments, propertyAssignments);
				case 24: return new MustergruppeHasThemenmuster(partition, roleAssignments, propertyAssignments);
				case 25: return new ThemenmusterReferencesThema(partition, roleAssignments, propertyAssignments);
				case 26: return new ThemenmusterReferencesUnterthema(partition, roleAssignments, propertyAssignments);
				case 27: return new ThemenmusterHasMustertext(partition, roleAssignments, propertyAssignments);
				case 28: return new ThemenmusterSourceHasThemenmusterTarget(partition, roleAssignments, propertyAssignments);
				case 29: return new ThemenmusterHasZusatzthema(partition, roleAssignments, propertyAssignments);
				case 30: return new ZusatzthemaHasMustertext(partition, roleAssignments, propertyAssignments);
				case 31: return new ZusatzthemaSourceHasZusatzthemaTarget(partition, roleAssignments, propertyAssignments);
				case 32: return new MusterbibliothekHasVModell(partition, roleAssignments, propertyAssignments);
				case 33: return new VariantenHasVariante(partition, roleAssignments, propertyAssignments);
				case 34: return new VarianteSourceReferencesVarianteTarget(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
Exemple #55
0
		/// <summary>
		/// Gets an array of CompartmentMappings for all compartments displayed on this shape
		/// (including compartment maps defined on base shapes). 
		/// </summary>
		/// <param name="melType">The type of the DomainClass that this shape is mapped to</param>
		/// <returns></returns>
		protected override DslDiagrams::CompartmentMapping[] GetCompartmentMappings(global::System.Type melType)
		{
			if(melType==null) throw new global::System.ArgumentNullException("melType");
			
			if(compartmentMappings==null)
			{
				// Initialize the table of compartment mappings if we haven't done so already. 
				// The table contains an array of CompartmentMapping for every Type that this
				// shape can be mapped to. 
				compartmentMappings = new global::System.Collections.Generic.Dictionary<global::System.Type, DslDiagrams::CompartmentMapping[]>();
				{
					// First we get the mappings defined for the base shape, and add on any mappings defined for this
					// shape. 
					DslDiagrams::CompartmentMapping[] baseMappings = base.GetCompartmentMappings(typeof(global::LinqToRdf.Design.ModelInterface));
					int localCompartmentMappingsOffset = 0;
					if(baseMappings!=null)
					{
						localCompartmentMappingsOffset = baseMappings.Length;
					}
					DslDiagrams::CompartmentMapping[] mappings = new DslDiagrams::CompartmentMapping[1+localCompartmentMappingsOffset];
					
					if(baseMappings!=null)
					{
						baseMappings.CopyTo(mappings, 0);
					}
					mappings[localCompartmentMappingsOffset+0] = new DslDiagrams::ElementListCompartmentMapping(
																				"OperationsCompartment", 
																				global::LinqToRdf.Design.NamedElement.NameDomainPropertyId, 
																				global::LinqToRdf.Design.InterfaceOperation.DomainClassId, 
																				GetElementsFromModelInterfaceForOperationsCompartment,
																				null,
																				null,
																				null);
					compartmentMappings.Add(typeof(global::LinqToRdf.Design.ModelInterface), mappings);
				}
			}
			
			// See if we can find the mapping being requested directly in the table. 
			DslDiagrams::CompartmentMapping[] returnValue;
			if(compartmentMappings.TryGetValue(melType, out returnValue))
			{
				return returnValue;
			}
			
			// If not, loop through the types in the table, and find the 'most derived' base
			// class of melType. 
			global::System.Type selectedMappedType = null;
			foreach(global::System.Type mappedType in compartmentMappings.Keys)
			{
				if(mappedType.IsAssignableFrom(melType) && (selectedMappedType==null || selectedMappedType.IsAssignableFrom(mappedType)))
				{
					selectedMappedType = mappedType;
				}
			}
			if(selectedMappedType!=null)
			{
				return compartmentMappings[selectedMappedType];
			}
			return new DslDiagrams::CompartmentMapping[] {};
		}
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(34);
				createElementMap.Add(typeof(nHydrateModel), 0);
				createElementMap.Add(typeof(Entity), 1);
				createElementMap.Add(typeof(Field), 2);
				createElementMap.Add(typeof(StoredProcedure), 3);
				createElementMap.Add(typeof(StoredProcedureField), 4);
				createElementMap.Add(typeof(StoredProcedureParameter), 5);
				createElementMap.Add(typeof(View), 6);
				createElementMap.Add(typeof(ViewField), 7);
				createElementMap.Add(typeof(RelationField), 8);
				createElementMap.Add(typeof(StaticData), 9);
				createElementMap.Add(typeof(Composite), 10);
				createElementMap.Add(typeof(CompositeField), 11);
				createElementMap.Add(typeof(EntityMetadata), 12);
				createElementMap.Add(typeof(FieldMetadata), 13);
				createElementMap.Add(typeof(Function), 14);
				createElementMap.Add(typeof(FunctionParameter), 15);
				createElementMap.Add(typeof(FunctionField), 16);
				createElementMap.Add(typeof(Module), 17);
				createElementMap.Add(typeof(RelationModule), 18);
				createElementMap.Add(typeof(ModuleRule), 19);
				createElementMap.Add(typeof(Index), 20);
				createElementMap.Add(typeof(IndexColumn), 21);
				createElementMap.Add(typeof(ModelMetadata), 22);
				createElementMap.Add(typeof(IndexModule), 23);
				createElementMap.Add(typeof(nHydrateDiagram), 24);
				createElementMap.Add(typeof(EntityAssociationConnector), 25);
				createElementMap.Add(typeof(EntityInheritanceConnector), 26);
				createElementMap.Add(typeof(EntityCompositeConnector), 27);
				createElementMap.Add(typeof(EntityViewAssociationConnector), 28);
				createElementMap.Add(typeof(EntityShape), 29);
				createElementMap.Add(typeof(StoredProcedureShape), 30);
				createElementMap.Add(typeof(ViewShape), 31);
				createElementMap.Add(typeof(EntityCompositeShape), 32);
				createElementMap.Add(typeof(FunctionShape), 33);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::nHydrate2.Dsl.nHydrate2DomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				// A constructor was not generated for nHydrateModel because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 0: return new nHydrateModel(partition, propertyAssignments);
				case 1: return new Entity(partition, propertyAssignments);
				// A constructor was not generated for Field because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 2: return new Field(partition, propertyAssignments);
				case 3: return new StoredProcedure(partition, propertyAssignments);
				// A constructor was not generated for StoredProcedureField because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 4: return new StoredProcedureField(partition, propertyAssignments);
				// A constructor was not generated for StoredProcedureParameter because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 5: return new StoredProcedureParameter(partition, propertyAssignments);
				case 6: return new View(partition, propertyAssignments);
				// A constructor was not generated for ViewField because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 7: return new ViewField(partition, propertyAssignments);
				case 8: return new RelationField(partition, propertyAssignments);
				case 9: return new StaticData(partition, propertyAssignments);
				case 10: return new Composite(partition, propertyAssignments);
				case 11: return new CompositeField(partition, propertyAssignments);
				case 12: return new EntityMetadata(partition, propertyAssignments);
				case 13: return new FieldMetadata(partition, propertyAssignments);
				case 14: return new Function(partition, propertyAssignments);
				// A constructor was not generated for FunctionParameter because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 15: return new FunctionParameter(partition, propertyAssignments);
				// A constructor was not generated for FunctionField because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 16: return new FunctionField(partition, propertyAssignments);
				case 17: return new Module(partition, propertyAssignments);
				case 18: return new RelationModule(partition, propertyAssignments);
				case 19: return new ModuleRule(partition, propertyAssignments);
				// A constructor was not generated for Index because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 20: return new Index(partition, propertyAssignments);
				// A constructor was not generated for IndexColumn because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 21: return new IndexColumn(partition, propertyAssignments);
				case 22: return new ModelMetadata(partition, propertyAssignments);
				case 23: return new IndexModule(partition, propertyAssignments);
				// A constructor was not generated for nHydrateDiagram because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 24: return new nHydrateDiagram(partition, propertyAssignments);
				// A constructor was not generated for EntityAssociationConnector because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 25: return new EntityAssociationConnector(partition, propertyAssignments);
				// A constructor was not generated for EntityInheritanceConnector because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 26: return new EntityInheritanceConnector(partition, propertyAssignments);
				case 27: return new EntityCompositeConnector(partition, propertyAssignments);
				case 28: return new EntityViewAssociationConnector(partition, propertyAssignments);
				// A constructor was not generated for EntityShape because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 29: return new EntityShape(partition, propertyAssignments);
				// A constructor was not generated for StoredProcedureShape because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 30: return new StoredProcedureShape(partition, propertyAssignments);
				case 31: return new ViewShape(partition, propertyAssignments);
				case 32: return new EntityCompositeShape(partition, propertyAssignments);
				// A constructor was not generated for FunctionShape because it had HasCustomConstructor
				// set to true. Please provide the constructor below.
				case 33: return new FunctionShape(partition, propertyAssignments);
				default: return null;
			}
		}
Exemple #57
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(14);
				createElementMap.Add(typeof(Model), 0);
				createElementMap.Add(typeof(ModelClass), 1);
				createElementMap.Add(typeof(ModelProperty), 2);
				createElementMap.Add(typeof(NestedClass), 3);
				createElementMap.Add(typeof(ActiveRecordMapping), 4);
				createElementMap.Add(typeof(ManyToOneConnector), 5);
				createElementMap.Add(typeof(ManyToManyConnector), 6);
				createElementMap.Add(typeof(OneToOneConnector), 7);
				createElementMap.Add(typeof(NestedConnector), 8);
				createElementMap.Add(typeof(InheritanceConnector), 9);
				createElementMap.Add(typeof(ClassShape), 10);
				createElementMap.Add(typeof(NestedClassShape), 11);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Castle.ActiveWriter.ActiveWriterDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				case 0: return new Model(partition, propertyAssignments);
				case 1: return new ModelClass(partition, propertyAssignments);
				case 2: return new ModelProperty(partition, propertyAssignments);
				case 3: return new NestedClass(partition, propertyAssignments);
				case 4: return new ActiveRecordMapping(partition, propertyAssignments);
				case 5: return new ManyToOneConnector(partition, propertyAssignments);
				case 6: return new ManyToManyConnector(partition, propertyAssignments);
				case 7: return new OneToOneConnector(partition, propertyAssignments);
				case 8: return new NestedConnector(partition, propertyAssignments);
				case 9: return new InheritanceConnector(partition, propertyAssignments);
				case 10: return new ClassShape(partition, propertyAssignments);
				case 11: return new NestedClassShape(partition, propertyAssignments);
				default: return null;
			}
		}
Exemple #58
0
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(10);
				createElementLinkMap.Add(typeof(ServiceContractModelHasServiceContracts), 0);
				createElementLinkMap.Add(typeof(ServiceContractModelHasOperations), 1);
				createElementLinkMap.Add(typeof(ServiceContractReferencesOperations), 2);
				createElementLinkMap.Add(typeof(ServiceContractModelHasServices), 3);
				createElementLinkMap.Add(typeof(ServiceReferencesServiceContract), 4);
				createElementLinkMap.Add(typeof(OperationHasFaults), 5);
				createElementLinkMap.Add(typeof(ServiceContractModelHasMessages), 6);
				createElementLinkMap.Add(typeof(RequestReferencedByOperation), 7);
				createElementLinkMap.Add(typeof(OperationReferencesResponse), 8);
				createElementLinkMap.Add(typeof(MessageHasMessageParts), 9);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Microsoft.Practices.ServiceFactory.ServiceContracts.ServiceContractDslDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
			
			}
			switch (index)
			{
				case 0: return new ServiceContractModelHasServiceContracts(partition, roleAssignments, propertyAssignments);
				case 1: return new ServiceContractModelHasOperations(partition, roleAssignments, propertyAssignments);
				case 2: return new ServiceContractReferencesOperations(partition, roleAssignments, propertyAssignments);
				case 3: return new ServiceContractModelHasServices(partition, roleAssignments, propertyAssignments);
				case 4: return new ServiceReferencesServiceContract(partition, roleAssignments, propertyAssignments);
				case 5: return new OperationHasFaults(partition, roleAssignments, propertyAssignments);
				case 6: return new ServiceContractModelHasMessages(partition, roleAssignments, propertyAssignments);
				case 7: return new RequestReferencedByOperation(partition, roleAssignments, propertyAssignments);
				case 8: return new OperationReferencesResponse(partition, roleAssignments, propertyAssignments);
				case 9: return new MessageHasMessageParts(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
Exemple #59
0
		public sealed override DslModeling::ElementLink CreateElementLink(DslModeling::Partition partition, global::System.Type elementLinkType, DslModeling::RoleAssignment[] roleAssignments, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementLinkType == null) throw new global::System.ArgumentNullException("elementLinkType");
			if (roleAssignments == null) throw new global::System.ArgumentNullException("roleAssignments");
	
			if (createElementLinkMap == null)
			{
				createElementLinkMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(9);
				createElementLinkMap.Add(typeof(ModelHasClass), 0);
				createElementLinkMap.Add(typeof(ManyToOneRelation), 1);
				createElementLinkMap.Add(typeof(ClassHasProperty), 2);
				createElementLinkMap.Add(typeof(ManyToManyRelation), 3);
				createElementLinkMap.Add(typeof(OneToOneRelation), 4);
				createElementLinkMap.Add(typeof(ModelHasNestedClasses), 5);
				createElementLinkMap.Add(typeof(NestedClassHasProperties), 6);
				createElementLinkMap.Add(typeof(NestedClassReferencesModelClasses), 7);
				createElementLinkMap.Add(typeof(InheritanceRelation), 8);
			}
			int index;
			if (!createElementLinkMap.TryGetValue(elementLinkType, out index))
			{
				// construct exception error message
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::Castle.ActiveWriter.ActiveWriterDomainModel.SingletonResourceManager.GetString("UnrecognizedElementLinkType"),
								elementLinkType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementLinkType");
			
			}
			switch (index)
			{
				case 0: return new ModelHasClass(partition, roleAssignments, propertyAssignments);
				case 1: return new ManyToOneRelation(partition, roleAssignments, propertyAssignments);
				case 2: return new ClassHasProperty(partition, roleAssignments, propertyAssignments);
				case 3: return new ManyToManyRelation(partition, roleAssignments, propertyAssignments);
				case 4: return new OneToOneRelation(partition, roleAssignments, propertyAssignments);
				case 5: return new ModelHasNestedClasses(partition, roleAssignments, propertyAssignments);
				case 6: return new NestedClassHasProperties(partition, roleAssignments, propertyAssignments);
				case 7: return new NestedClassReferencesModelClasses(partition, roleAssignments, propertyAssignments);
				case 8: return new InheritanceRelation(partition, roleAssignments, propertyAssignments);
				default: return null;
			}
		}
Exemple #60
0
		public sealed override DslModeling::ModelElement CreateElement(DslModeling::Partition partition, global::System.Type elementType, DslModeling::PropertyAssignment[] propertyAssignments)
		{
			if (elementType == null) throw new global::System.ArgumentNullException("elementType");
	
			if (createElementMap == null)
			{
				createElementMap = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(4);
				createElementMap.Add(typeof(AbstractionModel), 0);
				createElementMap.Add(typeof(ConceptType), 1);
				createElementMap.Add(typeof(InformationTypeFormat), 2);
				createElementMap.Add(typeof(Uniqueness), 3);
			}
			int index;
			if (!createElementMap.TryGetValue(elementType, out index))
			{
				// construct exception error message		
				string exceptionError = string.Format(
								global::System.Globalization.CultureInfo.CurrentCulture,
								global::ORMSolutions.ORMArchitect.ORMAbstraction.AbstractionDomainModel.SingletonResourceManager.GetString("UnrecognizedElementType"),
								elementType.Name);
				throw new global::System.ArgumentException(exceptionError, "elementType");
			}
			switch (index)
			{
				case 0: return new AbstractionModel(partition, propertyAssignments);
				case 1: return new ConceptType(partition, propertyAssignments);
				case 2: return new InformationTypeFormat(partition, propertyAssignments);
				case 3: return new Uniqueness(partition, propertyAssignments);
				default: return null;
			}
		}