Ejemplo n.º 1
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::ce.GEB_NGN_PCR_Practica1.Ventana));
                    int localCompartmentMappingsOffset             = 0;
                    if (baseMappings != null)
                    {
                        localCompartmentMappingsOffset = baseMappings.Length;
                    }
                    DslDiagrams::CompartmentMapping[] mappings = new DslDiagrams::CompartmentMapping[0 + localCompartmentMappingsOffset];

                    if (baseMappings != null)
                    {
                        baseMappings.CopyTo(mappings, 0);
                    }
                    compartmentMappings.Add(typeof(global::ce.GEB_NGN_PCR_Practica1.Ventana), 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[] {});
        }
Ejemplo n.º 2
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::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityType));
                    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(
                        "AttributesCompartment",
                        global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.Attribute.NameDomainPropertyId,
                        global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.Attribute.DomainClassId,
                        GetElementsFromEntityTypeForAttributesCompartment,
                        null,
                        null,
                        null);
                    compartmentMappings.Add(typeof(global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityType), 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[] {});
        }
Ejemplo n.º 3
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[] {};
		}
Ejemplo n.º 4
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::Maxsys.VisualLAL.Simbolo));
                    int localCompartmentMappingsOffset             = 0;
                    if (baseMappings != null)
                    {
                        localCompartmentMappingsOffset = baseMappings.Length;
                    }
                    DslDiagrams::CompartmentMapping[] mappings = new DslDiagrams::CompartmentMapping[3 + localCompartmentMappingsOffset];

                    if (baseMappings != null)
                    {
                        baseMappings.CopyTo(mappings, 0);
                    }
                    mappings[localCompartmentMappingsOffset + 0] = new DslDiagrams::ElementListCompartmentMapping(
                        "ImpactoCompartment",
                        global::Maxsys.VisualLAL.SubEntrada.TextoDomainPropertyId,
                        global::Maxsys.VisualLAL.Impacto.DomainClassId,
                        GetElementsFromSimboloForImpactoCompartment,
                        null,
                        null,
                        null);
                    mappings[localCompartmentMappingsOffset + 1] = new DslDiagrams::ElementListCompartmentMapping(
                        "NocaoCompartment",
                        global::Maxsys.VisualLAL.SubEntrada.TextoDomainPropertyId,
                        global::Maxsys.VisualLAL.Nocao.DomainClassId,
                        GetElementsFromSimboloForNocaoCompartment,
                        null,
                        null,
                        null);
                    mappings[localCompartmentMappingsOffset + 2] = new DslDiagrams::ElementListCompartmentMapping(
                        "SinonimoCompartment",
                        global::Maxsys.VisualLAL.Entrada.NomeDomainPropertyId,
                        global::Maxsys.VisualLAL.Sinonimo.DomainClassId,
                        GetElementsFromSimboloForSinonimoCompartment,
                        null,
                        null,
                        null);
                    compartmentMappings.Add(typeof(global::Maxsys.VisualLAL.Simbolo), 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[] {});
        }
Ejemplo n.º 5
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::Microsoft.Practices.ServiceFactory.ServiceContracts.XsdMessage));
					int localCompartmentMappingsOffset = 0;
					if(baseMappings!=null)
					{
						localCompartmentMappingsOffset = baseMappings.Length;
					}
					DslDiagrams::CompartmentMapping[] mappings = new DslDiagrams::CompartmentMapping[0+localCompartmentMappingsOffset];
					
					if(baseMappings!=null)
					{
						baseMappings.CopyTo(mappings, 0);
					}
					compartmentMappings.Add(typeof(global::Microsoft.Practices.ServiceFactory.ServiceContracts.XsdMessage), 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[] {};
		}
Ejemplo n.º 6
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::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType));
                    int localCompartmentMappingsOffset             = 0;
                    if (baseMappings != null)
                    {
                        localCompartmentMappingsOffset = baseMappings.Length;
                    }
                    DslDiagrams::CompartmentMapping[] mappings = new DslDiagrams::CompartmentMapping[2 + localCompartmentMappingsOffset];

                    if (baseMappings != null)
                    {
                        baseMappings.CopyTo(mappings, 0);
                    }
                    mappings[localCompartmentMappingsOffset + 0] = new DslDiagrams::ElementListCompartmentMapping(
                        "Navigation",
                        global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.NameableItem.NameDomainPropertyId,
                        global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.NavigationProperty.DomainClassId,
                        GetElementsFromEntityTypeForNavigation,
                        null,
                        null,
                        null);
                    ////////
                    // CompartmentMap.DisplaysCustomString == true
                    // Please provide the following method to get the string to be
                    // displayed in the compartment list:
                    //
                    // static string GetDisplayPropertyFromEntityTypeForProperties(DslModeling::ModelElement element)
                    ////////
                    mappings[localCompartmentMappingsOffset + 1] = new DslDiagrams::ElementListCompartmentMapping(
                        "Properties",
                        global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.NameableItem.NameDomainPropertyId,
                        global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.Property.DomainClassId,
                        GetElementsFromEntityTypeForProperties,
                        null,
                        GetDisplayPropertyFromEntityTypeForProperties,                                                                                                                                          // This method needs to be provided. Please see comment-block above.
                        null);
                    compartmentMappings.Add(typeof(global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType), 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[] {});
        }
Ejemplo n.º 7
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::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.ClasePrincipal));
                    int localCompartmentMappingsOffset             = 0;
                    if (baseMappings != null)
                    {
                        localCompartmentMappingsOffset = baseMappings.Length;
                    }
                    DslDiagrams::CompartmentMapping[] mappings = new DslDiagrams::CompartmentMapping[3 + localCompartmentMappingsOffset];

                    if (baseMappings != null)
                    {
                        baseMappings.CopyTo(mappings, 0);
                    }
                    mappings[localCompartmentMappingsOffset + 0] = new DslDiagrams::ElementListCompartmentMapping(
                        "atributos",
                        global::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.Atributo.nombreAtributoDomainPropertyId,
                        global::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.Atributo.DomainClassId,
                        GetElementsFromClasePrincipalForatributos,
                        null,
                        null,
                        null);
                    mappings[localCompartmentMappingsOffset + 1] = new DslDiagrams::ElementListCompartmentMapping(
                        "identificador",
                        global::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.Identificador.identificadorDomainPropertyId,
                        global::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.Identificador.DomainClassId,
                        GetElementsFromClasePrincipalForidentificador,
                        null,
                        null,
                        null);
                    mappings[localCompartmentMappingsOffset + 2] = new DslDiagrams::ElementListCompartmentMapping(
                        "operaciones",
                        global::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.Operacion.operacionDomainPropertyId,
                        global::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.Operacion.DomainClassId,
                        GetElementsFromClasePrincipalForoperaciones,
                        null,
                        null,
                        null);
                    compartmentMappings.Add(typeof(global::UPM_IPS.MBRDCMDMI_ProyectoIPS.MBRDCMDMI.ClasePrincipal), 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[] {});
        }