private CoreStereotype createStereotype(CoreNamespace ownerNamespace, CoreModelElement owner, XElement xstereotype) { CoreStereotype coreStereotype = new CoreStereotypeImpl(); coreStereotype.setName(xstereotype.Attribute("name").Value); coreStereotype.setElemOwner(owner); updateElemOwnedElements(owner, coreStereotype); coreStereotype.setNamespace(ownerNamespace); updateNamespaceElemOwnedElements(ownerNamespace, coreStereotype); string xidref = xstereotype.Attribute("extendedElement").Value; CoreModelElement extendedElement; lookup.TryGetValue(xidref, out extendedElement); if (extendedElement != null) { updateExtendedElements(coreStereotype, extendedElement); updateStereotypes(extendedElement, coreStereotype); } lookup.Add(xstereotype.Attribute("xmi.id").Value, coreStereotype); return(coreStereotype); }
private CoreStereotype createStereotype(CoreNamespace ownerNamespace, CoreModelElement owner, string name) { CoreStereotype coreStereotype = new CoreStereotypeImpl(); coreStereotype.setName(name); coreStereotype.setElemOwner(owner); updateElemOwnedElements(owner, coreStereotype); coreStereotype.setNamespace(ownerNamespace); updateNamespaceElemOwnedElements(ownerNamespace, coreStereotype); return(coreStereotype); }