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