KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > ir3 > ModuleDef_impl


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Philippe Merle.
23 Contributor(s): Mathieu Vadet, Christophe Demarey.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.ir3;
28
29 // Package dependencies
30
import org.omg.CORBA.*;
31
32 /**
33  * Implementation of the CORBA::ModuleDef interface.
34  *
35  * @author <a=href="Philippe.Merle@lifl.fr">Philippe Merle</a>
36  * <a=href="Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
37  *
38  * @version 0.3
39  */

40
41 public class ModuleDef_impl
42        extends Container_impl
43        implements ModuleDefOperations
44 {
45     // ==================================================================
46
//
47
// Constructor.
48
//
49
// ==================================================================
50

51     /**
52      * TODO
53      */

54     public
55     ModuleDef_impl(IFR ifr,
56                    Container_impl container)
57     {
58         // call the Container_impl contructor.
59
super(ifr, container);
60
61         // set the tie servant object.
62
setServant(new ModuleDefPOATie(this));
63     }
64
65     // ==================================================================
66
//
67
// Internal state.
68
//
69
// ==================================================================
70

71     // ==================================================================
72
//
73
// Public methods.
74
//
75
// ==================================================================
76

77     /**
78      * Obtain its CORBA::ModuleDef object reference.
79      */

80     public ModuleDef
81     asModuleDef()
82     {
83         return ModuleDefHelper.narrow(asObject());
84     }
85
86     // ==================================================================
87
//
88
// For Contained_impl class.
89
//
90
// ==================================================================
91

92     /**
93      * To set the value field of the CORBA::Contained::Description struct.
94      */

95     public void
96     setDescriptionValue(Any any)
97     {
98         // create the CORBA::ModuleDescription.
99
ModuleDescription description = new ModuleDescription();
100         description.name = name();
101         description.id = id();
102         description.defined_in = getContainerID();
103         description.version = version();
104
105         // insert it into the any.
106
ModuleDescriptionHelper.insert(any, description);
107     }
108
109     // ==================================================================
110
//
111
// For CORBA::IRObject interface.
112
//
113
// ==================================================================
114

115     /**
116      * IDL:omg.org/CORBA/IRObject/def_kind:1.0
117      */

118     public DefinitionKind
119     def_kind()
120     {
121         return DefinitionKind.dk_Module;
122     }
123
124     // ==================================================================
125
//
126
// For CORBA::ModuleDef interface.
127
//
128
// ==================================================================
129

130 }
131
Popular Tags