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.Dependencies.Collections; 46with AMF.UML.General_Orderings; 47with AMF.UML.Named_Elements; 48with AMF.UML.Namespaces; 49with AMF.UML.Occurrence_Specifications; 50with AMF.UML.Packages.Collections; 51with AMF.UML.String_Expressions; 52with AMF.Visitors; 53 54package AMF.Internals.UML_General_Orderings is 55 56 type UML_General_Ordering_Proxy is 57 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 58 and AMF.UML.General_Orderings.UML_General_Ordering with null record; 59 60 overriding function Get_After 61 (Self : not null access constant UML_General_Ordering_Proxy) 62 return AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access; 63 -- Getter of GeneralOrdering::after. 64 -- 65 -- The OccurrenceSpecification referenced comes after the 66 -- OccurrenceSpecification referenced by before. 67 68 overriding procedure Set_After 69 (Self : not null access UML_General_Ordering_Proxy; 70 To : AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access); 71 -- Setter of GeneralOrdering::after. 72 -- 73 -- The OccurrenceSpecification referenced comes after the 74 -- OccurrenceSpecification referenced by before. 75 76 overriding function Get_Before 77 (Self : not null access constant UML_General_Ordering_Proxy) 78 return AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access; 79 -- Getter of GeneralOrdering::before. 80 -- 81 -- The OccurrenceSpecification referenced comes before the 82 -- OccurrenceSpecification referenced by after. 83 84 overriding procedure Set_Before 85 (Self : not null access UML_General_Ordering_Proxy; 86 To : AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access); 87 -- Setter of GeneralOrdering::before. 88 -- 89 -- The OccurrenceSpecification referenced comes before the 90 -- OccurrenceSpecification referenced by after. 91 92 overriding function Get_Client_Dependency 93 (Self : not null access constant UML_General_Ordering_Proxy) 94 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 95 -- Getter of NamedElement::clientDependency. 96 -- 97 -- Indicates the dependencies that reference the client. 98 99 overriding function Get_Name_Expression 100 (Self : not null access constant UML_General_Ordering_Proxy) 101 return AMF.UML.String_Expressions.UML_String_Expression_Access; 102 -- Getter of NamedElement::nameExpression. 103 -- 104 -- The string expression used to define the name of this named element. 105 106 overriding procedure Set_Name_Expression 107 (Self : not null access UML_General_Ordering_Proxy; 108 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 109 -- Setter of NamedElement::nameExpression. 110 -- 111 -- The string expression used to define the name of this named element. 112 113 overriding function Get_Namespace 114 (Self : not null access constant UML_General_Ordering_Proxy) 115 return AMF.UML.Namespaces.UML_Namespace_Access; 116 -- Getter of NamedElement::namespace. 117 -- 118 -- Specifies the namespace that owns the NamedElement. 119 120 overriding function Get_Qualified_Name 121 (Self : not null access constant UML_General_Ordering_Proxy) 122 return AMF.Optional_String; 123 -- Getter of NamedElement::qualifiedName. 124 -- 125 -- A name which allows the NamedElement to be identified within a 126 -- hierarchy of nested Namespaces. It is constructed from the names of the 127 -- containing namespaces starting at the root of the hierarchy and ending 128 -- with the name of the NamedElement itself. 129 130 overriding function All_Owning_Packages 131 (Self : not null access constant UML_General_Ordering_Proxy) 132 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 133 -- Operation NamedElement::allOwningPackages. 134 -- 135 -- The query allOwningPackages() returns all the directly or indirectly 136 -- owning packages. 137 138 overriding function Is_Distinguishable_From 139 (Self : not null access constant UML_General_Ordering_Proxy; 140 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 141 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 142 return Boolean; 143 -- Operation NamedElement::isDistinguishableFrom. 144 -- 145 -- The query isDistinguishableFrom() determines whether two NamedElements 146 -- may logically co-exist within a Namespace. By default, two named 147 -- elements are distinguishable if (a) they have unrelated types or (b) 148 -- they have related types but different names. 149 150 overriding function Namespace 151 (Self : not null access constant UML_General_Ordering_Proxy) 152 return AMF.UML.Namespaces.UML_Namespace_Access; 153 -- Operation NamedElement::namespace. 154 -- 155 -- Missing derivation for NamedElement::/namespace : Namespace 156 157 overriding procedure Enter_Element 158 (Self : not null access constant UML_General_Ordering_Proxy; 159 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 160 Control : in out AMF.Visitors.Traverse_Control); 161 -- Dispatch call to corresponding subprogram of visitor interface. 162 163 overriding procedure Leave_Element 164 (Self : not null access constant UML_General_Ordering_Proxy; 165 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 166 Control : in out AMF.Visitors.Traverse_Control); 167 -- Dispatch call to corresponding subprogram of visitor interface. 168 169 overriding procedure Visit_Element 170 (Self : not null access constant UML_General_Ordering_Proxy; 171 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 172 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 173 Control : in out AMF.Visitors.Traverse_Control); 174 -- Dispatch call to corresponding subprogram of iterator interface. 175 176end AMF.Internals.UML_General_Orderings; 177