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