KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > mof > Model > ClassImpl


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 Foobar; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */

21
22 // le Code généré de la Class: Class
23
package org.omg.mof.Model;
24 public class ClassImpl extends org.omg.mof.Model.ClassPOA {
25
26     //Ajout de la partie RefBaseObject
27
// Operation ref_mof_id
28
public java.lang.String JavaDoc ref_mof_id() {
29         int id = _orb().object_to_string(_this()).hashCode();
30         return String.valueOf(id);
31     }
32     // Operation ref_meta_object
33
public org.omg.mof.Reflective.RefObject ref_meta_object() {
34         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
35             "ref_meta_object method not implemented",
36             1,
37             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
38     }
39     // Operation ref_itself
40
public boolean ref_itself(
41         org.omg.mof.Reflective.RefBaseObject other_object) {
42         String JavaDoc id_obj = other_object.ref_mof_id();
43         if (ref_mof_id().equals(id_obj))
44             return true;
45         else
46             return false;
47     }
48     // Operation ref_immediate_package
49
public org.omg.mof.Reflective._RefPackage ref_immediate_package() {
50         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
51             "ref_immediate_package method not implemented",
52             1,
53             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
54     }
55     // Operation ref_outermost_package
56
public org.omg.mof.Reflective._RefPackage ref_outermost_package() {
57         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
58             "ref_moutermost_package method not implemented",
59             1,
60             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
61     }
62     // Operation ref_delete
63
public void ref_delete() throws org.omg.mof.Reflective.MofError {
64         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
65             "ref_delete method not implemented",
66             1,
67             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
68     }
69
70     //Ajout de la partie RefObject
71
// Operation ref_is_instance_of
72
public boolean ref_is_instance_of(
73         org.omg.mof.Reflective.RefObject some_class,
74         boolean consider_subtypes) {
75         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
76             "ref_is_instance_of method not implemented",
77             1,
78             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
79     }
80     // Operation ref_create_instance
81
public org.omg.mof.Reflective.RefObject ref_create_instance(
82         org.omg.CORBA.Any JavaDoc[] args)
83         throws org.omg.mof.Reflective.MofError {
84         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
85             "ref_create_instance method not implemented",
86             1,
87             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
88     }
89     // Operation ref_all_objects
90
public org.omg.mof.Reflective.RefObject[] ref_all_objects(
91         boolean include_subtypes) {
92         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
93             "ref_all_objects method not implemented",
94             1,
95             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
96     }
97     // Operation ref_set_value
98
public void ref_set_value(
99         org.omg.mof.Reflective.RefObject feature,
100         org.omg.CORBA.Any JavaDoc new_value)
101         throws org.omg.mof.Reflective.MofError {
102         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
103             "ref_set_value method not implemented",
104             1,
105             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
106     }
107     // Operation ref_value
108
public org.omg.CORBA.Any JavaDoc ref_value(
109         org.omg.mof.Reflective.RefObject feature)
110         throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError {
111         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
112             "ref_value method not implemented",
113             1,
114             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
115     }
116     // Operation ref_unset_value
117
public void ref_unset_value() throws org.omg.mof.Reflective.MofError {
118         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
119             "ref_unset_value method not implemented",
120             1,
121             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
122     }
123     // Operation ref_add_value
124
public void ref_add_value(
125         org.omg.mof.Reflective.RefObject feature,
126         org.omg.CORBA.Any JavaDoc new_element)
127         throws org.omg.mof.Reflective.MofError {
128         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
129             "ref_add_value method not implemented",
130             1,
131             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
132     }
133     // Operation ref_add_value_before
134
public void ref_add_value_before(
135         org.omg.mof.Reflective.RefObject feature,
136         org.omg.CORBA.Any JavaDoc new_element,
137         org.omg.CORBA.Any JavaDoc before_element)
138         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
139         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
140             "ref_add_value_before method not implemented",
141             1,
142             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
143     }
144     // Operation ref_add_value_at
145
public void ref_add_value_at(
146         org.omg.mof.Reflective.RefObject feature,
147         org.omg.CORBA.Any JavaDoc new_element,
148         int position)
149         throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError {
150         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
151             "ref_add_value_at method not implemented",
152             1,
153             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
154     }
155     // Operation ref_modify_value
156
public void ref_modify_value(
157         org.omg.mof.Reflective.RefObject feature,
158         org.omg.CORBA.Any JavaDoc old_element,
159         org.omg.CORBA.Any JavaDoc new_element)
160         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
161         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
162             "ref_modify_value method not implemented",
163             1,
164             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
165     }
166     // Operation ref_modify_value_at
167
public void ref_modify_value_at(
168         org.omg.mof.Reflective.RefObject feature,
169         org.omg.CORBA.Any JavaDoc new_element,
170         int position)
171         throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError {
172         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
173             "ref_modify_value_at method not implemented",
174             1,
175             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
176     }
177     // Operation ref_remove_value
178
public void ref_remove_value(
179         org.omg.mof.Reflective.RefObject feature,
180         org.omg.CORBA.Any JavaDoc existing_element)
181         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
182         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
183             "ref_remove_value method not implemented",
184             1,
185             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
186     }
187     // Operation ref_remove_value_at
188
public void ref_remove_value_at(
189         org.omg.mof.Reflective.RefObject feature,
190         int position)
191         throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError {
192         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
193             "ref_remove_value_at method not implemented",
194             1,
195             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
196     }
197     // Operation ref_immediate_composite
198
public org.omg.mof.Reflective.RefObject ref_immediate_composite() {
199         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
200             "ref_remove_value method not implemented",
201             1,
202             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
203     }
204     // Operation ref_outermost_composite
205
public org.omg.mof.Reflective.RefObject ref_outermost_composite() {
206         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
207             "ref_outermost_composite method not implemented",
208             1,
209             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
210     }
211     // Operation ref_invoke_operation(
212
public org.omg.CORBA.Any JavaDoc ref_invoke_operation(
213         org.omg.mof.Reflective.RefObject requested_temp,
214         org.omg.mof.Reflective.ValueTypeListHolder args)
215         throws
216             org.omg.mof.Reflective.OtherException,
217             org.omg.mof.Reflective.MofError {
218         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc(
219             "ref_invoke_operation( method not implemented",
220             1,
221             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
222     }
223     private org.omg.mof.Model.ClassClass _class_proxy;
224     public org.omg.mof.Model.ModelElement[] all_of_type_model_element() {
225         return _class_proxy.all_of_type_model_element();
226     }
227     public org.omg.mof.Model.Namespace[] all_of_type_namespace() {
228         return _class_proxy.all_of_type_namespace();
229     }
230     public org
231
        .omg
232         .mof
233         .Model
234         .GeneralizableElement[] all_of_type_generalizable_element() {
235         return _class_proxy.all_of_type_generalizable_element();
236     }
237     public org.omg.mof.Model.Classifier[] all_of_type_classifier() {
238         return _class_proxy.all_of_type_classifier();
239     }
240     public org.omg.mof.Model.Class create_class(
241         String JavaDoc name,
242         String JavaDoc annotation,
243         org.omg.mof.Model.VisibilityKind visibility,
244         boolean is_leaf,
245         boolean is_root,
246         boolean is_abstract,
247         boolean is_singleton)
248         throws org.omg.mof.Reflective.MofError {
249         return _class_proxy.create_class(
250             name,
251             annotation,
252             visibility,
253             is_leaf,
254             is_root,
255             is_abstract,
256             is_singleton);
257     }
258     public org.omg.mof.Model.Class[] all_of_class_class() {
259         return _class_proxy.all_of_class_class();
260     }
261     public org.omg.mof.Model.Class[] all_of_type_class() {
262         return _class_proxy.all_of_type_class();
263     }
264     //
265
private String JavaDoc _name;
266     public String JavaDoc name() throws org.omg.mof.Reflective.MofError {
267         return _name;
268     }
269     public void set_name(String JavaDoc new_value)
270         throws org.omg.mof.Reflective.MofError {
271         _name = new_value;
272     }
273
274     //
275
private String JavaDoc _annotation;
276     public String JavaDoc annotation() throws org.omg.mof.Reflective.MofError {
277         return _annotation;
278     }
279     public void set_annotation(String JavaDoc new_value)
280         throws org.omg.mof.Reflective.MofError {
281         _annotation = new_value;
282     }
283
284     //
285
private java.util.Vector JavaDoc _qualified_names = new java.util.Vector JavaDoc();
286     public String JavaDoc[] qualified_name() throws org.omg.mof.Reflective.MofError {
287         //Création d'un vecteur conteneur et rajouyer le nom du l'élément
288
java.util.Vector JavaDoc _name_qualified = new java.util.Vector JavaDoc();
289         _name_qualified.addElement(_name);
290
291         // Calculer _qualified _name
292
ModelElement _current = _this();
293         boolean exist = true;
294         while (exist) {
295             try {
296                 _current = _current.container();
297                 _name_qualified.addElement(_current.name());
298             } catch (org.omg.mof.Reflective.NotSet ex) {
299                 exist = false;
300             }
301         }
302         String JavaDoc[] _temp = new String JavaDoc[_name_qualified.size()];
303         for (int i = 0; i < _temp.length; i++)
304             _temp[i] = (String JavaDoc) _name_qualified.elementAt(i);
305         return _temp;
306     }
307
308     //
309
private org.omg.mof.Model.VisibilityKind _visibility;
310     public org.omg.mof.Model.VisibilityKind visibility()
311         throws org.omg.mof.Reflective.MofError {
312         return _visibility;
313     }
314     public void set_visibility(org.omg.mof.Model.VisibilityKind new_value)
315         throws org.omg.mof.Reflective.MofError {
316         _visibility = new_value;
317     }
318
319     //
320
private boolean _is_leaf;
321     public boolean is_leaf() throws org.omg.mof.Reflective.MofError {
322         return _is_leaf;
323     }
324     public void set_is_leaf(boolean new_value)
325         throws org.omg.mof.Reflective.MofError {
326         _is_leaf = new_value;
327     }
328
329     //
330
private boolean _is_root;
331     public boolean is_root() throws org.omg.mof.Reflective.MofError {
332         return _is_root;
333     }
334     public void set_is_root(boolean new_value)
335         throws org.omg.mof.Reflective.MofError {
336         _is_root = new_value;
337     }
338
339     //
340
private boolean _is_abstract;
341     public boolean is_abstract() throws org.omg.mof.Reflective.MofError {
342         return _is_abstract;
343     }
344     public void set_is_abstract(boolean new_value)
345         throws org.omg.mof.Reflective.MofError {
346         _is_abstract = new_value;
347     }
348
349     //
350
private boolean _is_singleton;
351     public boolean is_singleton() throws org.omg.mof.Reflective.MofError {
352         return _is_singleton;
353     }
354     public void set_is_singleton(boolean new_value)
355         throws org.omg.mof.Reflective.MofError {
356         _is_singleton = new_value;
357     }
358
359     //
360
public GeneralizableElement[] all_supertypes()
361         throws org.omg.mof.Reflective.MofError {
362         //créer unun vecteur conteneur
363
java.util.Vector JavaDoc allSupertypesTable = new java.util.Vector JavaDoc();
364         GeneralizableElement[] _supertypes = _this().supertypes();
365
366         for (int i = 0; i < _supertypes.length; i++) {
367             GeneralizableElement currentSupertype = _supertypes[i];
368             GeneralizableElement[] sup = currentSupertype.all_supertypes();
369             for (int j = 0; j < sup.length; j++) {
370                 if (!allSupertypesTable.contains(sup[j]))
371                     allSupertypesTable.addElement(sup[j]);
372             }
373             if (!allSupertypesTable.contains(currentSupertype))
374                 allSupertypesTable.addElement(currentSupertype);
375         }
376
377         //créer un tableau contenuer
378
GeneralizableElement[] allSupertypes =
379             new GeneralizableElement[allSupertypesTable.size()];
380         for (int i = 0; i < allSupertypesTable.size(); i++)
381             allSupertypes[i] =
382                 (GeneralizableElement) allSupertypesTable.elementAt(i);
383         return allSupertypes;
384     }
385
386     //
387
private org.omg.mof.Model.Namespace _container = null;
388     public org.omg.mof.Model.Namespace container()
389         throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError {
390         if (_container != null)
391             return _container;
392         else
393             throw new org.omg.mof.Reflective.NotSet();
394     }
395     public void set_container(org.omg.mof.Model.Namespace new_value)
396         throws org.omg.mof.Reflective.MofError {
397         _container = new_value;
398     }
399     public void unset_container() throws org.omg.mof.Reflective.MofError {
400         _container = null;
401     }
402
403     //
404
private java.util.Vector JavaDoc _required_elementss = new java.util.Vector JavaDoc();
405     public org.omg.mof.Model.ModelElement[] required_elements()
406         throws org.omg.mof.Reflective.MofError {
407         org.omg.mof.Model.ModelElement[] temp1 =
408             new org.omg.mof.Model.ModelElement[_required_elementss.size()];
409         for (int i = 0; i < _required_elementss.size(); i++)
410             temp1[i] =
411                 (org.omg.mof.Model.ModelElement) _required_elementss.elementAt(
412                     i);
413         return temp1;
414     }
415     public void set_required_elements(
416         org.omg.mof.Model.ModelElement[] new_value)
417         throws org.omg.mof.Reflective.MofError {
418         _required_elementss.removeAllElements();
419         for (int i = 0; i < new_value.length; i++)
420             _required_elementss.addElement(new_value[i]);
421     }
422     public void add_required_elements(
423         org.omg.mof.Model.ModelElement new_element)
424         throws org.omg.mof.Reflective.MofError {
425         _required_elementss.addElement(new_element);
426     }
427     public void modify_required_elements(
428         org.omg.mof.Model.ModelElement old_element,
429         org.omg.mof.Model.ModelElement new_element)
430         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
431         if (_required_elementss.contains(old_element)) {
432             int i = _required_elementss.indexOf(old_element);
433             _required_elementss.setElementAt(new_element, i);
434         } else
435             throw new org.omg.mof.Reflective.NotFound();
436     }
437     public void remove_required_elements(
438         org.omg.mof.Model.ModelElement old_element)
439         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
440         if (_required_elementss.contains(old_element))
441             _required_elementss.removeElement(old_element);
442         else
443             throw new org.omg.mof.Reflective.NotFound();
444     }
445
446     //
447
private java.util.Vector JavaDoc _constraintss = new java.util.Vector JavaDoc();
448     public org.omg.mof.Model.Constraint[] constraints()
449         throws org.omg.mof.Reflective.MofError {
450         org.omg.mof.Model.Constraint[] temp1 =
451             new org.omg.mof.Model.Constraint[_constraintss.size()];
452         for (int i = 0; i < _constraintss.size(); i++)
453             temp1[i] =
454                 (org.omg.mof.Model.Constraint) _constraintss.elementAt(i);
455         return temp1;
456     }
457     public void set_constraints(org.omg.mof.Model.Constraint[] new_value)
458         throws org.omg.mof.Reflective.MofError {
459         _constraintss.removeAllElements();
460         for (int i = 0; i < new_value.length; i++)
461             _constraintss.addElement(new_value[i]);
462     }
463     public void add_constraints(org.omg.mof.Model.Constraint new_element)
464         throws org.omg.mof.Reflective.MofError {
465         _constraintss.addElement(new_element);
466     }
467     public void modify_constraints(
468         org.omg.mof.Model.Constraint old_element,
469         org.omg.mof.Model.Constraint new_element)
470         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
471         if (_constraintss.contains(old_element)) {
472             int i = _constraintss.indexOf(old_element);
473             _constraintss.setElementAt(new_element, i);
474         } else
475             throw new org.omg.mof.Reflective.NotFound();
476     }
477     public void remove_constraints(org.omg.mof.Model.Constraint old_element)
478         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
479         if (_constraintss.contains(old_element))
480             _constraintss.removeElement(old_element);
481         else
482             throw new org.omg.mof.Reflective.NotFound();
483     }
484
485     //
486
private java.util.Vector JavaDoc _contentss = new java.util.Vector JavaDoc();
487     public org.omg.mof.Model.ModelElement[] contents()
488         throws org.omg.mof.Reflective.MofError {
489         org.omg.mof.Model.ModelElement[] temp1 =
490             new org.omg.mof.Model.ModelElement[_contentss.size()];
491         for (int i = 0; i < _contentss.size(); i++)
492             temp1[i] = (org.omg.mof.Model.ModelElement) _contentss.elementAt(i);
493         return temp1;
494     }
495     public void set_contents(org.omg.mof.Model.ModelElement[] new_value)
496         throws org.omg.mof.Reflective.MofError {
497         _contentss.removeAllElements();
498         for (int i = 0; i < new_value.length; i++)
499             _contentss.addElement(new_value[i]);
500     }
501     public void add_contents(org.omg.mof.Model.ModelElement new_element)
502         throws org.omg.mof.Reflective.MofError {
503         _contentss.addElement(new_element);
504     }
505     public void add_contents_before(
506         org.omg.mof.Model.ModelElement new_element,
507         org.omg.mof.Model.ModelElement before_element)
508         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
509         if (_contentss.contains(before_element)) {
510             int i = _contentss.indexOf(before_element);
511             _contentss.insertElementAt(new_element, i);
512         } else
513             throw new org.omg.mof.Reflective.NotFound();
514     }
515     public void modify_contents(
516         org.omg.mof.Model.ModelElement old_element,
517         org.omg.mof.Model.ModelElement new_element)
518         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
519         if (_contentss.contains(old_element)) {
520             int i = _contentss.indexOf(old_element);
521             _contentss.setElementAt(new_element, i);
522         } else
523             throw new org.omg.mof.Reflective.NotFound();
524     }
525     public void remove_contents(org.omg.mof.Model.ModelElement old_element)
526         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
527         if (_contentss.contains(old_element))
528             _contentss.removeElement(old_element);
529         else
530             throw new org.omg.mof.Reflective.NotFound();
531     }
532
533     //
534
private java.util.Vector JavaDoc _supertypess = new java.util.Vector JavaDoc();
535     public org.omg.mof.Model.GeneralizableElement[] supertypes()
536         throws org.omg.mof.Reflective.MofError {
537         org.omg.mof.Model.GeneralizableElement[] temp1 =
538             new org.omg.mof.Model.GeneralizableElement[_supertypess.size()];
539         for (int i = 0; i < _supertypess.size(); i++)
540             temp1[i] =
541                 (
542                     org
543
                        .omg
544                         .mof
545                         .Model
546                         .GeneralizableElement) _supertypess
547                         .elementAt(
548                     i);
549         return temp1;
550     }
551     public void set_supertypes(
552         org.omg.mof.Model.GeneralizableElement[] new_value)
553         throws org.omg.mof.Reflective.MofError {
554         _supertypess.removeAllElements();
555         for (int i = 0; i < new_value.length; i++)
556             _supertypess.addElement(new_value[i]);
557     }
558     public void add_supertypes(
559         org.omg.mof.Model.GeneralizableElement new_element)
560         throws org.omg.mof.Reflective.MofError {
561         _supertypess.addElement(new_element);
562     }
563     public void add_supertypes_before(
564         org.omg.mof.Model.GeneralizableElement new_element,
565         org.omg.mof.Model.GeneralizableElement before_element)
566         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
567         if (_supertypess.contains(before_element)) {
568             int i = _supertypess.indexOf(before_element);
569             _supertypess.insertElementAt(new_element, i);
570         } else
571             throw new org.omg.mof.Reflective.NotFound();
572     }
573     public void modify_supertypes(
574         org.omg.mof.Model.GeneralizableElement old_element,
575         org.omg.mof.Model.GeneralizableElement new_element)
576         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
577         if (_supertypess.contains(old_element)) {
578             int i = _supertypess.indexOf(old_element);
579             _supertypess.setElementAt(new_element, i);
580         } else
581             throw new org.omg.mof.Reflective.NotFound();
582     }
583     public void remove_supertypes(
584         org.omg.mof.Model.GeneralizableElement old_element)
585         throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError {
586         if (_supertypess.contains(old_element))
587             _supertypess.removeElement(old_element);
588         else
589             throw new org.omg.mof.Reflective.NotFound();
590     }
591
592     public ClassImpl(
593         String JavaDoc name,
594         String JavaDoc annotation,
595         org.omg.mof.Model.VisibilityKind visibility,
596         boolean is_leaf,
597         boolean is_root,
598         boolean is_abstract,
599         boolean is_singleton,
600         org.omg.mof.Model.ClassClass _proxy) {
601         _name = name;
602         _annotation = annotation;
603         _visibility = visibility;
604         _is_leaf = is_leaf;
605         _is_root = is_root;
606         _is_abstract = is_abstract;
607         _is_singleton = is_singleton;
608         _class_proxy = _proxy;
609     }
610 }
611
Popular Tags