1------------------------------------------------------------------------------
2--                                                                          --
3--                            Matreshka Project                             --
4--                                                                          --
5--                          Ada Modeling Framework                          --
6--                                                                          --
7--                        Runtime Library Component                         --
8--                                                                          --
9------------------------------------------------------------------------------
10--                                                                          --
11-- Copyright © 2011-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: 2714 $ $Date: 2012-03-24 10:29:08 +0400 (Sat, 24 Mar 2012) $
43------------------------------------------------------------------------------
44--  This file is generated, don't edit it.
45------------------------------------------------------------------------------
46--  An association describes a set of tuples whose values refer to typed
47--  instances. An instance of an association is called a link.A link is a
48--  tuple with one value for each end of the association, where each value is
49--  an instance of the type of the end.
50--
51--  An association describes a set of tuples whose values refer to typed
52--  instances. An instance of an association is called a link. A link is a
53--  tuple with one value for each end of the association, where each value is
54--  an instance of the type of the end.
55------------------------------------------------------------------------------
56with AMF.UML.Classifiers;
57limited with AMF.UML.Properties.Collections;
58with AMF.UML.Relationships;
59limited with AMF.UML.Types.Collections;
60
61package AMF.UML.Associations is
62
63   pragma Preelaborate;
64
65   type UML_Association is limited interface
66     and AMF.UML.Relationships.UML_Relationship
67     and AMF.UML.Classifiers.UML_Classifier;
68
69   type UML_Association_Access is
70     access all UML_Association'Class;
71   for UML_Association_Access'Storage_Size use 0;
72
73   not overriding function Get_End_Type
74    (Self : not null access constant UML_Association)
75       return AMF.UML.Types.Collections.Ordered_Set_Of_UML_Type is abstract;
76   --  Getter of Association::endType.
77   --
78   --  References the classifiers that are used as types of the ends of the
79   --  association.
80
81   not overriding function Get_Is_Derived
82    (Self : not null access constant UML_Association)
83       return Boolean is abstract;
84   --  Getter of Association::isDerived.
85   --
86   --  Specifies whether the association is derived from other model elements
87   --  such as other associations or constraints.
88
89   not overriding procedure Set_Is_Derived
90    (Self : not null access UML_Association;
91     To   : Boolean) is abstract;
92   --  Setter of Association::isDerived.
93   --
94   --  Specifies whether the association is derived from other model elements
95   --  such as other associations or constraints.
96
97   not overriding function Get_Member_End
98    (Self : not null access constant UML_Association)
99       return AMF.UML.Properties.Collections.Ordered_Set_Of_UML_Property is abstract;
100   --  Getter of Association::memberEnd.
101   --
102   --  Each end represents participation of instances of the classifier
103   --  connected to the end in links of the association.
104
105   not overriding function Get_Navigable_Owned_End
106    (Self : not null access constant UML_Association)
107       return AMF.UML.Properties.Collections.Set_Of_UML_Property is abstract;
108   --  Getter of Association::navigableOwnedEnd.
109   --
110   --  The navigable ends that are owned by the association itself.
111
112   not overriding function Get_Owned_End
113    (Self : not null access constant UML_Association)
114       return AMF.UML.Properties.Collections.Ordered_Set_Of_UML_Property is abstract;
115   --  Getter of Association::ownedEnd.
116   --
117   --  The ends that are owned by the association itself.
118
119   not overriding function End_Type
120    (Self : not null access constant UML_Association)
121       return AMF.UML.Types.Collections.Ordered_Set_Of_UML_Type is abstract;
122   --  Operation Association::endType.
123   --
124   --  endType is derived from the types of the member ends.
125
126end AMF.UML.Associations;
127