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_Packageable_Elements; 45with AMF.UML.Dependencies.Collections; 46with AMF.UML.Elements.Collections; 47with AMF.UML.Interval_Constraints; 48with AMF.UML.Intervals; 49with AMF.UML.Named_Elements; 50with AMF.UML.Namespaces; 51with AMF.UML.Packages.Collections; 52with AMF.UML.Parameterable_Elements; 53with AMF.UML.String_Expressions; 54with AMF.UML.Template_Parameters; 55with AMF.UML.Value_Specifications; 56with AMF.Visitors; 57 58package AMF.Internals.UML_Interval_Constraints is 59 60 type UML_Interval_Constraint_Proxy is 61 limited new AMF.Internals.UML_Packageable_Elements.UML_Packageable_Element_Proxy 62 and AMF.UML.Interval_Constraints.UML_Interval_Constraint with null record; 63 64 overriding function Get_Specification 65 (Self : not null access constant UML_Interval_Constraint_Proxy) 66 return AMF.UML.Intervals.UML_Interval_Access; 67 -- Getter of IntervalConstraint::specification. 68 -- 69 -- A condition that must be true when evaluated in order for the 70 -- constraint to be satisfied. 71 72 overriding procedure Set_Specification 73 (Self : not null access UML_Interval_Constraint_Proxy; 74 To : AMF.UML.Intervals.UML_Interval_Access); 75 -- Setter of IntervalConstraint::specification. 76 -- 77 -- A condition that must be true when evaluated in order for the 78 -- constraint to be satisfied. 79 80 overriding function Get_Constrained_Element 81 (Self : not null access constant UML_Interval_Constraint_Proxy) 82 return AMF.UML.Elements.Collections.Ordered_Set_Of_UML_Element; 83 -- Getter of Constraint::constrainedElement. 84 -- 85 -- The ordered set of Elements referenced by this Constraint. 86 87 overriding function Get_Context 88 (Self : not null access constant UML_Interval_Constraint_Proxy) 89 return AMF.UML.Namespaces.UML_Namespace_Access; 90 -- Getter of Constraint::context. 91 -- 92 -- Specifies the namespace that owns the NamedElement. 93 94 overriding procedure Set_Context 95 (Self : not null access UML_Interval_Constraint_Proxy; 96 To : AMF.UML.Namespaces.UML_Namespace_Access); 97 -- Setter of Constraint::context. 98 -- 99 -- Specifies the namespace that owns the NamedElement. 100 101 overriding function Get_Specification 102 (Self : not null access constant UML_Interval_Constraint_Proxy) 103 return AMF.UML.Value_Specifications.UML_Value_Specification_Access; 104 -- Getter of Constraint::specification. 105 -- 106 -- A condition that must be true when evaluated in order for the 107 -- constraint to be satisfied. 108 109 overriding procedure Set_Specification 110 (Self : not null access UML_Interval_Constraint_Proxy; 111 To : AMF.UML.Value_Specifications.UML_Value_Specification_Access); 112 -- Setter of Constraint::specification. 113 -- 114 -- A condition that must be true when evaluated in order for the 115 -- constraint to be satisfied. 116 117 overriding function Get_Client_Dependency 118 (Self : not null access constant UML_Interval_Constraint_Proxy) 119 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 120 -- Getter of NamedElement::clientDependency. 121 -- 122 -- Indicates the dependencies that reference the client. 123 124 overriding function Get_Name_Expression 125 (Self : not null access constant UML_Interval_Constraint_Proxy) 126 return AMF.UML.String_Expressions.UML_String_Expression_Access; 127 -- Getter of NamedElement::nameExpression. 128 -- 129 -- The string expression used to define the name of this named element. 130 131 overriding procedure Set_Name_Expression 132 (Self : not null access UML_Interval_Constraint_Proxy; 133 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 134 -- Setter of NamedElement::nameExpression. 135 -- 136 -- The string expression used to define the name of this named element. 137 138 overriding function Get_Namespace 139 (Self : not null access constant UML_Interval_Constraint_Proxy) 140 return AMF.UML.Namespaces.UML_Namespace_Access; 141 -- Getter of NamedElement::namespace. 142 -- 143 -- Specifies the namespace that owns the NamedElement. 144 145 overriding function Get_Qualified_Name 146 (Self : not null access constant UML_Interval_Constraint_Proxy) 147 return AMF.Optional_String; 148 -- Getter of NamedElement::qualifiedName. 149 -- 150 -- A name which allows the NamedElement to be identified within a 151 -- hierarchy of nested Namespaces. It is constructed from the names of the 152 -- containing namespaces starting at the root of the hierarchy and ending 153 -- with the name of the NamedElement itself. 154 155 overriding function Get_Owning_Template_Parameter 156 (Self : not null access constant UML_Interval_Constraint_Proxy) 157 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 158 -- Getter of ParameterableElement::owningTemplateParameter. 159 -- 160 -- The formal template parameter that owns this element. 161 162 overriding procedure Set_Owning_Template_Parameter 163 (Self : not null access UML_Interval_Constraint_Proxy; 164 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 165 -- Setter of ParameterableElement::owningTemplateParameter. 166 -- 167 -- The formal template parameter that owns this element. 168 169 overriding function Get_Template_Parameter 170 (Self : not null access constant UML_Interval_Constraint_Proxy) 171 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 172 -- Getter of ParameterableElement::templateParameter. 173 -- 174 -- The template parameter that exposes this element as a formal parameter. 175 176 overriding procedure Set_Template_Parameter 177 (Self : not null access UML_Interval_Constraint_Proxy; 178 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 179 -- Setter of ParameterableElement::templateParameter. 180 -- 181 -- The template parameter that exposes this element as a formal parameter. 182 183 overriding function All_Owning_Packages 184 (Self : not null access constant UML_Interval_Constraint_Proxy) 185 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 186 -- Operation NamedElement::allOwningPackages. 187 -- 188 -- The query allOwningPackages() returns all the directly or indirectly 189 -- owning packages. 190 191 overriding function Is_Distinguishable_From 192 (Self : not null access constant UML_Interval_Constraint_Proxy; 193 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 194 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 195 return Boolean; 196 -- Operation NamedElement::isDistinguishableFrom. 197 -- 198 -- The query isDistinguishableFrom() determines whether two NamedElements 199 -- may logically co-exist within a Namespace. By default, two named 200 -- elements are distinguishable if (a) they have unrelated types or (b) 201 -- they have related types but different names. 202 203 overriding function Namespace 204 (Self : not null access constant UML_Interval_Constraint_Proxy) 205 return AMF.UML.Namespaces.UML_Namespace_Access; 206 -- Operation NamedElement::namespace. 207 -- 208 -- Missing derivation for NamedElement::/namespace : Namespace 209 210 overriding function Is_Compatible_With 211 (Self : not null access constant UML_Interval_Constraint_Proxy; 212 P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) 213 return Boolean; 214 -- Operation ParameterableElement::isCompatibleWith. 215 -- 216 -- The query isCompatibleWith() determines if this parameterable element 217 -- is compatible with the specified parameterable element. By default 218 -- parameterable element P is compatible with parameterable element Q if 219 -- the kind of P is the same or a subtype as the kind of Q. Subclasses 220 -- should override this operation to specify different compatibility 221 -- constraints. 222 223 overriding function Is_Template_Parameter 224 (Self : not null access constant UML_Interval_Constraint_Proxy) 225 return Boolean; 226 -- Operation ParameterableElement::isTemplateParameter. 227 -- 228 -- The query isTemplateParameter() determines if this parameterable 229 -- element is exposed as a formal template parameter. 230 231 overriding procedure Enter_Element 232 (Self : not null access constant UML_Interval_Constraint_Proxy; 233 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 234 Control : in out AMF.Visitors.Traverse_Control); 235 -- Dispatch call to corresponding subprogram of visitor interface. 236 237 overriding procedure Leave_Element 238 (Self : not null access constant UML_Interval_Constraint_Proxy; 239 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 240 Control : in out AMF.Visitors.Traverse_Control); 241 -- Dispatch call to corresponding subprogram of visitor interface. 242 243 overriding procedure Visit_Element 244 (Self : not null access constant UML_Interval_Constraint_Proxy; 245 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 246 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 247 Control : in out AMF.Visitors.Traverse_Control); 248 -- Dispatch call to corresponding subprogram of iterator interface. 249 250end AMF.Internals.UML_Interval_Constraints; 251