Skip to content

Commit

Permalink
UML Plugin correct direction of the generalization and realization re…
Browse files Browse the repository at this point in the history
…lations
  • Loading branch information
Nick Hancock authored and mbj4668 committed Feb 5, 2024
1 parent e3ff8ab commit 87d23b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyang/plugins/uml.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def __init__(self, ctx):
if ctx.opts.uml_uses != "":
if ctx.opts.uml_uses in uses_strings:
if ctx.opts.uml_uses == 'generalization':
self.uses_relation_symbol = "<|--"
self.uses_relation_symbol = "--|>"
elif ctx.opts.uml_uses == 'aggregation':
self.uses_relation_symbol = "o--"
elif ctx.opts.uml_uses == 'association':
Expand All @@ -297,7 +297,7 @@ def __init__(self, ctx):
self.uses_relation_symbol = "..>"
self.uses_relation_label = "<<uses>>"
elif ctx.opts.uml_uses == 'realization':
self.uses_relation_symbol = "<|.."
self.uses_relation_symbol = "..|>"
else:
sys.stderr.write("\"%s\" no valid argument to --uml-uses=..., valid arguments (one only): %s \n" %(ctx.opts.uml_uses, uses_strings))

Expand Down

0 comments on commit 87d23b0

Please sign in to comment.