KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > model1 > cci > ConstantClassImpl


1 // ----------------------------------------------------------------------------
2
// ClassProxy/ImplBegin
3
// ----------------------------------------------------------------------------
4
//////////////////////////////////////////////////////////////////////////////
5
//
6
// Name: $Id: JMIAbstractMapper.java,v 1.11 2006/01/21 23:09:07 wfro Exp $
7
// Generated by: openMDX JMI Mapper
8
// Date: Mon Apr 03 11:38:53 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.model1.cci;
14
15 public class ConstantClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements ConstantClass {
18
19   public ConstantClassImpl(
20     org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage
21   ) {
22     super(refPackage);
23   }
24
25   public String JavaDoc refMofId(
26   ) {
27     return "org:opencrx:kernel:model1:Constant";
28   }
29
30   public Constant getConstant(
31     Object JavaDoc object
32   ) {
33     try {
34       if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) {
35         java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
36         args.add(object);
37         Constant target = (Constant)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Constant)((org.openmdx.base.accessor.jmi.cci.RefPackage_1_0)this.refOutermostPackage()).refObject(
43           object instanceof org.openmdx.compatibility.base.naming.Path
44             ? ((org.openmdx.compatibility.base.naming.Path)object).toXri()
45             : ((org.openmdx.base.accessor.generic.cci.Object_1_0)object).objGetPath().toXri()
46         );
47       }
48     }
49     catch(org.openmdx.base.exception.ServiceException e) {
50         throw new org.openmdx.base.accessor.jmi.cci.JmiServiceException(e);
51     }
52   }
53
54   public Constant createConstant(
55   ) {
56     Constant target = (Constant)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Constant createConstant(
65       short accessLevelBrowse
66     , short accessLevelDelete
67     , short accessLevelUpdate
68     , boolean disabled
69     , String JavaDoc constValue
70     , String JavaDoc name
71     , String JavaDoc qualifiedName
72     , org.opencrx.kernel.model1.cci.Classifier type
73   ) {
74     ConstantImpl _object = (ConstantImpl)createConstant();
75     _object.setAccessLevelBrowse(accessLevelBrowse);
76     _object.setAccessLevelDelete(accessLevelDelete);
77     _object.setAccessLevelUpdate(accessLevelUpdate);
78     _object.setDisabled(disabled);
79     _object.setConstValue(constValue);
80     _object.setName(name);
81     _object.setQualifiedName(qualifiedName);
82     _object.setType(type);
83     return _object;
84   }
85
86 // ----------------------------------------------------------------------------
87
// ClassProxy/ImplInstanceExtenderRequiredAttributes
88
// ----------------------------------------------------------------------------
89
public Constant extendAuditee(
90       org.opencrx.kernel.base.cci.Auditee _base
91     , short accessLevelBrowse
92     , short accessLevelDelete
93     , short accessLevelUpdate
94     , boolean disabled
95     , String JavaDoc constValue
96     , String JavaDoc name
97     , String JavaDoc qualifiedName
98     , org.opencrx.kernel.model1.cci.Classifier type
99   ) {
100     ConstantImpl _object = (ConstantImpl)getConstant(_base);
101     _object.setAccessLevelBrowse(accessLevelBrowse);
102     _object.setAccessLevelDelete(accessLevelDelete);
103     _object.setAccessLevelUpdate(accessLevelUpdate);
104     _object.setDisabled(disabled);
105     _object.setConstValue(constValue);
106     _object.setName(name);
107     _object.setQualifiedName(qualifiedName);
108     _object.setType(type);
109     return _object;
110   }
111
112 // ----------------------------------------------------------------------------
113
// ClassProxy/ImplInstanceExtenderRequiredAttributes
114
// ----------------------------------------------------------------------------
115
public Constant extendBookmarkable(
116       org.opencrx.kernel.base.cci.Bookmarkable _base
117     , short accessLevelBrowse
118     , short accessLevelDelete
119     , short accessLevelUpdate
120     , boolean disabled
121     , String JavaDoc constValue
122     , String JavaDoc name
123     , String JavaDoc qualifiedName
124     , org.opencrx.kernel.model1.cci.Classifier type
125   ) {
126     ConstantImpl _object = (ConstantImpl)getConstant(_base);
127     _object.setAccessLevelBrowse(accessLevelBrowse);
128     _object.setAccessLevelDelete(accessLevelDelete);
129     _object.setAccessLevelUpdate(accessLevelUpdate);
130     _object.setDisabled(disabled);
131     _object.setConstValue(constValue);
132     _object.setName(name);
133     _object.setQualifiedName(qualifiedName);
134     _object.setType(type);
135     return _object;
136   }
137
138 // ----------------------------------------------------------------------------
139
// ClassProxy/ImplInstanceExtenderRequiredAttributes
140
// ----------------------------------------------------------------------------
141
public Constant extendCloneable(
142       org.opencrx.kernel.base.cci.Cloneable _base
143     , short accessLevelBrowse
144     , short accessLevelDelete
145     , short accessLevelUpdate
146     , boolean disabled
147     , String JavaDoc constValue
148     , String JavaDoc name
149     , String JavaDoc qualifiedName
150     , org.opencrx.kernel.model1.cci.Classifier type
151   ) {
152     ConstantImpl _object = (ConstantImpl)getConstant(_base);
153     _object.setAccessLevelBrowse(accessLevelBrowse);
154     _object.setAccessLevelDelete(accessLevelDelete);
155     _object.setAccessLevelUpdate(accessLevelUpdate);
156     _object.setDisabled(disabled);
157     _object.setConstValue(constValue);
158     _object.setName(name);
159     _object.setQualifiedName(qualifiedName);
160     _object.setType(type);
161     return _object;
162   }
163
164 // ----------------------------------------------------------------------------
165
// ClassProxy/ImplInstanceExtenderRequiredAttributes
166
// ----------------------------------------------------------------------------
167
public Constant extendImporter(
168       org.opencrx.kernel.base.cci.Importer _base
169     , short accessLevelBrowse
170     , short accessLevelDelete
171     , short accessLevelUpdate
172     , boolean disabled
173     , String JavaDoc constValue
174     , String JavaDoc name
175     , String JavaDoc qualifiedName
176     , org.opencrx.kernel.model1.cci.Classifier type
177   ) {
178     ConstantImpl _object = (ConstantImpl)getConstant(_base);
179     _object.setAccessLevelBrowse(accessLevelBrowse);
180     _object.setAccessLevelDelete(accessLevelDelete);
181     _object.setAccessLevelUpdate(accessLevelUpdate);
182     _object.setDisabled(disabled);
183     _object.setConstValue(constValue);
184     _object.setName(name);
185     _object.setQualifiedName(qualifiedName);
186     _object.setType(type);
187     return _object;
188   }
189
190 // ----------------------------------------------------------------------------
191
// ClassProxy/ImplInstanceExtenderRequiredAttributes
192
// ----------------------------------------------------------------------------
193
public Constant extendSecureObject(
194       org.opencrx.kernel.base.cci.SecureObject _base
195     , boolean disabled
196     , String JavaDoc constValue
197     , String JavaDoc name
198     , String JavaDoc qualifiedName
199     , org.opencrx.kernel.model1.cci.Classifier type
200   ) {
201     ConstantImpl _object = (ConstantImpl)getConstant(_base);
202     _object.setDisabled(disabled);
203     _object.setConstValue(constValue);
204     _object.setName(name);
205     _object.setQualifiedName(qualifiedName);
206     _object.setType(type);
207     return _object;
208   }
209
210 // ----------------------------------------------------------------------------
211
// ClassProxy/ImplInstanceExtenderRequiredAttributes
212
// ----------------------------------------------------------------------------
213
public Constant extendSubscriptionTarget(
214       org.opencrx.kernel.base.cci.SubscriptionTarget _base
215     , short accessLevelBrowse
216     , short accessLevelDelete
217     , short accessLevelUpdate
218     , boolean disabled
219     , String JavaDoc constValue
220     , String JavaDoc name
221     , String JavaDoc qualifiedName
222     , org.opencrx.kernel.model1.cci.Classifier type
223   ) {
224     ConstantImpl _object = (ConstantImpl)getConstant(_base);
225     _object.setAccessLevelBrowse(accessLevelBrowse);
226     _object.setAccessLevelDelete(accessLevelDelete);
227     _object.setAccessLevelUpdate(accessLevelUpdate);
228     _object.setDisabled(disabled);
229     _object.setConstValue(constValue);
230     _object.setName(name);
231     _object.setQualifiedName(qualifiedName);
232     _object.setType(type);
233     return _object;
234   }
235
236 // ----------------------------------------------------------------------------
237
// ClassProxy/ImplInstanceExtenderRequiredAttributes
238
// ----------------------------------------------------------------------------
239
public Constant extendXmlExporter(
240       org.opencrx.kernel.base.cci.XmlExporter _base
241     , short accessLevelBrowse
242     , short accessLevelDelete
243     , short accessLevelUpdate
244     , boolean disabled
245     , String JavaDoc constValue
246     , String JavaDoc name
247     , String JavaDoc qualifiedName
248     , org.opencrx.kernel.model1.cci.Classifier type
249   ) {
250     ConstantImpl _object = (ConstantImpl)getConstant(_base);
251     _object.setAccessLevelBrowse(accessLevelBrowse);
252     _object.setAccessLevelDelete(accessLevelDelete);
253     _object.setAccessLevelUpdate(accessLevelUpdate);
254     _object.setDisabled(disabled);
255     _object.setConstValue(constValue);
256     _object.setName(name);
257     _object.setQualifiedName(qualifiedName);
258     _object.setType(type);
259     return _object;
260   }
261
262 // ----------------------------------------------------------------------------
263
// ClassProxy/ImplInstanceExtenderRequiredAttributes
264
// ----------------------------------------------------------------------------
265
public Constant extendCrxObject(
266       org.opencrx.kernel.generic.cci.CrxObject _base
267     , String JavaDoc constValue
268     , String JavaDoc name
269     , String JavaDoc qualifiedName
270     , org.opencrx.kernel.model1.cci.Classifier type
271   ) {
272     ConstantImpl _object = (ConstantImpl)getConstant(_base);
273     _object.setConstValue(constValue);
274     _object.setName(name);
275     _object.setQualifiedName(qualifiedName);
276     _object.setType(type);
277     return _object;
278   }
279
280 // ----------------------------------------------------------------------------
281
// ClassProxy/ImplInstanceExtenderRequiredAttributes
282
// ----------------------------------------------------------------------------
283
public Constant extendElement(
284       org.opencrx.kernel.model1.cci.Element _base
285     , String JavaDoc constValue
286     , org.opencrx.kernel.model1.cci.Classifier type
287   ) {
288     ConstantImpl _object = (ConstantImpl)getConstant(_base);
289     _object.setConstValue(constValue);
290     _object.setType(type);
291     return _object;
292   }
293
294 // ----------------------------------------------------------------------------
295
// ClassProxy/ImplInstanceExtenderRequiredAttributes
296
// ----------------------------------------------------------------------------
297
public Constant extendTypedElement(
298       org.opencrx.kernel.model1.cci.TypedElement _base
299     , String JavaDoc constValue
300   ) {
301     ConstantImpl _object = (ConstantImpl)getConstant(_base);
302     _object.setConstValue(constValue);
303     return _object;
304   }
305
306 // ----------------------------------------------------------------------------
307
// ClassProxy/ImplInstanceExtenderRequiredAttributes
308
// ----------------------------------------------------------------------------
309
public Constant extendBasicObject(
310       org.openmdx.base.cci.BasicObject _base
311     , short accessLevelBrowse
312     , short accessLevelDelete
313     , short accessLevelUpdate
314     , boolean disabled
315     , String JavaDoc constValue
316     , String JavaDoc name
317     , String JavaDoc qualifiedName
318     , org.opencrx.kernel.model1.cci.Classifier type
319   ) {
320     ConstantImpl _object = (ConstantImpl)getConstant(_base);
321     _object.setAccessLevelBrowse(accessLevelBrowse);
322     _object.setAccessLevelDelete(accessLevelDelete);
323     _object.setAccessLevelUpdate(accessLevelUpdate);
324     _object.setDisabled(disabled);
325     _object.setConstValue(constValue);
326     _object.setName(name);
327     _object.setQualifiedName(qualifiedName);
328     _object.setType(type);
329     return _object;
330   }
331
332 // ----------------------------------------------------------------------------
333
// ClassProxy/ImplInstanceExtenderRequiredAttributes
334
// ----------------------------------------------------------------------------
335
public Constant extendContextCapable(
336       org.openmdx.base.cci.ContextCapable _base
337     , short accessLevelBrowse
338     , short accessLevelDelete
339     , short accessLevelUpdate
340     , boolean disabled
341     , String JavaDoc constValue
342     , String JavaDoc name
343     , String JavaDoc qualifiedName
344     , org.opencrx.kernel.model1.cci.Classifier type
345   ) {
346     ConstantImpl _object = (ConstantImpl)getConstant(_base);
347     _object.setAccessLevelBrowse(accessLevelBrowse);
348     _object.setAccessLevelDelete(accessLevelDelete);
349     _object.setAccessLevelUpdate(accessLevelUpdate);
350     _object.setDisabled(disabled);
351     _object.setConstValue(constValue);
352     _object.setName(name);
353     _object.setQualifiedName(qualifiedName);
354     _object.setType(type);
355     return _object;
356   }
357
358 // ----------------------------------------------------------------------------
359
// ClassProxy/ImplInstanceExtenderRequiredAttributes
360
// ----------------------------------------------------------------------------
361
public Constant extendExtentCapable(
362       org.openmdx.base.cci.ExtentCapable _base
363     , short accessLevelBrowse
364     , short accessLevelDelete
365     , short accessLevelUpdate
366     , boolean disabled
367     , String JavaDoc constValue
368     , String JavaDoc name
369     , String JavaDoc qualifiedName
370     , org.opencrx.kernel.model1.cci.Classifier type
371   ) {
372     ConstantImpl _object = (ConstantImpl)getConstant(_base);
373     _object.setAccessLevelBrowse(accessLevelBrowse);
374     _object.setAccessLevelDelete(accessLevelDelete);
375     _object.setAccessLevelUpdate(accessLevelUpdate);
376     _object.setDisabled(disabled);
377     _object.setConstValue(constValue);
378     _object.setName(name);
379     _object.setQualifiedName(qualifiedName);
380     _object.setType(type);
381     return _object;
382   }
383
384 // ----------------------------------------------------------------------------
385
// ClassProxy/ImplInstanceExtenderRequiredAttributes
386
// ----------------------------------------------------------------------------
387
public Constant extendViewCapable(
388       org.openmdx.compatibility.view1.cci.ViewCapable _base
389     , short accessLevelBrowse
390     , short accessLevelDelete
391     , short accessLevelUpdate
392     , boolean disabled
393     , String JavaDoc constValue
394     , String JavaDoc name
395     , String JavaDoc qualifiedName
396     , org.opencrx.kernel.model1.cci.Classifier type
397   ) {
398     ConstantImpl _object = (ConstantImpl)getConstant(_base);
399     _object.setAccessLevelBrowse(accessLevelBrowse);
400     _object.setAccessLevelDelete(accessLevelDelete);
401     _object.setAccessLevelUpdate(accessLevelUpdate);
402     _object.setDisabled(disabled);
403     _object.setConstValue(constValue);
404     _object.setName(name);
405     _object.setQualifiedName(qualifiedName);
406     _object.setType(type);
407     return _object;
408   }
409
410 // ----------------------------------------------------------------------------
411
// ClassProxy/ImplEnd.vm
412
// ----------------------------------------------------------------------------
413
}
414
Popular Tags