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: 2855 $ $Date: 2012-04-12 23:52:00 +0400 (Thu, 12 Apr 2012) $
43------------------------------------------------------------------------------
44--  This file is generated, don't edit it.
45------------------------------------------------------------------------------
46with AMF.CMOF.Associations;
47with AMF.CMOF.Classes;
48with AMF.CMOF.Data_Types;
49with AMF.Factories.MOF_Factories;
50with AMF.Links;
51with AMF.MOF.Tags;
52with League.Holders;
53
54package AMF.Internals.Factories.MOF_Factories is
55
56   type MOF_Factory is
57     limited new AMF.Internals.Factories.Metamodel_Factory_Base
58       and AMF.Factories.MOF_Factories.MOF_Factory with null record;
59
60   overriding function Convert_To_String
61    (Self      : not null access MOF_Factory;
62     Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
63     Value     : League.Holders.Holder) return League.Strings.Universal_String;
64
65   overriding function Create
66    (Self       : not null access MOF_Factory;
67     Meta_Class : not null access AMF.CMOF.Classes.CMOF_Class'Class)
68       return not null AMF.Elements.Element_Access;
69
70   overriding function Create_From_String
71    (Self      : not null access MOF_Factory;
72     Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
73     Image     : League.Strings.Universal_String) return League.Holders.Holder;
74
75   overriding function Create_Link
76    (Self           : not null access MOF_Factory;
77     Association    :
78       not null access AMF.CMOF.Associations.CMOF_Association'Class;
79     First_Element  : not null AMF.Elements.Element_Access;
80     Second_Element : not null AMF.Elements.Element_Access)
81       return not null AMF.Links.Link_Access;
82
83   overriding function Get_Package
84    (Self : not null access constant MOF_Factory)
85       return AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package;
86
87   function Constructor
88    (Extent : AMF.Internals.AMF_Extent)
89       return not null AMF.Factories.Factory_Access;
90
91   function Get_Package return not null AMF.CMOF.Packages.CMOF_Package_Access;
92
93   function Create_Tag
94    (Self : not null access MOF_Factory)
95       return AMF.MOF.Tags.MOF_Tag_Access;
96
97end AMF.Internals.Factories.MOF_Factories;
98