private string CreateExecutionOccurrenceSpecElement(XmlElement parentElement,string executionSpecificationID,XmlElement lifelineElement)
 {
     string executionOccurrenceSpecID=null;
     ExecutionOccurrenceSpecElementCreator elementCreator=
         new ExecutionOccurrenceSpecElementCreator(this.XmiDocument,this.XmiDocumentBuilder);
     XmlElement executionOccurrenceSpecElement=
         elementCreator.CreateExecutionOccurrenceSpecElement(parentElement,executionSpecificationID,lifelineElement);
     executionOccurrenceSpecID=executionOccurrenceSpecElement.GetAttribute(UmlModel.XMI_ID_ATTR_COMPLETE_NAME);
     return executionOccurrenceSpecID;
 }
 public override void Init()
 {
     base.Init();
     elementCreator=new ExecutionOccurrenceSpecElementCreator(xmiDocument,documentBuilder);
     parentElement=InteractionElementStub.CreateInteractionElementStub(xmiDocument);
     lifelineElement=LifelineElementStub.CreateLifelineElementStub(xmiDocument,LIFE_LINE_ID);
     modelElement=ModelElementStub.CreateModelElementStub(xmiDocument);
     parentElement.AppendChild(lifelineElement);
     modelElement.AppendChild(parentElement);
 }
Ejemplo n.º 3
0
 public XmlElement AddExecutionOccurrenceSpecificationElement(XmlElement parentElement,string executionSpecificationID, XmlElement lifelineElement)
 {
     ExecutionOccurrenceSpecElementCreator elementCreator= new ExecutionOccurrenceSpecElementCreator(xmiDocument,this);
     XmlElement newExecutionOccurrenceSpecElement=elementCreator.CreateExecutionOccurrenceSpecElement(parentElement,executionSpecificationID,lifelineElement);
     return newExecutionOccurrenceSpecElement;
 }