KickJava   Java API By Example, From Geeks To Geeks.

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


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 /** To access AST DeclarationKind. */
30 import org.objectweb.openccm.ast.api.DeclarationKind;
31
32 /**
33  * StorageHomeFactoryDeclImpl is a wrapper class for
34  * PSDL storagehome factory declarations.
35  *
36  *
37  * Inherits from:
38  *
39  * - DeclarationWithMemberListImpl as they are IDL declarations
40  * with a list of member names,
41  *
42  * - StorageHomeFactoryDecl: OMG IDL for PSDL storagehome factory declarations.
43  *
44  *
45  * Provides:
46  *
47  *
48  *
49  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
50  * <a HREF="mailto:Christophe.Demarey@lifl.fr">Christophe Demarey</a>
51  *
52  * @version 0.1
53  */

54
55 public class StorageHomeFactoryDeclImpl
56      extends DeclarationWithMemberListImpl
57   implements org.objectweb.openccm.ast.api.StorageHomeFactoryDecl
58 {
59     // ==================================================================
60
//
61
// Internal state.
62
//
63
// ==================================================================
64

65     // ==================================================================
66
//
67
// Constructor.
68
//
69
// ==================================================================
70

71     /**
72      * The constructor with the parent scope.
73      *
74      * @param rep The repository of the declaration.
75      * @param parent The parent scope of the declaration.
76      */

77     protected
78     StorageHomeFactoryDeclImpl(Repository rep,
79                                ScopeImpl parent)
80     {
81         // Call the DeclarationWithMemberListImpl constructor.
82
super(rep, parent);
83     }
84
85     // ==================================================================
86
//
87
// Internal methods.
88
//
89
// ==================================================================
90

91     // ==================================================================
92
//
93
// Methods for the inherited DeclarationImpl class.
94
//
95
// ==================================================================
96

97     /**
98      * Obtain its CORBA 3.0 Contained reference.
99      *
100      * @return The Contained object associated with the any declaration.
101      */

102     protected org.omg.CORBA.Contained JavaDoc
103     getContained()
104     {
105        return null;
106     }
107
108     /**
109       * Obtain its category (IDL, PSDL, CIDL).
110       *
111       * @return The category of the declaration.
112       */

113     public org.objectweb.openccm.ast.api.DeclarationCategory
114     getCategory()
115     {
116         return org.objectweb.openccm.ast.api.DeclarationCategory.dc_psdl;
117     }
118
119     // ==================================================================
120
//
121
// Public methods.
122
//
123
// ==================================================================
124

125     // ==================================================================
126
//
127
// Methods for OMG IDL org.objectweb.openccm.ast.api.Declaration
128
//
129
// ==================================================================
130

131     /**
132      * Obtain its DeclarationKind.
133      *
134      * This method is implemented into DeclarationImpl subclasses.
135      *
136      * @return The DeclarationKind of the object.
137      */

138     public long
139     getDeclKind()
140     {
141       return DeclarationKind.dk_storage_home_factory;
142     }
143
144     // ==================================================================
145
//
146
// Methods for OMG IDL org.objectweb.openccm.ast.api.DeclarationWithMemberList
147
//
148
// ==================================================================
149

150     // ==================================================================
151
//
152
// Methods for OMG IDL org.objectweb.openccm.ast.api.StorageHomeFactoryDecl
153
//
154
// ==================================================================
155

156 }
157
Popular Tags