KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > ir3 > Initializer_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::Initializer helper class.
34  *
35  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
36  * <a HREF="mailto:Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
37  *
38  * @version 0.4
39  */

40
41 public class Initializer_impl
42      extends StructMembers
43 {
44     // ==================================================================
45
//
46
// Internal state.
47
//
48
// ==================================================================
49

50     /** The initializer name. */
51     protected String JavaDoc name_;
52
53     // ==================================================================
54
//
55
// Constructor.
56
//
57
// ==================================================================
58

59     /** TODO */
60     public
61     Initializer_impl(ValueDef_impl owner)
62     {
63         super(owner, null);
64         name_ = null;
65     }
66
67     // ==================================================================
68
//
69
// Public methods.
70
//
71
// ==================================================================
72

73     /**
74      * Obtain the name.
75      */

76     public String JavaDoc
77     getName()
78     {
79         return name_;
80     }
81
82     /**
83      * Obtain as CORBA::Initializer.
84      */

85     public Initializer
86     getInitializer()
87     {
88         return new Initializer(getStructMemberSeq(), name_);
89     }
90
91     /**
92      * Set as CORBA::Initializer.
93      */

94     public void
95     setInitializer(Initializer val)
96     {
97         setStructMemberSeq(val.members);
98         name_ = val.name;
99     }
100 }
101
Popular Tags