KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > ast > lib > DelegationImpl


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, Christophe Demarey.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.ast.lib;
28
29 /**
30  * DelegationImpl is a wrapper class for CIDL Delegation.
31  *
32  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
33  * <a HREF="mailto:Christophe.Demarey@lifl.fr">Christophe Demarey</a>
34  *
35  * @version 0.1
36  */

37
38 public class DelegationImpl
39      extends ObjectBase
40   implements org.objectweb.openccm.ast.api.Delegation
41 {
42     // ==================================================================
43
//
44
// Internal state.
45
//
46
// ==================================================================
47

48     /** The associated source name. */
49     protected String JavaDoc source_;
50
51     /** The associated target name. */
52     protected String JavaDoc target_;
53
54     // ==================================================================
55
//
56
// Constructors.
57
//
58
// ==================================================================
59

60     /** The default constructor. */
61     public
62     DelegationImpl()
63     {
64         // Call the second constructor.
65
this(null, null);
66     }
67
68     /**
69      * The constructor.
70      *
71      * @param source The associated source name.
72      * @param target The associated target name.
73      */

74     public
75     DelegationImpl(String JavaDoc source,
76                    String JavaDoc target)
77     {
78         // Call the default ObjectBase constructor.
79
super();
80
81         // Init internal state.
82
source_ = source;
83         target_ = target;
84     }
85
86     // ==================================================================
87
//
88
// Internal methods.
89
//
90
// ==================================================================
91

92     // ==================================================================
93
//
94
// Public methods.
95
//
96
// ==================================================================
97

98     // ==================================================================
99
//
100
// Methods for OMG IDL org.objectweb.openccm.ast.api.Delegation
101
//
102
// ==================================================================
103

104     /**
105      * Set the associated source name.
106      *
107      * @param name The associated source name.
108      */

109     public void
110     setSource(String JavaDoc name)
111     {
112         source_ = name;
113     }
114
115     /**
116      * Obtain the associated source name.
117      *
118      * @return The associated source name.
119      */

120     public String JavaDoc
121     getSource()
122     {
123         return source_;
124     }
125
126     /**
127      * Set the associated target name.
128      *
129      * @param name The associated target name.
130      */

131     public void
132     setTarget(String JavaDoc name)
133     {
134         target_ = name;
135     }
136
137     /**
138      * Obtain the associated target name.
139      *
140      * @return The associated target name.
141      */

142     public String JavaDoc
143     getTarget()
144     {
145         return target_;
146     }
147 }
148
Popular Tags