KickJava   Java API By Example, From Geeks To Geeks.

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


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

26
27 package org.objectweb.openccm.ast.lib;
28
29 /**
30  * CidlScopeImpl is a wrapper class for all CIDL definition scopes.
31  *
32  * Inherits from:
33  * - Scope as CIDL scopes are also IDL scope.
34  *
35  * @author <a HREF="mailto:Christophe.Demarey@lifl.fr">Christophe Demarey</a>
36  *
37  * @version 0.1
38  */

39
40 abstract public class CidlScopeImpl
41                 extends ScopeImpl
42                 implements org.objectweb.openccm.ast.api.CidlScope
43 {
44     // ==================================================================
45
//
46
// Internal state.
47
//
48
// ==================================================================
49

50     // ==================================================================
51
//
52
// Constructor.
53
//
54
// ==================================================================
55

56     /**
57      * The constructor with the parent scope.
58      *
59      * @param rep The repository of the declaration.
60      * @param parent The parent scope of the declaration.
61      */

62     protected
63     CidlScopeImpl(Repository rep,
64               ScopeImpl parent)
65     {
66         // Call the DeclarationImpl constructor.
67
super(rep, parent);
68
69         // Init internal state.
70
content_loaded_ = true;
71     }
72
73     // ==================================================================
74
//
75
// Internal methods.
76
//
77
// ==================================================================
78

79
80     // ==================================================================
81
//
82
// Public methods.
83
//
84
// ==================================================================
85

86     // ==================================================================
87
//
88
// Methods for OMG IDL org.objectweb.openccm.ast.api.Declaration
89
//
90
// ==================================================================
91

92     /**
93      * Create the declaration.
94      */

95     public void
96     create()
97     {
98         if (the_parent_!=null)
99             the_parent_.addDecl(this);
100     }
101
102     /**
103       * Obtain its category (IDL, PSDL, CIDL).
104       *
105       * @return The category of the declaration.
106       */

107     public org.objectweb.openccm.ast.api.DeclarationCategory
108     getCategory()
109     {
110         return org.objectweb.openccm.ast.api.DeclarationCategory.dc_cidl;
111     }
112
113     // ==================================================================
114
//
115
// Methods for OMG IDL org.objectweb.openccm.ast.api.Scope
116
//
117
// ==================================================================
118

119 }
120
Popular Tags