Rename AbstractReq.id parameter and remove lower/upper from end param

This commit is contained in:
Arjan Molenaar 2020-05-07 22:53:03 +02:00
parent ffc8a9c41a
commit 3e28c8895f
2 changed files with 13 additions and 68 deletions

View File

@ -52,15 +52,15 @@ from gaphor.UML import (
class AbstractRequirement(NamedElement):
master: attribute[AbstractRequirement]
verifiedBy: attribute[NamedElement]
refinedBy: attribute[NamedElement]
base_NamedElement: attribute[NamedElement]
satisfiedBy: attribute[NamedElement]
text: attribute[str]
derived: attribute[AbstractRequirement]
tracedTo: attribute[NamedElement]
id: attribute[str]
externalId: attribute[str]
verifiedBy: attribute[NamedElement]
master: attribute[AbstractRequirement]
refinedBy: attribute[NamedElement]
class AcceptChangeStructuralFeatureEventAction(AcceptEventAction):
@ -103,13 +103,12 @@ class Block(Class):
class EndPathMultiplicity(Property):
upper: attribute[int]
lower: attribute[int]
pass
class BoundReference(EndPathMultiplicity):
boundend: attribute[ConnectorEnd]
bindingPath: attribute[Property]
boundend: attribute[ConnectorEnd]
class ChangeSructuralFeatureEvent(ChangeEvent):
@ -132,7 +131,7 @@ class ConstraintBlock(Block):
pass
class Rate(Parameter, ActivityEdge):
class Rate(ActivityEdge, Parameter):
rate: attribute[InstanceSpecification]
@ -169,11 +168,11 @@ class DistributedProperty(Property):
class ElementGroup(Comment):
orderedMember: attribute[Element]
size: attribute[int]
criterion: attribute[str]
member: attribute[Element]
name: attribute[str]
orderedMember: attribute[Element]
size: attribute[int]
class Expose(Dependency):
@ -245,14 +244,14 @@ class Satisfy(Trace):
class Stakeholder(Classifier):
concern: attribute[str]
concernList: attribute[Comment]
concern: attribute[str]
class Tagged(Property):
subsets: attribute[str]
nonunique: attribute[bool]
ordered: attribute[bool]
subsets: attribute[str]
class TestCase(Behavior):
@ -277,13 +276,13 @@ class View(Class):
class Viewpoint(Class):
language: attribute[str]
method: attribute[Behavior]
presentation: attribute[str]
purpose: attribute[str]
concern: attribute[str]
stakeholder: attribute[Stakeholder]
concernList: attribute[Comment]
language: attribute[str]
class _Refine:

View File

@ -1135,7 +1135,7 @@
<ref refid="2d1ce65e-20e2-11ea-9209-e76c3117c943"/>
</class_>
<name>
<val>id</val>
<val>externalId</val>
</name>
<typeValue>
<val>String</val>
@ -4092,8 +4092,6 @@
</name>
<ownedAttribute>
<reflist>
<ref refid="209c87a8-210b-11ea-ab0b-c72c0738acd2"/>
<ref refid="30c6b842-210b-11ea-ab0b-c72c0738acd2"/>
<ref refid="85c1ec33-210f-11ea-ab0b-c72c0738acd2"/>
</reflist>
</ownedAttribute>
@ -4143,58 +4141,6 @@
<ref refid="f19164ec-210a-11ea-ab0b-c72c0738acd2"/>
</specific>
</Generalization>
<Property id="209c87a8-210b-11ea-ab0b-c72c0738acd2">
<class_>
<ref refid="efc51366-210a-11ea-ab0b-c72c0738acd2"/>
</class_>
<defaultValue>
<val>0</val>
</defaultValue>
<lowerValue>
<val>0</val>
</lowerValue>
<lowerValue>
<val>0</val>
</lowerValue>
<name>
<val>lower</val>
</name>
<typeValue>
<val>Integer</val>
</typeValue>
<upperValue>
<val>1</val>
</upperValue>
<upperValue>
<val>1</val>
</upperValue>
</Property>
<Property id="30c6b842-210b-11ea-ab0b-c72c0738acd2">
<class_>
<ref refid="efc51366-210a-11ea-ab0b-c72c0738acd2"/>
</class_>
<defaultValue>
<val>unlimited</val>
</defaultValue>
<lowerValue>
<val>0</val>
</lowerValue>
<lowerValue>
<val>0</val>
</lowerValue>
<name>
<val>upper</val>
</name>
<typeValue>
<val>UnlimitedNatural</val>
</typeValue>
<upperValue>
<val>1</val>
</upperValue>
<upperValue>
<val>1</val>
</upperValue>
</Property>
<Property id="3c3acf38-210b-11ea-ab0b-c72c0738acd2">
<class_>
<ref refid="f19164ec-210a-11ea-ab0b-c72c0738acd2"/>