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 extension is used to indicate that the properties of a metaclass are 47-- extended through a stereotype, and gives the ability to flexibly add (and 48-- later remove) stereotypes to classes. 49------------------------------------------------------------------------------ 50with AMF.UML.Associations; 51limited with AMF.UML.Classes; 52limited with AMF.UML.Extension_Ends; 53limited with AMF.UML.Properties; 54 55package AMF.UML.Extensions is 56 57 pragma Preelaborate; 58 59 type UML_Extension is limited interface 60 and AMF.UML.Associations.UML_Association; 61 62 type UML_Extension_Access is 63 access all UML_Extension'Class; 64 for UML_Extension_Access'Storage_Size use 0; 65 66 not overriding function Get_Is_Required 67 (Self : not null access constant UML_Extension) 68 return Boolean is abstract; 69 -- Getter of Extension::isRequired. 70 -- 71 -- Indicates whether an instance of the extending stereotype must be 72 -- created when an instance of the extended class is created. The 73 -- attribute value is derived from the value of the lower property of the 74 -- ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1 75 -- means that isRequired is true, but otherwise it is false. Since the 76 -- default value of ExtensionEnd::lower is 0, the default value of 77 -- isRequired is false. 78 79 not overriding function Get_Metaclass 80 (Self : not null access constant UML_Extension) 81 return AMF.UML.Classes.UML_Class_Access is abstract; 82 -- Getter of Extension::metaclass. 83 -- 84 -- References the Class that is extended through an Extension. The 85 -- property is derived from the type of the memberEnd that is not the 86 -- ownedEnd. 87 88 not overriding function Get_Owned_End 89 (Self : not null access constant UML_Extension) 90 return AMF.UML.Extension_Ends.UML_Extension_End_Access is abstract; 91 -- Getter of Extension::ownedEnd. 92 -- 93 -- References the end of the extension that is typed by a Stereotype. 94 95 not overriding procedure Set_Owned_End 96 (Self : not null access UML_Extension; 97 To : AMF.UML.Extension_Ends.UML_Extension_End_Access) is abstract; 98 -- Setter of Extension::ownedEnd. 99 -- 100 -- References the end of the extension that is typed by a Stereotype. 101 102 not overriding function Is_Required 103 (Self : not null access constant UML_Extension) 104 return Boolean is abstract; 105 -- Operation Extension::isRequired. 106 -- 107 -- The query isRequired() is true if the owned end has a multiplicity with 108 -- the lower bound of 1. 109 110 not overriding function Metaclass 111 (Self : not null access constant UML_Extension) 112 return AMF.UML.Classes.UML_Class_Access is abstract; 113 -- Operation Extension::metaclass. 114 -- 115 -- The query metaclass() returns the metaclass that is being extended (as 116 -- opposed to the extending stereotype). 117 118 not overriding function Metaclass_End 119 (Self : not null access constant UML_Extension) 120 return AMF.UML.Properties.UML_Property_Access is abstract; 121 -- Operation Extension::metaclassEnd. 122 -- 123 -- The query metaclassEnd() returns the Property that is typed by a 124 -- metaclass (as opposed to a stereotype). 125 126end AMF.UML.Extensions; 127