KickJava   Java API By Example, From Geeks To Geeks.

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


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

26
27 package org.objectweb.openccm.ast.lib;
28
29 /**
30  * ForwardScopePsdlImpl is a wrapper class for Scopes
31  * which can be defined as forward.
32  *
33  * Inherits from:
34  * - ForwardScopeImpl as forward scopes are also IDL scopes.
35  *
36  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
37  *
38  * @version 0.1
39  */

40
41 abstract public class ForwardScopePsdlImpl
42               extends ForwardScopeImpl
43 {
44     // ==================================================================
45
//
46
// Internal state.
47
//
48
// ==================================================================
49

50     /** Is it created. */
51     protected boolean isCreated_;
52
53     // ==================================================================
54
//
55
// Constructor.
56
//
57
// ==================================================================
58

59     /**
60      * The constructor with the parent scope.
61      *
62      * @param rep The repository of the declaration.
63      * @param parent The parent scope of the forward declaration.
64      */

65     protected
66     ForwardScopePsdlImpl(Repository rep,
67                          ScopeImpl parent)
68     {
69         // Call the ForwardScopeImpl constructor.
70
super(rep, parent);
71
72         // Init internal state.
73
isCreated_ = false;
74         content_loaded_ = true;
75     }
76
77     // ==================================================================
78
//
79
// Internal methods.
80
//
81
// ==================================================================
82

83     // ==================================================================
84
//
85
// Internal methods for DeclarationImpl.
86
//
87
// ==================================================================
88

89     /**
90      * Obtain its CORBA 3.0 Contained reference.
91      *
92      * @return The Contained object associated with the declaration.
93      */

94     protected org.omg.CORBA.Contained JavaDoc
95     getContained()
96     {
97         // TODO: Must be checked!!!
98
return null;
99     }
100
101     /**
102       * Obtain its category (IDL, PSDL, CIDL).
103       *
104       * @return The category of the declaration.
105       */

106     public org.objectweb.openccm.ast.api.DeclarationCategory
107     getCategory()
108     {
109         return org.objectweb.openccm.ast.api.DeclarationCategory.dc_psdl;
110     }
111
112     // ==================================================================
113
//
114
// Internal methods for ForwardScopeImpl.
115
//
116
// ==================================================================
117

118     /**
119      * Tests if this forward declaration is already created.
120      *
121      * @return True if it is already created else false.
122      */

123     public boolean
124     isForwardCreated()
125     {
126         return isCreated_;
127     }
128  
129     /**
130      * Create this forward declaration.
131      */

132     public void
133     createForward()
134     {
135         isCreated_ = true;
136     }
137
138     /**
139      * Complete this forward declaration.
140      */

141     public void
142     completeForward()
143     {
144     }
145
146     // ==================================================================
147
//
148
// Public methods.
149
//
150
// ==================================================================
151

152     // ==================================================================
153
//
154
// Methods for OMG IDL org.objectweb.openccm.ast.api.Declaration
155
//
156
// ==================================================================
157

158     // ==================================================================
159
//
160
// Methods for OMG IDL org.objectweb.openccm.ast.api.Scope
161
//
162
// ==================================================================
163

164     // ==================================================================
165
//
166
// Methods for OMG IDL org.objectweb.openccm.ast.api.ForwardScope
167
//
168
// ==================================================================
169
}
170
Popular Tags