KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > corba > helper > MOFCommon


1 /**
2  * copyright 2002 2003 Laboratoire d'Informatique Paris 6 (LIP6)
3  *
4  * This file is part of ModFact.
5  *
6  * ModFact is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * at your option) any later version.
10  *
11  * ModFact is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with ModFact; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */

20 package org.objectweb.modfact.corba.helper;
21
22 import org.omg.mof.Reflective.MofError;
23 import org.omg.mof.Reflective.NotSet;
24
25 /**
26  *
27  */

28 public interface MOFCommon {
29
30     /**
31      * Give the value of a Constant
32      */

33     public String JavaDoc valueOfConstant(org.omg.CORBA.Any JavaDoc _value)
34         throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
35
36     /**
37      * Give the attributes of a Class
38      */

39     public org.omg.mof.Model.MofAttribute[] attributesOfClass(
40         org.omg.mof.Model.Class _class,
41         org.omg.mof.Model.ScopeKind _scope,
42         boolean isDerived)
43         throws org.omg.mof.Reflective.MofError;
44
45     /**
46      * Give all the attributes of a Class (included the inherited ones)
47      */

48     public org.omg.mof.Model.MofAttribute[] allAttributesOfClass(
49         org.omg.mof.Model.Class _class,
50         org.omg.mof.Model.ScopeKind _scope,
51         boolean _test_of_derived)
52         throws org.omg.mof.Reflective.MofError;
53
54     /**
55      * Give the operations of a Class
56      */

57     public org.omg.mof.Model.Operation[] operationsOfClass(
58         org.omg.mof.Model.Class _class,
59         org.omg.mof.Model.ScopeKind _scope)
60         throws org.omg.mof.Reflective.MofError;
61
62     /**
63      * Give all the operation of a Class (included the inherited ones)
64      */

65     public org.omg.mof.Model.Operation[] allOperationsOfClass(
66         org.omg.mof.Model.Class _class,
67         org.omg.mof.Model.ScopeKind _scope)
68         throws org.omg.mof.Reflective.MofError;
69
70     /**
71      * Give the references of a Class
72      */

73     public org.omg.mof.Model.Reference[] referencesOfClass(
74         org.omg.mof.Model.Class _class)
75         throws org.omg.mof.Reflective.MofError;
76
77     /**
78      * Give all the references of a Class (included the inherited ones)
79      */

80     public org.omg.mof.Model.Reference[] allReferencesOfClass(
81         org.omg.mof.Model.Class _class)
82         throws org.omg.mof.Reflective.MofError;
83
84     /**
85      * Give the constants of a Class
86      */

87     public org.omg.mof.Model.Constant[] constantsOfClass(
88         org.omg.mof.Model.Class _class)
89         throws org.omg.mof.Reflective.MofError;
90
91     /**
92      * Give the datatypes of a Class
93      */

94     public org.omg.mof.Model.DataType[] datatypesOfClass(
95         org.omg.mof.Model.Class _class)
96         throws org.omg.mof.Reflective.MofError;
97
98     /**
99      * Give the exceptions of a Class
100      */

101     public org.omg.mof.Model.MofException[] exceptionsOfClass(
102         org.omg.mof.Model.Class _class)
103         throws org.omg.mof.Reflective.MofError;
104
105     /**
106      * Give the constrains of a Class
107      */

108     public org.omg.mof.Model.Constraint[] constraintsOfClass(
109         org.omg.mof.Model.Class _class)
110         throws org.omg.mof.Reflective.MofError;
111
112     /**
113      * Give the sub-classes of a Class
114      */

115     public org.omg.mof.Model.Class[] subClassesOfClass(
116         org.omg.mof.Model.Classifier _class)
117         throws org.omg.mof.Reflective.MofError, org.omg.mof.Reflective.NotSet;
118     
119     /**
120      * Give the super-classes of a Class
121      */

122     public java.util.Vector JavaDoc superClassesOrdered(org.omg.mof.Model.Class _class)
123           throws org.omg.mof.Reflective.MofError;
124
125     /**
126      * Give the associations ends of an Association
127      */

128     public org.omg.mof.Model.AssociationEnd[] associationEndsOfAssociation(
129         org.omg.mof.Model.Association _association)
130         throws org.omg.mof.Reflective.MofError;
131         
132     /**
133      * Give the opposite association end of an association end
134      */

135     public org.omg.mof.Model.AssociationEnd oppositeAssociationEnd(
136         org.omg.mof.Model.AssociationEnd _association_end)
137         throws org.omg.mof.Reflective.MofError;
138                 
139     /**
140      * Give the classes of a Package
141      */

142     public org.omg.mof.Model.Class[] classesOfPackage(
143         org.omg.mof.Model.Package _package)
144         throws org.omg.mof.Reflective.MofError;
145         
146     /**
147      * Give the classes of a Package
148      */

149     public org.omg.mof.Model.Class[] classesOfPackageOrderedByInheritance(
150         org.omg.mof.Model.Package _package)
151         throws org.omg.mof.Reflective.MofError;
152         
153         
154     /**
155      * Give all the classes of a Package (included clustered ones)
156      */

157     public org.omg.mof.Model.Class[] allClassesOfPackage(
158         org.omg.mof.Model.Package _package)
159         throws org.omg.mof.Reflective.MofError;
160         
161     /**
162      * Give all the classes of a Package (included clustered ones)
163      */

164     public org.omg.mof.Model.Class[] allClassesOfPackageOrderedByInheritance(
165         org.omg.mof.Model.Package _package)
166         throws org.omg.mof.Reflective.MofError;
167
168     /**
169      * Give the packages of a Package
170      */

171     public org.omg.mof.Model.Package[] packagesOfPackage(
172         org.omg.mof.Model.Package _package)
173         throws org.omg.mof.Reflective.MofError;
174
175     /**
176      * Give the associations of a Package
177      */

178     public org.omg.mof.Model.Association[] associationsOfPackage(
179         org.omg.mof.Model.Package _package)
180         throws org.omg.mof.Reflective.MofError;
181         
182     /**
183      * Give the associations of a Package
184      */

185     public org.omg.mof.Model.Association[] allAssociationsOfPackage(
186         org.omg.mof.Model.Package _package)
187         throws org.omg.mof.Reflective.MofError;
188
189     /**
190      * Give the imports of a Package
191      */

192     public org.omg.mof.Model.Import[] importsOfPackage(
193         org.omg.mof.Model.Package _package)
194         throws org.omg.mof.Reflective.MofError;
195
196     /**
197      * Give the tags of a Package
198      */

199     public org.omg.mof.Model.Tag[] tagsOfPackage(
200         org.omg.mof.Model.Package _package)
201         throws org.omg.mof.Reflective.MofError;
202
203     /**
204      * Give the datatypes of a Package
205      */

206     public org.omg.mof.Model.DataType[] datatypesOfPackage(
207         org.omg.mof.Model.Package _package)
208         throws org.omg.mof.Reflective.MofError;
209
210     /**
211      * Give the exception of a Package
212      */

213     public org.omg.mof.Model.MofException[] exceptionsOfPackage(
214         org.omg.mof.Model.Package _package)
215         throws org.omg.mof.Reflective.MofError;
216
217     /**
218      * Give the constraints of a Package
219      */

220     public org.omg.mof.Model.Constraint[] constraintsOfPackage(
221         org.omg.mof.Model.Package _package)
222         throws org.omg.mof.Reflective.MofError;
223
224     /**
225      * Give the constrants of a Package
226      */

227     public org.omg.mof.Model.Constant[] constantsOfPackage(
228         org.omg.mof.Model.Package _package)
229         throws org.omg.mof.Reflective.MofError;
230
231     /**
232      * Return true is Namespace is an outermostPackage
233      */

234     public boolean isOutermostPackage(
235         org.omg.mof.Model.Namespace _package);
236
237     /**
238      * Give the references of an Association
239      */

240     public org.omg.mof.Model.Reference[] referencesOfAssociation(
241         org.omg.mof.Model.Association _association)
242         throws org.omg.mof.Reflective.MofError, org.omg.mof.Reflective.NotSet;
243
244     /**
245      * Give the outermost package that includes the ModelElement
246      */

247     public org.omg.mof.Model.Package outermostPackageOfModelElement(
248         org.omg.mof.Model.ModelElement _element)
249         throws org.omg.mof.Reflective.MofError, org.omg.mof.Reflective.NotSet;
250     
251     /**
252      * Return the idl_prefix assigned to the package if any (return "" else)
253      */

254     public String JavaDoc idlPrefixForPackage(org.omg.mof.Model.Package _package) throws MofError;
255     
256     /**
257      * Return the idl_prefix assigned to the package if any (return "" else)
258      */

259     public String JavaDoc idlSubstituteIdentifierForClass(org.omg.mof.Model.Classifier clazz) throws MofError , NotSet;
260     
261     /**
262      * Return true if sub class is in the same extent of super class
263      */

264     public boolean isInSameExtent(org.omg.mof.Model.Class innerExtent , org.omg.mof.Model.Class outerExtent) throws NotSet , MofError;
265     
266     
267     /**
268      * Return the jmi_prefix assigned to the package if any (return "" else)
269      */

270     public String JavaDoc jmiPrefixForPackage(org.omg.mof.Model.Package _package) throws MofError;
271
272     /**
273      *
274      */

275     public String JavaDoc jmiSubstituteIdentifierForClass(org.omg.mof.Model.Class clazz) throws MofError , NotSet;
276
277 }
278
Popular Tags