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-- A redefinable element is an element that, when defined in the context of a 47-- classifier, can be redefined more specifically or differently in the 48-- context of another classifier that specializes (directly or indirectly) 49-- the context classifier. 50------------------------------------------------------------------------------ 51limited with AMF.UML.Classifiers.Collections; 52with AMF.UML.Named_Elements; 53limited with AMF.UML.Redefinable_Elements.Collections; 54 55package AMF.UML.Redefinable_Elements is 56 57 pragma Preelaborate; 58 59 type UML_Redefinable_Element is limited interface 60 and AMF.UML.Named_Elements.UML_Named_Element; 61 62 type UML_Redefinable_Element_Access is 63 access all UML_Redefinable_Element'Class; 64 for UML_Redefinable_Element_Access'Storage_Size use 0; 65 66 not overriding function Get_Is_Leaf 67 (Self : not null access constant UML_Redefinable_Element) 68 return Boolean is abstract; 69 -- Getter of RedefinableElement::isLeaf. 70 -- 71 -- Indicates whether it is possible to further redefine a 72 -- RedefinableElement. If the value is true, then it is not possible to 73 -- further redefine the RedefinableElement. Note that this property is 74 -- preserved through package merge operations; that is, the capability to 75 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 76 -- the resulting RedefinableElement of a package merge operation where a 77 -- RedefinableElement with isLeaf=false is merged with a matching 78 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 79 -- will have isLeaf=false. Default value is false. 80 81 not overriding procedure Set_Is_Leaf 82 (Self : not null access UML_Redefinable_Element; 83 To : Boolean) is abstract; 84 -- Setter of RedefinableElement::isLeaf. 85 -- 86 -- Indicates whether it is possible to further redefine a 87 -- RedefinableElement. If the value is true, then it is not possible to 88 -- further redefine the RedefinableElement. Note that this property is 89 -- preserved through package merge operations; that is, the capability to 90 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 91 -- the resulting RedefinableElement of a package merge operation where a 92 -- RedefinableElement with isLeaf=false is merged with a matching 93 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 94 -- will have isLeaf=false. Default value is false. 95 96 not overriding function Get_Redefined_Element 97 (Self : not null access constant UML_Redefinable_Element) 98 return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is abstract; 99 -- Getter of RedefinableElement::redefinedElement. 100 -- 101 -- The redefinable element that is being redefined by this element. 102 103 not overriding function Get_Redefinition_Context 104 (Self : not null access constant UML_Redefinable_Element) 105 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is abstract; 106 -- Getter of RedefinableElement::redefinitionContext. 107 -- 108 -- References the contexts that this element may be redefined from. 109 110 not overriding function Is_Consistent_With 111 (Self : not null access constant UML_Redefinable_Element; 112 Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 113 return Boolean is abstract; 114 -- Operation RedefinableElement::isConsistentWith. 115 -- 116 -- The query isConsistentWith() specifies, for any two RedefinableElements 117 -- in a context in which redefinition is possible, whether redefinition 118 -- would be logically consistent. By default, this is false; this 119 -- operation must be overridden for subclasses of RedefinableElement to 120 -- define the consistency conditions. 121 122 not overriding function Is_Redefinition_Context_Valid 123 (Self : not null access constant UML_Redefinable_Element; 124 Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 125 return Boolean is abstract; 126 -- Operation RedefinableElement::isRedefinitionContextValid. 127 -- 128 -- The query isRedefinitionContextValid() specifies whether the 129 -- redefinition contexts of this RedefinableElement are properly related 130 -- to the redefinition contexts of the specified RedefinableElement to 131 -- allow this element to redefine the other. By default at least one of 132 -- the redefinition contexts of this element must be a specialization of 133 -- at least one of the redefinition contexts of the specified element. 134 135end AMF.UML.Redefinable_Elements; 136