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: 3436 $ $Date: 2012-11-14 10:14:34 +0400 (Wed, 14 Nov 2012) $ 43------------------------------------------------------------------------------ 44with AMF.CMOF.Elements; 45with AMF.DI.Styles; 46with AMF.Internals.UMLDI_UML_Shapes; 47with AMF.UML.Elements.Collections; 48with AMF.UMLDI.UML_Association_Or_Connector_Or_Link_Shapes; 49with AMF.UMLDI.UML_Styles; 50with AMF.Visitors; 51 52package AMF.Internals.UMLDI_UML_Association_Or_Connector_Or_Link_Shapes is 53 54 type UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy is 55 limited new AMF.Internals.UMLDI_UML_Shapes.UMLDI_UML_Shape_Proxy 56 and AMF.UMLDI.UML_Association_Or_Connector_Or_Link_Shapes.UMLDI_UML_Association_Or_Connector_Or_Link_Shape with null record; 57 58 overriding function Get_Kind 59 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy) 60 return AMF.UMLDI.UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind; 61 -- Getter of UMLAssociationOrConnectorOrLinkShape::kind. 62 -- 63 64 overriding procedure Set_Kind 65 (Self : not null access UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy; 66 To : AMF.UMLDI.UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind); 67 -- Setter of UMLAssociationOrConnectorOrLinkShape::kind. 68 -- 69 70 overriding function Get_Is_Icon 71 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy) 72 return Boolean; 73 -- Getter of UMLDiagramElement::isIcon. 74 -- 75 -- For modelElements that have an option to be shown with shapes other 76 -- than rectangles, such as Actors, or with other identifying shapes 77 -- inside them, such as arrows distinguishing InputPins and OutputPins, or 78 -- edges that have an option to be shown with lines other than solid with 79 -- open arrow heads, such as Realization. A value of true for isIcon 80 -- indicates the alternative notation shall be shown. 81 82 overriding procedure Set_Is_Icon 83 (Self : not null access UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy; 84 To : Boolean); 85 -- Setter of UMLDiagramElement::isIcon. 86 -- 87 -- For modelElements that have an option to be shown with shapes other 88 -- than rectangles, such as Actors, or with other identifying shapes 89 -- inside them, such as arrows distinguishing InputPins and OutputPins, or 90 -- edges that have an option to be shown with lines other than solid with 91 -- open arrow heads, such as Realization. A value of true for isIcon 92 -- indicates the alternative notation shall be shown. 93 94 overriding function Get_Local_Style 95 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy) 96 return AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access; 97 -- Getter of UMLDiagramElement::localStyle. 98 -- 99 -- Restricts owned styles to UMLStyles. 100 101 overriding procedure Set_Local_Style 102 (Self : not null access UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy; 103 To : AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access); 104 -- Setter of UMLDiagramElement::localStyle. 105 -- 106 -- Restricts owned styles to UMLStyles. 107 108 overriding function Get_Model_Element 109 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy) 110 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 111 -- Getter of UMLDiagramElement::modelElement. 112 -- 113 -- Restricts UMLDiagramElements to show UML Elements, rather than other 114 -- language elements. 115 116 overriding function Get_Model_Element 117 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy) 118 return AMF.CMOF.Elements.CMOF_Element_Access; 119 -- Getter of DiagramElement::modelElement. 120 -- 121 -- a reference to a depicted model element, which can be any MOF-based 122 -- element 123 124 overriding function Get_Local_Style 125 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy) 126 return AMF.DI.Styles.DI_Style_Access; 127 -- Getter of DiagramElement::localStyle. 128 -- 129 -- a reference to an optional locally-owned style for this diagram element. 130 131 overriding procedure Set_Local_Style 132 (Self : not null access UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy; 133 To : AMF.DI.Styles.DI_Style_Access); 134 -- Setter of DiagramElement::localStyle. 135 -- 136 -- a reference to an optional locally-owned style for this diagram element. 137 138 overriding procedure Enter_Element 139 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy; 140 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 141 Control : in out AMF.Visitors.Traverse_Control); 142 143 overriding procedure Leave_Element 144 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy; 145 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 146 Control : in out AMF.Visitors.Traverse_Control); 147 148 overriding procedure Visit_Element 149 (Self : not null access constant UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Proxy; 150 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 151 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 152 Control : in out AMF.Visitors.Traverse_Control); 153 154end AMF.Internals.UMLDI_UML_Association_Or_Connector_Or_Link_Shapes; 155