public XmlElement CreateBehaviorExcecutionSpecificationElement(XmlElement parentElement,ProcessRegion executionItem,XmlElement lifelineElement)
 {
     XmlElement executionSpecificationElement=this.CreateUmlAttributeAsElement(parentElement,BEHAVIOR_SPECIFICATION_ELEMENT_TYPE_NAME,UmlModel.BEHAVIOR_EXECUTION_SPECIFICATION);
     AddExecutionSpecificationNameAttribute(executionSpecificationElement,executionItem);
     AddOccurrenceSpecificationStartAttribute(parentElement,executionSpecificationElement,lifelineElement);
     AddOccurrenceSpecificationFinishAttribute(parentElement,executionSpecificationElement,lifelineElement);
     AddCoveredByAttrToLifelineElement(lifelineElement,executionSpecificationElement);
     AddCoveredAttribute(executionSpecificationElement,lifelineElement);
     return executionSpecificationElement;
 }
 public override void Init()
 {
     base.Init();
     elementCreator=new BehaviorExecutionSpecificationElementCreator(xmiDocument,documentBuilder);
     parentElement=InteractionElementStub.CreateInteractionElementStub(xmiDocument);
     modelElement=ModelElementStub.CreateModelElementStub(xmiDocument);
     executionItem=new ProcessRegion(FILE_LINE_DUMMY,LINE_DUMMY,PROCESS_DUMMY,ProcessStyle.Activation,ProcessStyle.Activation);
     lifelineElement=LifelineElementStub.CreateLifelineElementStub(xmiDocument,LIFELINE_ID);
     parentElement.AppendChild(lifelineElement);
     modelElement.AppendChild(parentElement);
 }
        private void AddExecutionSpecificationNameAttribute(XmlElement executionSpecificationElement,ProcessRegion executionItem)
        {
            string executionSpecificationName=executionItem.Name;

            if(executionSpecificationName!=null)
            {
                AddAttribute(executionSpecificationElement,UmlModel.NAME_ATTR_NAME,executionSpecificationName);
            }
        }
Exemplo n.º 4
0
 public XmlElement AddBehaviorExecutionSpecificationElement(XmlElement parentElement,ProcessRegion executionItem,XmlElement lifelineElement)
 {
     BehaviorExecutionSpecificationElementCreator elementCreator=new BehaviorExecutionSpecificationElementCreator(xmiDocument,this);
     XmlElement newExecutionSpecificationElement=elementCreator.CreateBehaviorExcecutionSpecificationElement(parentElement,executionItem,lifelineElement);
     return newExecutionSpecificationElement;
 }