1------------------------------------------------------------------------------
2--                                                                          --
3--                            Matreshka Project                             --
4--                                                                          --
5--                          Ada Modeling Framework                          --
6--                                                                          --
7--                        Runtime Library Component                         --
8--                                                                          --
9------------------------------------------------------------------------------
10--                                                                          --
11-- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com>                     --
12-- All rights reserved.                                                     --
13--                                                                          --
14-- Redistribution and use in source and binary forms, with or without       --
15-- modification, are permitted provided that the following conditions       --
16-- are met:                                                                 --
17--                                                                          --
18--  * Redistributions of source code must retain the above copyright        --
19--    notice, this list of conditions and the following disclaimer.         --
20--                                                                          --
21--  * Redistributions in binary form must reproduce the above copyright     --
22--    notice, this list of conditions and the following disclaimer in the   --
23--    documentation and/or other materials provided with the distribution.  --
24--                                                                          --
25--  * Neither the name of the Vadim Godunko, IE nor the names of its        --
26--    contributors may be used to endorse or promote products derived from  --
27--    this software without specific prior written permission.              --
28--                                                                          --
29-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS      --
30-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT        --
31-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR    --
32-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT     --
33-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   --
34-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
35-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR   --
36-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF   --
37-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING     --
38-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS       --
39-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.             --
40--                                                                          --
41------------------------------------------------------------------------------
42--  $Revision: 3402 $ $Date: 2012-11-13 11:13:41 +0400 (Tue, 13 Nov 2012) $
43------------------------------------------------------------------------------
44with AMF.CMOF.Properties;
45with AMF.Internals.Helpers;
46with AMF.Internals.Listener_Registry;
47with AMF.UMLDI.Holders.UML_Association_Or_Connector_Or_Link_Shape_Kinds;
48with AMF.UMLDI.Holders.UML_Interaction_Table_Label_Kinds;
49with AMF.UMLDI.Holders.UML_Interaction_Diagram_Kinds;
50with AMF.UMLDI.Holders.UML_Navigability_Notation_Kinds;
51
52package body AMF.Internals.Tables.UMLDI_Notification is
53
54   --------------------------
55   -- Notify_Attribute_Set --
56   --------------------------
57
58   procedure Notify_Attribute_Set
59    (Element   : AMF.Internals.AMF_Element;
60     Property  : AMF.Internals.CMOF_Element;
61     Old_Value : AMF.UMLDI.UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind;
62     New_Value : AMF.UMLDI.UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind) is
63   begin
64      AMF.Internals.Listener_Registry.Notify_Attribute_Set
65       (AMF.Internals.Helpers.To_Element (Element),
66        AMF.CMOF.Properties.CMOF_Property_Access
67         (AMF.Internals.Helpers.To_Element (Property)),
68        (Is_Empty => True),
69        AMF.UMLDI.Holders.UML_Association_Or_Connector_Or_Link_Shape_Kinds.To_Holder (Old_Value),
70        AMF.UMLDI.Holders.UML_Association_Or_Connector_Or_Link_Shape_Kinds.To_Holder (New_Value));
71   end Notify_Attribute_Set;
72
73   --------------------------
74   -- Notify_Attribute_Set --
75   --------------------------
76
77   procedure Notify_Attribute_Set
78    (Element   : AMF.Internals.AMF_Element;
79     Property  : AMF.Internals.CMOF_Element;
80     Old_Value : AMF.UMLDI.Optional_UMLDI_UML_Inherited_State_Border_Kind;
81     New_Value : AMF.UMLDI.Optional_UMLDI_UML_Inherited_State_Border_Kind) is
82   begin
83      AMF.Internals.Listener_Registry.Notify_Attribute_Set
84       (AMF.Internals.Helpers.To_Element (Element),
85        AMF.CMOF.Properties.CMOF_Property_Access
86         (AMF.Internals.Helpers.To_Element (Property)),
87        (Is_Empty => True),
88        AMF.UMLDI.Holders.To_Holder (Old_Value),
89        AMF.UMLDI.Holders.To_Holder (New_Value));
90   end Notify_Attribute_Set;
91
92   --------------------------
93   -- Notify_Attribute_Set --
94   --------------------------
95
96   procedure Notify_Attribute_Set
97    (Element   : AMF.Internals.AMF_Element;
98     Property  : AMF.Internals.CMOF_Element;
99     Old_Value : AMF.UMLDI.UMLDI_UML_Interaction_Table_Label_Kind;
100     New_Value : AMF.UMLDI.UMLDI_UML_Interaction_Table_Label_Kind) is
101   begin
102      AMF.Internals.Listener_Registry.Notify_Attribute_Set
103       (AMF.Internals.Helpers.To_Element (Element),
104        AMF.CMOF.Properties.CMOF_Property_Access
105         (AMF.Internals.Helpers.To_Element (Property)),
106        (Is_Empty => True),
107        AMF.UMLDI.Holders.UML_Interaction_Table_Label_Kinds.To_Holder (Old_Value),
108        AMF.UMLDI.Holders.UML_Interaction_Table_Label_Kinds.To_Holder (New_Value));
109   end Notify_Attribute_Set;
110
111   --------------------------
112   -- Notify_Attribute_Set --
113   --------------------------
114
115   procedure Notify_Attribute_Set
116    (Element   : AMF.Internals.AMF_Element;
117     Property  : AMF.Internals.CMOF_Element;
118     Old_Value : AMF.UMLDI.UMLDI_UML_Interaction_Diagram_Kind;
119     New_Value : AMF.UMLDI.UMLDI_UML_Interaction_Diagram_Kind) is
120   begin
121      AMF.Internals.Listener_Registry.Notify_Attribute_Set
122       (AMF.Internals.Helpers.To_Element (Element),
123        AMF.CMOF.Properties.CMOF_Property_Access
124         (AMF.Internals.Helpers.To_Element (Property)),
125        (Is_Empty => True),
126        AMF.UMLDI.Holders.UML_Interaction_Diagram_Kinds.To_Holder (Old_Value),
127        AMF.UMLDI.Holders.UML_Interaction_Diagram_Kinds.To_Holder (New_Value));
128   end Notify_Attribute_Set;
129
130   --------------------------
131   -- Notify_Attribute_Set --
132   --------------------------
133
134   procedure Notify_Attribute_Set
135    (Element   : AMF.Internals.AMF_Element;
136     Property  : AMF.Internals.CMOF_Element;
137     Old_Value : AMF.UMLDI.UMLDI_UML_Navigability_Notation_Kind;
138     New_Value : AMF.UMLDI.UMLDI_UML_Navigability_Notation_Kind) is
139   begin
140      AMF.Internals.Listener_Registry.Notify_Attribute_Set
141       (AMF.Internals.Helpers.To_Element (Element),
142        AMF.CMOF.Properties.CMOF_Property_Access
143         (AMF.Internals.Helpers.To_Element (Property)),
144        (Is_Empty => True),
145        AMF.UMLDI.Holders.UML_Navigability_Notation_Kinds.To_Holder (Old_Value),
146        AMF.UMLDI.Holders.UML_Navigability_Notation_Kinds.To_Holder (New_Value));
147   end Notify_Attribute_Set;
148
149end AMF.Internals.Tables.UMLDI_Notification;
150