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: 2937 $ $Date: 2012-05-01 21:07:27 +0400 (Tue, 01 May 2012) $ 43------------------------------------------------------------------------------ 44with AMF.Internals.UML_Named_Elements; 45with AMF.UML.Activities; 46with AMF.UML.Activity_Edges.Collections; 47with AMF.UML.Activity_Groups.Collections; 48with AMF.UML.Activity_Nodes.Collections; 49with AMF.UML.Activity_Partitions.Collections; 50with AMF.UML.Classifiers.Collections; 51with AMF.UML.Constraints.Collections; 52with AMF.UML.Dependencies.Collections; 53with AMF.UML.Exception_Handlers.Collections; 54with AMF.UML.Input_Pins.Collections; 55with AMF.UML.Interruptible_Activity_Regions.Collections; 56with AMF.UML.Named_Elements; 57with AMF.UML.Namespaces; 58with AMF.UML.Output_Pins.Collections; 59with AMF.UML.Packages.Collections; 60with AMF.UML.Redefinable_Elements.Collections; 61with AMF.UML.String_Expressions; 62with AMF.UML.Structured_Activity_Nodes; 63with AMF.UML.Unmarshall_Actions; 64with AMF.Visitors; 65 66package AMF.Internals.UML_Unmarshall_Actions is 67 68 type UML_Unmarshall_Action_Proxy is 69 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 70 and AMF.UML.Unmarshall_Actions.UML_Unmarshall_Action with null record; 71 72 overriding function Get_Object 73 (Self : not null access constant UML_Unmarshall_Action_Proxy) 74 return AMF.UML.Input_Pins.UML_Input_Pin_Access; 75 -- Getter of UnmarshallAction::object. 76 -- 77 -- The object to be unmarshalled. 78 79 overriding procedure Set_Object 80 (Self : not null access UML_Unmarshall_Action_Proxy; 81 To : AMF.UML.Input_Pins.UML_Input_Pin_Access); 82 -- Setter of UnmarshallAction::object. 83 -- 84 -- The object to be unmarshalled. 85 86 overriding function Get_Result 87 (Self : not null access constant UML_Unmarshall_Action_Proxy) 88 return AMF.UML.Output_Pins.Collections.Set_Of_UML_Output_Pin; 89 -- Getter of UnmarshallAction::result. 90 -- 91 -- The values of the structural features of the input object. 92 93 overriding function Get_Unmarshall_Type 94 (Self : not null access constant UML_Unmarshall_Action_Proxy) 95 return AMF.UML.Classifiers.UML_Classifier_Access; 96 -- Getter of UnmarshallAction::unmarshallType. 97 -- 98 -- The type of the object to be unmarshalled. 99 100 overriding procedure Set_Unmarshall_Type 101 (Self : not null access UML_Unmarshall_Action_Proxy; 102 To : AMF.UML.Classifiers.UML_Classifier_Access); 103 -- Setter of UnmarshallAction::unmarshallType. 104 -- 105 -- The type of the object to be unmarshalled. 106 107 overriding function Get_Context 108 (Self : not null access constant UML_Unmarshall_Action_Proxy) 109 return AMF.UML.Classifiers.UML_Classifier_Access; 110 -- Getter of Action::context. 111 -- 112 -- The classifier that owns the behavior of which this action is a part. 113 114 overriding function Get_Input 115 (Self : not null access constant UML_Unmarshall_Action_Proxy) 116 return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin; 117 -- Getter of Action::input. 118 -- 119 -- The ordered set of input pins connected to the Action. These are among 120 -- the total set of inputs. 121 122 overriding function Get_Is_Locally_Reentrant 123 (Self : not null access constant UML_Unmarshall_Action_Proxy) 124 return Boolean; 125 -- Getter of Action::isLocallyReentrant. 126 -- 127 -- If true, the action can begin a new, concurrent execution, even if 128 -- there is already another execution of the action ongoing. If false, the 129 -- action cannot begin a new execution until any previous execution has 130 -- completed. 131 132 overriding procedure Set_Is_Locally_Reentrant 133 (Self : not null access UML_Unmarshall_Action_Proxy; 134 To : Boolean); 135 -- Setter of Action::isLocallyReentrant. 136 -- 137 -- If true, the action can begin a new, concurrent execution, even if 138 -- there is already another execution of the action ongoing. If false, the 139 -- action cannot begin a new execution until any previous execution has 140 -- completed. 141 142 overriding function Get_Local_Postcondition 143 (Self : not null access constant UML_Unmarshall_Action_Proxy) 144 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; 145 -- Getter of Action::localPostcondition. 146 -- 147 -- Constraint that must be satisfied when executed is completed. 148 149 overriding function Get_Local_Precondition 150 (Self : not null access constant UML_Unmarshall_Action_Proxy) 151 return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; 152 -- Getter of Action::localPrecondition. 153 -- 154 -- Constraint that must be satisfied when execution is started. 155 156 overriding function Get_Output 157 (Self : not null access constant UML_Unmarshall_Action_Proxy) 158 return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin; 159 -- Getter of Action::output. 160 -- 161 -- The ordered set of output pins connected to the Action. The action 162 -- places its results onto pins in this set. 163 164 overriding function Get_Handler 165 (Self : not null access constant UML_Unmarshall_Action_Proxy) 166 return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler; 167 -- Getter of ExecutableNode::handler. 168 -- 169 -- A set of exception handlers that are examined if an uncaught exception 170 -- propagates to the outer level of the executable node. 171 172 overriding function Get_Activity 173 (Self : not null access constant UML_Unmarshall_Action_Proxy) 174 return AMF.UML.Activities.UML_Activity_Access; 175 -- Getter of ActivityNode::activity. 176 -- 177 -- Activity containing the node. 178 179 overriding procedure Set_Activity 180 (Self : not null access UML_Unmarshall_Action_Proxy; 181 To : AMF.UML.Activities.UML_Activity_Access); 182 -- Setter of ActivityNode::activity. 183 -- 184 -- Activity containing the node. 185 186 overriding function Get_In_Group 187 (Self : not null access constant UML_Unmarshall_Action_Proxy) 188 return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group; 189 -- Getter of ActivityNode::inGroup. 190 -- 191 -- Groups containing the node. 192 193 overriding function Get_In_Interruptible_Region 194 (Self : not null access constant UML_Unmarshall_Action_Proxy) 195 return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region; 196 -- Getter of ActivityNode::inInterruptibleRegion. 197 -- 198 -- Interruptible regions containing the node. 199 200 overriding function Get_In_Partition 201 (Self : not null access constant UML_Unmarshall_Action_Proxy) 202 return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition; 203 -- Getter of ActivityNode::inPartition. 204 -- 205 -- Partitions containing the node. 206 207 overriding function Get_In_Structured_Node 208 (Self : not null access constant UML_Unmarshall_Action_Proxy) 209 return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access; 210 -- Getter of ActivityNode::inStructuredNode. 211 -- 212 -- Structured activity node containing the node. 213 214 overriding procedure Set_In_Structured_Node 215 (Self : not null access UML_Unmarshall_Action_Proxy; 216 To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access); 217 -- Setter of ActivityNode::inStructuredNode. 218 -- 219 -- Structured activity node containing the node. 220 221 overriding function Get_Incoming 222 (Self : not null access constant UML_Unmarshall_Action_Proxy) 223 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 224 -- Getter of ActivityNode::incoming. 225 -- 226 -- Edges that have the node as target. 227 228 overriding function Get_Outgoing 229 (Self : not null access constant UML_Unmarshall_Action_Proxy) 230 return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; 231 -- Getter of ActivityNode::outgoing. 232 -- 233 -- Edges that have the node as source. 234 235 overriding function Get_Redefined_Node 236 (Self : not null access constant UML_Unmarshall_Action_Proxy) 237 return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node; 238 -- Getter of ActivityNode::redefinedNode. 239 -- 240 -- Inherited nodes replaced by this node in a specialization of the 241 -- activity. 242 243 overriding function Get_Is_Leaf 244 (Self : not null access constant UML_Unmarshall_Action_Proxy) 245 return Boolean; 246 -- Getter of RedefinableElement::isLeaf. 247 -- 248 -- Indicates whether it is possible to further redefine a 249 -- RedefinableElement. If the value is true, then it is not possible to 250 -- further redefine the RedefinableElement. Note that this property is 251 -- preserved through package merge operations; that is, the capability to 252 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 253 -- the resulting RedefinableElement of a package merge operation where a 254 -- RedefinableElement with isLeaf=false is merged with a matching 255 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 256 -- will have isLeaf=false. Default value is false. 257 258 overriding procedure Set_Is_Leaf 259 (Self : not null access UML_Unmarshall_Action_Proxy; 260 To : Boolean); 261 -- Setter of RedefinableElement::isLeaf. 262 -- 263 -- Indicates whether it is possible to further redefine a 264 -- RedefinableElement. If the value is true, then it is not possible to 265 -- further redefine the RedefinableElement. Note that this property is 266 -- preserved through package merge operations; that is, the capability to 267 -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in 268 -- the resulting RedefinableElement of a package merge operation where a 269 -- RedefinableElement with isLeaf=false is merged with a matching 270 -- RedefinableElement with isLeaf=true: the resulting RedefinableElement 271 -- will have isLeaf=false. Default value is false. 272 273 overriding function Get_Redefined_Element 274 (Self : not null access constant UML_Unmarshall_Action_Proxy) 275 return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element; 276 -- Getter of RedefinableElement::redefinedElement. 277 -- 278 -- The redefinable element that is being redefined by this element. 279 280 overriding function Get_Redefinition_Context 281 (Self : not null access constant UML_Unmarshall_Action_Proxy) 282 return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; 283 -- Getter of RedefinableElement::redefinitionContext. 284 -- 285 -- References the contexts that this element may be redefined from. 286 287 overriding function Get_Client_Dependency 288 (Self : not null access constant UML_Unmarshall_Action_Proxy) 289 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 290 -- Getter of NamedElement::clientDependency. 291 -- 292 -- Indicates the dependencies that reference the client. 293 294 overriding function Get_Name_Expression 295 (Self : not null access constant UML_Unmarshall_Action_Proxy) 296 return AMF.UML.String_Expressions.UML_String_Expression_Access; 297 -- Getter of NamedElement::nameExpression. 298 -- 299 -- The string expression used to define the name of this named element. 300 301 overriding procedure Set_Name_Expression 302 (Self : not null access UML_Unmarshall_Action_Proxy; 303 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 304 -- Setter of NamedElement::nameExpression. 305 -- 306 -- The string expression used to define the name of this named element. 307 308 overriding function Get_Namespace 309 (Self : not null access constant UML_Unmarshall_Action_Proxy) 310 return AMF.UML.Namespaces.UML_Namespace_Access; 311 -- Getter of NamedElement::namespace. 312 -- 313 -- Specifies the namespace that owns the NamedElement. 314 315 overriding function Get_Qualified_Name 316 (Self : not null access constant UML_Unmarshall_Action_Proxy) 317 return AMF.Optional_String; 318 -- Getter of NamedElement::qualifiedName. 319 -- 320 -- A name which allows the NamedElement to be identified within a 321 -- hierarchy of nested Namespaces. It is constructed from the names of the 322 -- containing namespaces starting at the root of the hierarchy and ending 323 -- with the name of the NamedElement itself. 324 325 overriding function Context 326 (Self : not null access constant UML_Unmarshall_Action_Proxy) 327 return AMF.UML.Classifiers.UML_Classifier_Access; 328 -- Operation Action::context. 329 -- 330 -- Missing derivation for Action::/context : Classifier 331 332 overriding function Is_Consistent_With 333 (Self : not null access constant UML_Unmarshall_Action_Proxy; 334 Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 335 return Boolean; 336 -- Operation RedefinableElement::isConsistentWith. 337 -- 338 -- The query isConsistentWith() specifies, for any two RedefinableElements 339 -- in a context in which redefinition is possible, whether redefinition 340 -- would be logically consistent. By default, this is false; this 341 -- operation must be overridden for subclasses of RedefinableElement to 342 -- define the consistency conditions. 343 344 overriding function Is_Redefinition_Context_Valid 345 (Self : not null access constant UML_Unmarshall_Action_Proxy; 346 Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) 347 return Boolean; 348 -- Operation RedefinableElement::isRedefinitionContextValid. 349 -- 350 -- The query isRedefinitionContextValid() specifies whether the 351 -- redefinition contexts of this RedefinableElement are properly related 352 -- to the redefinition contexts of the specified RedefinableElement to 353 -- allow this element to redefine the other. By default at least one of 354 -- the redefinition contexts of this element must be a specialization of 355 -- at least one of the redefinition contexts of the specified element. 356 357 overriding function All_Owning_Packages 358 (Self : not null access constant UML_Unmarshall_Action_Proxy) 359 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 360 -- Operation NamedElement::allOwningPackages. 361 -- 362 -- The query allOwningPackages() returns all the directly or indirectly 363 -- owning packages. 364 365 overriding function Is_Distinguishable_From 366 (Self : not null access constant UML_Unmarshall_Action_Proxy; 367 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 368 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 369 return Boolean; 370 -- Operation NamedElement::isDistinguishableFrom. 371 -- 372 -- The query isDistinguishableFrom() determines whether two NamedElements 373 -- may logically co-exist within a Namespace. By default, two named 374 -- elements are distinguishable if (a) they have unrelated types or (b) 375 -- they have related types but different names. 376 377 overriding function Namespace 378 (Self : not null access constant UML_Unmarshall_Action_Proxy) 379 return AMF.UML.Namespaces.UML_Namespace_Access; 380 -- Operation NamedElement::namespace. 381 -- 382 -- Missing derivation for NamedElement::/namespace : Namespace 383 384 overriding procedure Enter_Element 385 (Self : not null access constant UML_Unmarshall_Action_Proxy; 386 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 387 Control : in out AMF.Visitors.Traverse_Control); 388 -- Dispatch call to corresponding subprogram of visitor interface. 389 390 overriding procedure Leave_Element 391 (Self : not null access constant UML_Unmarshall_Action_Proxy; 392 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 393 Control : in out AMF.Visitors.Traverse_Control); 394 -- Dispatch call to corresponding subprogram of visitor interface. 395 396 overriding procedure Visit_Element 397 (Self : not null access constant UML_Unmarshall_Action_Proxy; 398 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 399 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 400 Control : in out AMF.Visitors.Traverse_Control); 401 -- Dispatch call to corresponding subprogram of iterator interface. 402 403end AMF.Internals.UML_Unmarshall_Actions; 404