コード例 #1
0
 public override void Init()
 {
     base.Init();
     elementCreator=new LifelineElementCreator(xmiDocument,documentBuilder);
     parentElement=InteractionElementStub.CreateInteractionElementStub(xmiDocument);
     modelElement=ModelElementStub.CreateModelElementStub(xmiDocument);
     collaborationElement=CollaborationElementStub.CreateCollaborationElementStub(xmiDocument);
     modelElement.AppendChild(collaborationElement);
     collaborationElement.AppendChild(parentElement);
 }
コード例 #2
0
 public XmlElement AddLifelineElement(XmlElement parentElement,XmlElement collaborationElement,Process lifelineItem)
 {
     LifelineElementCreator elementCreator=new LifelineElementCreator(xmiDocument,this);
     XmlElement newLifelineElement=elementCreator.CreateLifelineElement(parentElement,collaborationElement,lifelineItem);
     return newLifelineElement;
 }