KickJava   Java API By Example, From Geeks To Geeks.

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


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  * StorageHomeKeyDeclImpl is a wrapper class for
34  * PSDL storagehome key declarations.
35  *
36  *
37  * Inherits from:
38  *
39  * - DeclarationWithMemberListImpl as they are IDL declarations,
40  *
41  * - StorageHomeKeyDecl: OMG IDL for PSDL storagehome key declarations
42  * with a list of member names.
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 StorageHomeKeyDeclImpl
56      extends DeclarationWithMemberListImpl
57   implements org.objectweb.openccm.ast.api.StorageHomeKeyDecl
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     StorageHomeKeyDeclImpl(Repository rep,
79                            ScopeImpl parent)
80     {
81         // Call the DeclarationWithMemberListImpl constructor.
82
super(rep, parent);
83     }
84
85     /**
86       * Obtain its category (IDL, PSDL, CIDL).
87       *
88       * @return The category of the declaration.
89       */

90     public org.objectweb.openccm.ast.api.DeclarationCategory
91     getCategory()
92     {
93         return org.objectweb.openccm.ast.api.DeclarationCategory.dc_psdl;
94     }
95
96     // ==================================================================
97
//
98
// Internal methods.
99
//
100
// ==================================================================
101

102     // ==================================================================
103
//
104
// Methods for the inherited DeclarationImpl class.
105
//
106
// ==================================================================
107

108     /**
109      * Obtain its CORBA 3.0 Contained reference.
110      *
111      * @return The Contained object associated with the any declaration.
112      */

113     protected org.omg.CORBA.Contained JavaDoc
114     getContained()
115     {
116        return null;
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_key;
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.StorageHomeKeyDecl
153
//
154
// ==================================================================
155

156 }
157
Popular Tags