public override void Init() { base.Init(); elementCreator=new PropertyElementCreator(xmiDocument,documentBuilder); parentElement=CollaborationElementStub.CreateCollaborationElementStub(xmiDocument); classElement=ClassElementStub.CreateClassElementStub(xmiDocument,CLASS_ELEMENT_ID); classElement.SetAttribute(NAME_ATTR_NAME,CLASS_ELEMENT_NAMEATTR_VALUE); modelElement=ModelElementStub.CreateModelElementStub(xmiDocument); modelElement.AppendChild(classElement); }
private XmlElement CreateAssociatedPropertyElement(XmlElement modelElement,XmlElement lifelineElement,XmlElement classElement) { XmlElement createdPropertyElement; string lifelineName=lifelineElement.GetAttribute(UmlModel.NAME_ATTR_NAME); string lifelineObjectName=GetLifelineObjectName(lifelineName); string lifelineTypeName=GetLifelineTypeName(lifelineName); PropertyElementCreator elementCreator=new PropertyElementCreator(this.XmiDocument,this.XmiDocumentBuilder); createdPropertyElement=elementCreator.CreatePropertyElement(modelElement,lifelineObjectName,classElement); return createdPropertyElement; }