private void AddEventAttribute(XmlElement parentElement,XmlElement exectionOccurrenceSpecElement)
 {
     XmlElement modelElement=(XmlElement)parentElement.ParentNode;
     EventElementCreator eventElementCreator=new EventElementCreator(this.XmiDocument,this.XmiDocumentBuilder);
     XmlElement eventElement=eventElementCreator.CreateExecutionEventElement(modelElement,null);
     string eventElementId=eventElement.GetAttribute(UmlModel.XMI_ID_ATTR_COMPLETE_NAME);
     this.AddAttribute(exectionOccurrenceSpecElement,UmlModel.EVENT_ATTR_NAME,eventElementId);
 }
 private void AddEventAttribute(XmlElement parentElement,XmlElement messageOccurrenceSpecElement)
 {
     XmlElement modelElement=(XmlElement)parentElement.ParentNode;
     EventElementCreator eventElementCreator=new EventElementCreator(this.XmiDocument,this.XmiDocumentBuilder);
     XmlElement eventElement=null;
     eventElement=eventElementCreator.CreateMessageEventElement(modelElement,null,messageSort,eventKind);
     string eventElementId=eventElement.GetAttribute(UmlModel.XMI_ID_ATTR_COMPLETE_NAME);
     this.AddAttribute(messageOccurrenceSpecElement,UmlModel.EVENT_ATTR_NAME,eventElementId);
 }
 public override void Init()
 {
     base.Init();
     elementCreator=new EventElementCreator(xmiDocument,documentBuilder);
     parentElement=ModelElementStub.CreateModelElementStub(xmiDocument);
 }