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: 3432 $ $Date: 2012-11-14 00:51:21 +0400 (Wed, 14 Nov 2012) $ 43------------------------------------------------------------------------------ 44with AMF.DI.Diagram_Elements.Collections; 45with AMF.DI.Styles; 46with AMF.Elements; 47with AMF.Internals.UML_Elements; 48with AMF.UMLDI.UML_Diagram_Elements.Collections; 49with AMF.UMLDI.UML_Styles; 50 51generic 52 type Element_Proxy is 53 abstract new AMF.Internals.UML_Elements.UML_Element_Base with private; 54 55package AMF.Internals.UMLDI_UML_Diagram_Elements is 56 57 type UMLDI_UML_Diagram_Element_Proxy is 58 abstract limited new Element_Proxy 59 and AMF.UMLDI.UML_Diagram_Elements.UMLDI_UML_Diagram_Element with null record; 60 61 overriding function Container 62 (Self : not null access constant UMLDI_UML_Diagram_Element_Proxy) 63 return AMF.Elements.Element_Access; 64 65 overriding function Get_Owned_Element 66 (Self : not null access constant UMLDI_UML_Diagram_Element_Proxy) 67 return AMF.UMLDI.UML_Diagram_Elements.Collections.Ordered_Set_Of_UMLDI_UML_Diagram_Element; 68 -- Getter of UMLDiagramElement::ownedElement. 69 -- 70 -- Restricts UMLDiagramElements to own only UMLDiagramElements. 71 72 overriding function Get_Owning_Element 73 (Self : not null access constant UMLDI_UML_Diagram_Element_Proxy) 74 return AMF.UMLDI.UML_Diagram_Elements.UMLDI_UML_Diagram_Element_Access; 75 -- Getter of UMLDiagramElement::owningElement. 76 -- 77 -- Restricts UMLDiagramElements to be owned by only UMLDiagramElements. 78 79 overriding procedure Set_Owning_Element 80 (Self : not null access UMLDI_UML_Diagram_Element_Proxy; 81 To : AMF.UMLDI.UML_Diagram_Elements.UMLDI_UML_Diagram_Element_Access); 82 -- Setter of UMLDiagramElement::owningElement. 83 -- 84 -- Restricts UMLDiagramElements to be owned by only UMLDiagramElements. 85 86 overriding function Get_Owning_Element 87 (Self : not null access constant UMLDI_UML_Diagram_Element_Proxy) 88 return AMF.DI.Diagram_Elements.DI_Diagram_Element_Access; 89 -- Getter of DiagramElement::owningElement. 90 -- 91 -- a reference to the diagram element that directly owns this diagram 92 -- element. 93 94 overriding function Get_Owned_Element 95 (Self : not null access constant UMLDI_UML_Diagram_Element_Proxy) 96 return AMF.DI.Diagram_Elements.Collections.Set_Of_DI_Diagram_Element; 97 -- Getter of DiagramElement::ownedElement. 98 -- 99 -- a collection of diagram elements that are directly owned by this 100 -- diagram element. 101 102 overriding function Get_Shared_Style 103 (Self : not null access constant UMLDI_UML_Diagram_Element_Proxy) 104 return AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access; 105 -- Getter of UMLDiagramElement::sharedStyle. 106 -- 107 -- Restricts shared styles to UMLStyles. 108 109 overriding procedure Set_Shared_Style 110 (Self : not null access UMLDI_UML_Diagram_Element_Proxy; 111 To : AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access); 112 -- Setter of UMLDiagramElement::sharedStyle. 113 -- 114 -- Restricts shared styles to UMLStyles. 115 116 overriding function Get_Shared_Style 117 (Self : not null access constant UMLDI_UML_Diagram_Element_Proxy) 118 return AMF.DI.Styles.DI_Style_Access; 119 -- Getter of DiagramElement::sharedStyle. 120 -- 121 -- a reference to an optional shared style element for this diagram 122 -- element. 123 124 overriding procedure Set_Shared_Style 125 (Self : not null access UMLDI_UML_Diagram_Element_Proxy; 126 To : AMF.DI.Styles.DI_Style_Access); 127 -- Setter of DiagramElement::sharedStyle. 128 -- 129 -- a reference to an optional shared style element for this diagram 130 -- element. 131 132end AMF.Internals.UMLDI_UML_Diagram_Elements; 133