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.Primitive_Types_Factories;
50with AMF.Links;
51with League.Holders;
52
53package AMF.Internals.Factories.Primitive_Types_Factories is
54
55   type Primitive_Types_Factory is
56     limited new AMF.Internals.Factories.Metamodel_Factory_Base
57       and AMF.Factories.Primitive_Types_Factories.Primitive_Types_Factory with null record;
58
59   overriding function Convert_To_String
60    (Self      : not null access Primitive_Types_Factory;
61     Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
62     Value     : League.Holders.Holder) return League.Strings.Universal_String;
63
64   overriding function Create
65    (Self       : not null access Primitive_Types_Factory;
66     Meta_Class : not null access AMF.CMOF.Classes.CMOF_Class'Class)
67       return not null AMF.Elements.Element_Access;
68
69   overriding function Create_From_String
70    (Self      : not null access Primitive_Types_Factory;
71     Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
72     Image     : League.Strings.Universal_String) return League.Holders.Holder;
73
74   overriding function Create_Link
75    (Self           : not null access Primitive_Types_Factory;
76     Association    :
77       not null access AMF.CMOF.Associations.CMOF_Association'Class;
78     First_Element  : not null AMF.Elements.Element_Access;
79     Second_Element : not null AMF.Elements.Element_Access)
80       return not null AMF.Links.Link_Access;
81
82   overriding function Get_Package
83    (Self : not null access constant Primitive_Types_Factory)
84       return AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package;
85
86   function Constructor
87    (Extent : AMF.Internals.AMF_Extent)
88       return not null AMF.Factories.Factory_Access;
89
90   function Get_Package return not null AMF.CMOF.Packages.CMOF_Package_Access;
91
92end AMF.Internals.Factories.Primitive_Types_Factories;
93