Subject: | dia changed naming from aggregate_a/b to assoc_type |
in my dia there is no aggregate_a/b anymore, if i change the aggregate
in dia the xml-node named assoc_type change his enum value, so
aggregate_a/b changed to assoc_type
i am not sure about adding the value to $rightEnd{aggregate} or
$leftEnd{aggregate}, but i think it is not important.
Here is a assoc from my current dia:
$ dia -v
Dia-Version 0.97.1, kompiliert 22:05:25 Mar 30 2010
<dia:object type="UML - Association" version="2" id="O18">
<dia:attribute name="name">
<dia:string>#fk_domains_domain_informations#</dia:string>
</dia:attribute>
<dia:attribute name="direction">
<dia:enum val="1"/>
</dia:attribute>
<dia:attribute name="show_direction">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="assoc_type">
<dia:enum val="2"/>
</dia:attribute>
<dia:attribute name="role_a">
<dia:string>#domain_id#</dia:string>
</dia:attribute>
<dia:attribute name="multipicity_a">
<dia:string>#0..*#</dia:string>
</dia:attribute>
<dia:attribute name="visibility_a">
<dia:enum val="3"/>
</dia:attribute>
<dia:attribute name="show_arrow_a">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="role_b">
<dia:string>#domain_id#</dia:string>
</dia:attribute>
<dia:attribute name="multipicity_b">
<dia:string>#1..1#</dia:string>
</dia:attribute>
<dia:attribute name="visibility_b">
<dia:enum val="3"/>
</dia:attribute>
<dia:attribute name="show_arrow_b">
<dia:boolean val="false"/>
</dia:attribute>
# ... positions ...
</dia:object>
Subject: | Parse-Dia-SQL-0.17_1.patch |
diff -r -u Parse-Dia-SQL-0.17/lib/Parse/Dia/SQL.pm Parse-Dia-SQL-0.17.patched/lib/Parse/Dia/SQL.pm
--- Parse-Dia-SQL-0.17/lib/Parse/Dia/SQL.pm 2011-02-16 11:23:11.000000000 +0100
+++ Parse-Dia-SQL-0.17.patched/lib/Parse/Dia/SQL.pm 2011-02-22 11:03:39.230760456 +0100
@@ -1239,6 +1239,8 @@
$leftEnd{aggregate} = $self->{utils}->get_string_from_node($currentNode);
} elsif ( $nodeAttrName eq 'aggregate_b' ) {
$rightEnd{aggregate} = $self->{utils}->get_string_from_node($currentNode);
+ } elsif ( $nodeAttrName eq 'assoc_type' ) {
+ $leftEnd{aggregate} = $self->{utils}->get_num_from_node($currentNode);
} elsif ( $nodeAttrName eq 'class_scope_a' ) {
$leftEnd{class_scope} = $self->{utils}->get_string_from_node($currentNode);
} elsif ( $nodeAttrName eq 'class_scope_b' ) {