KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > contract1 > cci > PostalAddressClassImpl


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:39:01 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.contract1.cci;
14
15 public class PostalAddressClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements PostalAddressClass {
18
19   public PostalAddressClassImpl(
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:contract1:PostalAddress";
28   }
29
30   public PostalAddress getPostalAddress(
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         PostalAddress target = (PostalAddress)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (PostalAddress)((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 PostalAddress createPostalAddress(
55   ) {
56     PostalAddress target = (PostalAddress)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public PostalAddress createPostalAddress(
65       boolean isMain
66     , short postalCountry
67     , short postalFreightTerms
68     , short postalUtcOffset
69     , short accessLevelBrowse
70     , short accessLevelDelete
71     , short accessLevelUpdate
72     , boolean disabled
73   ) {
74     PostalAddressImpl _object = (PostalAddressImpl)createPostalAddress();
75     _object.setMain(isMain);
76     _object.setPostalCountry(postalCountry);
77     _object.setPostalFreightTerms(postalFreightTerms);
78     _object.setPostalUtcOffset(postalUtcOffset);
79     _object.setAccessLevelBrowse(accessLevelBrowse);
80     _object.setAccessLevelDelete(accessLevelDelete);
81     _object.setAccessLevelUpdate(accessLevelUpdate);
82     _object.setDisabled(disabled);
83     return _object;
84   }
85
86 // ----------------------------------------------------------------------------
87
// ClassProxy/ImplInstanceExtenderRequiredAttributes
88
// ----------------------------------------------------------------------------
89
public PostalAddress extendAddressable(
90       org.opencrx.kernel.address1.cci.Addressable _base
91     , short postalCountry
92     , short postalFreightTerms
93     , short postalUtcOffset
94     , short accessLevelBrowse
95     , short accessLevelDelete
96     , short accessLevelUpdate
97     , boolean disabled
98   ) {
99     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
100     _object.setPostalCountry(postalCountry);
101     _object.setPostalFreightTerms(postalFreightTerms);
102     _object.setPostalUtcOffset(postalUtcOffset);
103     _object.setAccessLevelBrowse(accessLevelBrowse);
104     _object.setAccessLevelDelete(accessLevelDelete);
105     _object.setAccessLevelUpdate(accessLevelUpdate);
106     _object.setDisabled(disabled);
107     return _object;
108   }
109
110 // ----------------------------------------------------------------------------
111
// ClassProxy/ImplInstanceExtenderRequiredAttributes
112
// ----------------------------------------------------------------------------
113
public PostalAddress extendPostalAddressable(
114       org.opencrx.kernel.address1.cci.PostalAddressable _base
115     , boolean isMain
116     , short accessLevelBrowse
117     , short accessLevelDelete
118     , short accessLevelUpdate
119     , boolean disabled
120   ) {
121     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
122     _object.setMain(isMain);
123     _object.setAccessLevelBrowse(accessLevelBrowse);
124     _object.setAccessLevelDelete(accessLevelDelete);
125     _object.setAccessLevelUpdate(accessLevelUpdate);
126     _object.setDisabled(disabled);
127     return _object;
128   }
129
130 // ----------------------------------------------------------------------------
131
// ClassProxy/ImplInstanceExtenderRequiredAttributes
132
// ----------------------------------------------------------------------------
133
public PostalAddress extendAuditee(
134       org.opencrx.kernel.base.cci.Auditee _base
135     , boolean isMain
136     , short postalCountry
137     , short postalFreightTerms
138     , short postalUtcOffset
139     , short accessLevelBrowse
140     , short accessLevelDelete
141     , short accessLevelUpdate
142     , boolean disabled
143   ) {
144     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
145     _object.setMain(isMain);
146     _object.setPostalCountry(postalCountry);
147     _object.setPostalFreightTerms(postalFreightTerms);
148     _object.setPostalUtcOffset(postalUtcOffset);
149     _object.setAccessLevelBrowse(accessLevelBrowse);
150     _object.setAccessLevelDelete(accessLevelDelete);
151     _object.setAccessLevelUpdate(accessLevelUpdate);
152     _object.setDisabled(disabled);
153     return _object;
154   }
155
156 // ----------------------------------------------------------------------------
157
// ClassProxy/ImplInstanceExtenderRequiredAttributes
158
// ----------------------------------------------------------------------------
159
public PostalAddress extendBookmarkable(
160       org.opencrx.kernel.base.cci.Bookmarkable _base
161     , boolean isMain
162     , short postalCountry
163     , short postalFreightTerms
164     , short postalUtcOffset
165     , short accessLevelBrowse
166     , short accessLevelDelete
167     , short accessLevelUpdate
168     , boolean disabled
169   ) {
170     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
171     _object.setMain(isMain);
172     _object.setPostalCountry(postalCountry);
173     _object.setPostalFreightTerms(postalFreightTerms);
174     _object.setPostalUtcOffset(postalUtcOffset);
175     _object.setAccessLevelBrowse(accessLevelBrowse);
176     _object.setAccessLevelDelete(accessLevelDelete);
177     _object.setAccessLevelUpdate(accessLevelUpdate);
178     _object.setDisabled(disabled);
179     return _object;
180   }
181
182 // ----------------------------------------------------------------------------
183
// ClassProxy/ImplInstanceExtenderRequiredAttributes
184
// ----------------------------------------------------------------------------
185
public PostalAddress extendCloneable(
186       org.opencrx.kernel.base.cci.Cloneable _base
187     , boolean isMain
188     , short postalCountry
189     , short postalFreightTerms
190     , short postalUtcOffset
191     , short accessLevelBrowse
192     , short accessLevelDelete
193     , short accessLevelUpdate
194     , boolean disabled
195   ) {
196     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
197     _object.setMain(isMain);
198     _object.setPostalCountry(postalCountry);
199     _object.setPostalFreightTerms(postalFreightTerms);
200     _object.setPostalUtcOffset(postalUtcOffset);
201     _object.setAccessLevelBrowse(accessLevelBrowse);
202     _object.setAccessLevelDelete(accessLevelDelete);
203     _object.setAccessLevelUpdate(accessLevelUpdate);
204     _object.setDisabled(disabled);
205     return _object;
206   }
207
208 // ----------------------------------------------------------------------------
209
// ClassProxy/ImplInstanceExtenderRequiredAttributes
210
// ----------------------------------------------------------------------------
211
public PostalAddress extendImporter(
212       org.opencrx.kernel.base.cci.Importer _base
213     , boolean isMain
214     , short postalCountry
215     , short postalFreightTerms
216     , short postalUtcOffset
217     , short accessLevelBrowse
218     , short accessLevelDelete
219     , short accessLevelUpdate
220     , boolean disabled
221   ) {
222     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
223     _object.setMain(isMain);
224     _object.setPostalCountry(postalCountry);
225     _object.setPostalFreightTerms(postalFreightTerms);
226     _object.setPostalUtcOffset(postalUtcOffset);
227     _object.setAccessLevelBrowse(accessLevelBrowse);
228     _object.setAccessLevelDelete(accessLevelDelete);
229     _object.setAccessLevelUpdate(accessLevelUpdate);
230     _object.setDisabled(disabled);
231     return _object;
232   }
233
234 // ----------------------------------------------------------------------------
235
// ClassProxy/ImplInstanceExtenderRequiredAttributes
236
// ----------------------------------------------------------------------------
237
public PostalAddress extendSecureObject(
238       org.opencrx.kernel.base.cci.SecureObject _base
239     , boolean isMain
240     , short postalCountry
241     , short postalFreightTerms
242     , short postalUtcOffset
243     , boolean disabled
244   ) {
245     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
246     _object.setMain(isMain);
247     _object.setPostalCountry(postalCountry);
248     _object.setPostalFreightTerms(postalFreightTerms);
249     _object.setPostalUtcOffset(postalUtcOffset);
250     _object.setDisabled(disabled);
251     return _object;
252   }
253
254 // ----------------------------------------------------------------------------
255
// ClassProxy/ImplInstanceExtenderRequiredAttributes
256
// ----------------------------------------------------------------------------
257
public PostalAddress extendSubscriptionTarget(
258       org.opencrx.kernel.base.cci.SubscriptionTarget _base
259     , boolean isMain
260     , short postalCountry
261     , short postalFreightTerms
262     , short postalUtcOffset
263     , short accessLevelBrowse
264     , short accessLevelDelete
265     , short accessLevelUpdate
266     , boolean disabled
267   ) {
268     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
269     _object.setMain(isMain);
270     _object.setPostalCountry(postalCountry);
271     _object.setPostalFreightTerms(postalFreightTerms);
272     _object.setPostalUtcOffset(postalUtcOffset);
273     _object.setAccessLevelBrowse(accessLevelBrowse);
274     _object.setAccessLevelDelete(accessLevelDelete);
275     _object.setAccessLevelUpdate(accessLevelUpdate);
276     _object.setDisabled(disabled);
277     return _object;
278   }
279
280 // ----------------------------------------------------------------------------
281
// ClassProxy/ImplInstanceExtenderRequiredAttributes
282
// ----------------------------------------------------------------------------
283
public PostalAddress extendXmlExporter(
284       org.opencrx.kernel.base.cci.XmlExporter _base
285     , boolean isMain
286     , short postalCountry
287     , short postalFreightTerms
288     , short postalUtcOffset
289     , short accessLevelBrowse
290     , short accessLevelDelete
291     , short accessLevelUpdate
292     , boolean disabled
293   ) {
294     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
295     _object.setMain(isMain);
296     _object.setPostalCountry(postalCountry);
297     _object.setPostalFreightTerms(postalFreightTerms);
298     _object.setPostalUtcOffset(postalUtcOffset);
299     _object.setAccessLevelBrowse(accessLevelBrowse);
300     _object.setAccessLevelDelete(accessLevelDelete);
301     _object.setAccessLevelUpdate(accessLevelUpdate);
302     _object.setDisabled(disabled);
303     return _object;
304   }
305
306 // ----------------------------------------------------------------------------
307
// ClassProxy/ImplInstanceExtenderRequiredAttributes
308
// ----------------------------------------------------------------------------
309
public PostalAddress extendContractAddress(
310       org.opencrx.kernel.contract1.cci.ContractAddress _base
311     , short postalCountry
312     , short postalFreightTerms
313     , short postalUtcOffset
314   ) {
315     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
316     _object.setPostalCountry(postalCountry);
317     _object.setPostalFreightTerms(postalFreightTerms);
318     _object.setPostalUtcOffset(postalUtcOffset);
319     return _object;
320   }
321
322 // ----------------------------------------------------------------------------
323
// ClassProxy/ImplInstanceExtenderRequiredAttributes
324
// ----------------------------------------------------------------------------
325
public PostalAddress extendCrxObject(
326       org.opencrx.kernel.generic.cci.CrxObject _base
327     , boolean isMain
328     , short postalCountry
329     , short postalFreightTerms
330     , short postalUtcOffset
331   ) {
332     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
333     _object.setMain(isMain);
334     _object.setPostalCountry(postalCountry);
335     _object.setPostalFreightTerms(postalFreightTerms);
336     _object.setPostalUtcOffset(postalUtcOffset);
337     return _object;
338   }
339
340 // ----------------------------------------------------------------------------
341
// ClassProxy/ImplInstanceExtenderRequiredAttributes
342
// ----------------------------------------------------------------------------
343
public PostalAddress extendPictured(
344       org.opencrx.kernel.generic.cci.Pictured _base
345     , boolean isMain
346     , short postalCountry
347     , short postalFreightTerms
348     , short postalUtcOffset
349     , short accessLevelBrowse
350     , short accessLevelDelete
351     , short accessLevelUpdate
352     , boolean disabled
353   ) {
354     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
355     _object.setMain(isMain);
356     _object.setPostalCountry(postalCountry);
357     _object.setPostalFreightTerms(postalFreightTerms);
358     _object.setPostalUtcOffset(postalUtcOffset);
359     _object.setAccessLevelBrowse(accessLevelBrowse);
360     _object.setAccessLevelDelete(accessLevelDelete);
361     _object.setAccessLevelUpdate(accessLevelUpdate);
362     _object.setDisabled(disabled);
363     return _object;
364   }
365
366 // ----------------------------------------------------------------------------
367
// ClassProxy/ImplInstanceExtenderRequiredAttributes
368
// ----------------------------------------------------------------------------
369
public PostalAddress extendBasicObject(
370       org.openmdx.base.cci.BasicObject _base
371     , boolean isMain
372     , short postalCountry
373     , short postalFreightTerms
374     , short postalUtcOffset
375     , short accessLevelBrowse
376     , short accessLevelDelete
377     , short accessLevelUpdate
378     , boolean disabled
379   ) {
380     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
381     _object.setMain(isMain);
382     _object.setPostalCountry(postalCountry);
383     _object.setPostalFreightTerms(postalFreightTerms);
384     _object.setPostalUtcOffset(postalUtcOffset);
385     _object.setAccessLevelBrowse(accessLevelBrowse);
386     _object.setAccessLevelDelete(accessLevelDelete);
387     _object.setAccessLevelUpdate(accessLevelUpdate);
388     _object.setDisabled(disabled);
389     return _object;
390   }
391
392 // ----------------------------------------------------------------------------
393
// ClassProxy/ImplInstanceExtenderRequiredAttributes
394
// ----------------------------------------------------------------------------
395
public PostalAddress extendContextCapable(
396       org.openmdx.base.cci.ContextCapable _base
397     , boolean isMain
398     , short postalCountry
399     , short postalFreightTerms
400     , short postalUtcOffset
401     , short accessLevelBrowse
402     , short accessLevelDelete
403     , short accessLevelUpdate
404     , boolean disabled
405   ) {
406     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
407     _object.setMain(isMain);
408     _object.setPostalCountry(postalCountry);
409     _object.setPostalFreightTerms(postalFreightTerms);
410     _object.setPostalUtcOffset(postalUtcOffset);
411     _object.setAccessLevelBrowse(accessLevelBrowse);
412     _object.setAccessLevelDelete(accessLevelDelete);
413     _object.setAccessLevelUpdate(accessLevelUpdate);
414     _object.setDisabled(disabled);
415     return _object;
416   }
417
418 // ----------------------------------------------------------------------------
419
// ClassProxy/ImplInstanceExtenderRequiredAttributes
420
// ----------------------------------------------------------------------------
421
public PostalAddress extendExtentCapable(
422       org.openmdx.base.cci.ExtentCapable _base
423     , boolean isMain
424     , short postalCountry
425     , short postalFreightTerms
426     , short postalUtcOffset
427     , short accessLevelBrowse
428     , short accessLevelDelete
429     , short accessLevelUpdate
430     , boolean disabled
431   ) {
432     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
433     _object.setMain(isMain);
434     _object.setPostalCountry(postalCountry);
435     _object.setPostalFreightTerms(postalFreightTerms);
436     _object.setPostalUtcOffset(postalUtcOffset);
437     _object.setAccessLevelBrowse(accessLevelBrowse);
438     _object.setAccessLevelDelete(accessLevelDelete);
439     _object.setAccessLevelUpdate(accessLevelUpdate);
440     _object.setDisabled(disabled);
441     return _object;
442   }
443
444 // ----------------------------------------------------------------------------
445
// ClassProxy/ImplInstanceExtenderRequiredAttributes
446
// ----------------------------------------------------------------------------
447
public PostalAddress extendViewCapable(
448       org.openmdx.compatibility.view1.cci.ViewCapable _base
449     , boolean isMain
450     , short postalCountry
451     , short postalFreightTerms
452     , short postalUtcOffset
453     , short accessLevelBrowse
454     , short accessLevelDelete
455     , short accessLevelUpdate
456     , boolean disabled
457   ) {
458     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
459     _object.setMain(isMain);
460     _object.setPostalCountry(postalCountry);
461     _object.setPostalFreightTerms(postalFreightTerms);
462     _object.setPostalUtcOffset(postalUtcOffset);
463     _object.setAccessLevelBrowse(accessLevelBrowse);
464     _object.setAccessLevelDelete(accessLevelDelete);
465     _object.setAccessLevelUpdate(accessLevelUpdate);
466     _object.setDisabled(disabled);
467     return _object;
468   }
469
470 // ----------------------------------------------------------------------------
471
// ClassProxy/ImplEnd.vm
472
// ----------------------------------------------------------------------------
473
}
474
Popular Tags