summaryrefslogtreecommitdiffstats
path: root/tools/class2uml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/class2uml.py')
-rwxr-xr-xtools/class2uml.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/class2uml.py b/tools/class2uml.py
index d46bcc5..99e547e 100755
--- a/tools/class2uml.py
+++ b/tools/class2uml.py
@@ -101,18 +101,20 @@ class UmlExporter(object):
def compare_properties(self, p1, p2):
"""
- Compare two properties. Only Name and Description are checked.
+ Compare two properties if they should printed in Inherited properties.
+ Only Name, Description and Implemented are checked.
+ Returns False, if the property should be printed in Local.
"""
if p1.name != p2.name:
return False
- i1 = p1.qualifiers.get("Implemented", None)
- i2 = p2.qualifiers.get("Implemented", None)
- if i1 and i1.value and not (i2 and i2.value):
- return False
d1 = p1.qualifiers.get("Description", None)
d2 = p2.qualifiers.get("Description", None)
if d1.value != d2.value:
return False
+ i1 = p1.qualifiers.get("Implemented", None)
+ i2 = p2.qualifiers.get("Implemented", None)
+ if i1 and i1.value and not (i2 and i2.value):
+ return False
return True
def print_class(self, c, display_local = True, box_only = False):