/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> CustomSerializedElementMatch ICustomSerializedElement.MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary <string, CustomSerializedElementMatch> childElementMappings = CustomProperty.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary <string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(CustomPropertyHasCustomPropertyDefinition.CustomPropertyDefinitionDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/2007-11/CustomProperties|Definition", match); CustomProperty.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return(rVal); }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> protected CustomSerializedElementMatch MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary <string, CustomSerializedElementMatch> childElementMappings = BarkerERModelGenerationSetting.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary <string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(GenerationSettingTargetsBarkerERModel.GeneratedBarkerERModelDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/Bridge/2008-05/ORMAbstractionToBarkerER|BarkerErModel", match); BarkerERModelGenerationSetting.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return(rVal); }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> CustomSerializedElementMatch ICustomSerializedElement.MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary <string, CustomSerializedElementMatch> childElementMappings = DiagramDisplay.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary <string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRolesWithExplicitForwardReference(DiagramPlaceHolder.DomainClassId, DiagramDisplayHasDiagramOrder.DiagramDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/2008-11/DiagramDisplay|Diagram", match); DiagramDisplay.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return(rVal); }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> protected new CustomSerializedElementMatch MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary <string, CustomSerializedElementMatch> childElementMappings = ObjectTypeRequiresMeaningfulNameError.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary <string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(ORMSolutions.ORMArchitect.Core.ObjectModel.ORMModelElementHasExtensionModelError.ExtendedElementDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/ExtensionExample|ObjectType", match); ObjectTypeRequiresMeaningfulNameError.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; if (!childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal)) { rVal = base.MapChildElement(elementNamespace, elementName, containerNamespace, containerName, outerContainerNamespace, outerContainerName); } return(rVal); }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> protected CustomSerializedElementMatch MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary<string, CustomSerializedElementMatch> childElementMappings = AbstractionModelGenerationSetting.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary<string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(GenerationSettingTargetsAbstractionModel.GeneratedAbstractionModelDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/Bridge/2007-06/ORMToORMAbstraction|AbstractionModel", match); AbstractionModelGenerationSetting.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return rVal; }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> protected new CustomSerializedElementMatch MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary<string, CustomSerializedElementMatch> childElementMappings = ObjectTypeRequiresMeaningfulNameError.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary<string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(ORMSolutions.ORMArchitect.Core.ObjectModel.ORMModelElementHasExtensionModelError.ExtendedElementDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/ExtensionExample|ObjectType", match); ObjectTypeRequiresMeaningfulNameError.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; if (!childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal)) { rVal = base.MapChildElement(elementNamespace, elementName, containerNamespace, containerName, outerContainerNamespace, outerContainerName); } return rVal; }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> CustomSerializedElementMatch ICustomSerializedElement.MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary<string, CustomSerializedElementMatch> childElementMappings = CustomProperty.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary<string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(CustomPropertyHasCustomPropertyDefinition.CustomPropertyDefinitionDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/2007-11/CustomProperties|Definition", match); CustomProperty.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return rVal; }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> protected CustomSerializedElementMatch MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary<string, CustomSerializedElementMatch> childElementMappings = Role.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary<string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(RoleHasCardinalityQualifier.CardinalityQualifierDomainRoleId); childElementMappings.Add("||http://schemas.neumont.edu/ORM/EntityRelationship/2008-05/Barker|Modifier||", match); Role.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return rVal; }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> protected CustomSerializedElementMatch MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary<string, CustomSerializedElementMatch> childElementMappings = EntityType.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary<string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(EntityTypePlaysRole.RoleDomainRoleId); childElementMappings.Add("||http://schemas.neumont.edu/ORM/EntityRelationship/2008-05/Barker|Roles||Role", match); match.InitializeRoles(EntityTypeIsSubtypeOfEntityType.SubtypeDomainRoleId); childElementMappings.Add("||http://schemas.neumont.edu/ORM/EntityRelationship/2008-05/Barker|Subtypes||EntityType", match); match.InitializeRoles(EntityTypeHasAttribute.AttributeDomainRoleId); childElementMappings.Add("||http://schemas.neumont.edu/ORM/EntityRelationship/2008-05/Barker|Attributes||", match); EntityType.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return rVal; }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> protected CustomSerializedElementMatch MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary<string, CustomSerializedElementMatch> childElementMappings = BarkerErModel.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary<string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRoles(BarkerErModelContainsEntityType.EntityTypeDomainRoleId); childElementMappings.Add("||http://schemas.neumont.edu/ORM/EntityRelationship/2008-05/Barker|EntityTypes||", match); match.InitializeRoles(BarkerErModelContainsBinaryAssociation.BinaryAssociationDomainRoleId); childElementMappings.Add("||http://schemas.neumont.edu/ORM/EntityRelationship/2008-05/Barker|BinaryAssociations||", match); match.InitializeRoles(BarkerErModelContainsExclusiveArc.ExclusiveArcDomainRoleId); childElementMappings.Add("||http://schemas.neumont.edu/ORM/EntityRelationship/2008-05/Barker|Constraints||", match); BarkerErModel.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return rVal; }
/// <summary>Implements ICustomSerializedElement.MapChildElement</summary> CustomSerializedElementMatch ICustomSerializedElement.MapChildElement(string elementNamespace, string elementName, string containerNamespace, string containerName, string outerContainerNamespace, string outerContainerName) { Dictionary<string, CustomSerializedElementMatch> childElementMappings = DiagramDisplay.myChildElementMappings; if (childElementMappings == null) { childElementMappings = new Dictionary<string, CustomSerializedElementMatch>(); CustomSerializedElementMatch match = new CustomSerializedElementMatch(); match.InitializeRolesWithExplicitForwardReference(DiagramPlaceHolder.DomainClassId, DiagramDisplayHasDiagramOrder.DiagramDomainRoleId); childElementMappings.Add("||||http://schemas.neumont.edu/ORM/2008-11/DiagramDisplay|Diagram", match); DiagramDisplay.myChildElementMappings = childElementMappings; } CustomSerializedElementMatch rVal; childElementMappings.TryGetValue(string.Concat(outerContainerNamespace, "|", outerContainerName, "|", (object)containerNamespace != (object)outerContainerNamespace ? containerNamespace : null, "|", containerName, "|", (object)elementNamespace != (object)containerNamespace ? elementNamespace : null, "|", elementName), out rVal); return rVal; }