| | 28 | |
|---|
| | 29 | # State diagram specific |
|---|
| | 30 | # ====================== |
|---|
| | 31 | def handleInitialNode(self, xmi, node): |
|---|
| | 32 | attributes = XMLAttributes() |
|---|
| | 33 | attributes['xmi.id']=node.id |
|---|
| | 34 | attributes['name']="start" # Gaphor doens't have name support |
|---|
| | 35 | # for start actions. |
|---|
| | 36 | attributes['visibility'] = 'public' |
|---|
| | 37 | attributes['isSpecification'] = 'false' |
|---|
| | 38 | attributes['kind'] = 'initial' |
|---|
| | 39 | xmi.startElement('UML2:Pseudostate', attrs=attributes) |
|---|
| | 40 | xmi.startElement('UML2:Vertex.outgoing') |
|---|
| | 41 | |
|---|
| | 42 | |
|---|
| | 43 | |
|---|
| | 44 | def handleAction(self, xmi, node): |
|---|
| | 45 | attributes = XMLAttributes() |
|---|
| | 46 | attributes['xmi.id']=node.id |
|---|
| | 47 | attributes['name']=node.name |
|---|
| | 48 | attributes['visibility'] = 'public' |
|---|
| | 49 | attributes['isSpecification'] = 'false' |
|---|
| | 50 | |
|---|
| | 51 | def handleControlFlow(self, xmi, node): |
|---|
| | 52 | pass |
|---|
| | 53 | |
|---|
| | 54 | |
|---|
| | 55 | # Class diagram specific |
|---|
| | 56 | #========================= |
|---|