KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > account1 > 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:38:55 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.account1.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:account1: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 extendAccountAddress(
90       org.opencrx.kernel.account1.cci.AccountAddress _base
91     , short postalCountry
92     , short postalFreightTerms
93     , short postalUtcOffset
94   ) {
95     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
96     _object.setPostalCountry(postalCountry);
97     _object.setPostalFreightTerms(postalFreightTerms);
98     _object.setPostalUtcOffset(postalUtcOffset);
99     return _object;
100   }
101
102 // ----------------------------------------------------------------------------
103
// ClassProxy/ImplInstanceExtenderRequiredAttributes
104
// ----------------------------------------------------------------------------
105
public PostalAddress extendAddressable(
106       org.opencrx.kernel.address1.cci.Addressable _base
107     , short postalCountry
108     , short postalFreightTerms
109     , short postalUtcOffset
110     , short accessLevelBrowse
111     , short accessLevelDelete
112     , short accessLevelUpdate
113     , boolean disabled
114   ) {
115     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
116     _object.setPostalCountry(postalCountry);
117     _object.setPostalFreightTerms(postalFreightTerms);
118     _object.setPostalUtcOffset(postalUtcOffset);
119     _object.setAccessLevelBrowse(accessLevelBrowse);
120     _object.setAccessLevelDelete(accessLevelDelete);
121     _object.setAccessLevelUpdate(accessLevelUpdate);
122     _object.setDisabled(disabled);
123     return _object;
124   }
125
126 // ----------------------------------------------------------------------------
127
// ClassProxy/ImplInstanceExtenderRequiredAttributes
128
// ----------------------------------------------------------------------------
129
public PostalAddress extendPostalAddressable(
130       org.opencrx.kernel.address1.cci.PostalAddressable _base
131     , boolean isMain
132     , short accessLevelBrowse
133     , short accessLevelDelete
134     , short accessLevelUpdate
135     , boolean disabled
136   ) {
137     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
138     _object.setMain(isMain);
139     _object.setAccessLevelBrowse(accessLevelBrowse);
140     _object.setAccessLevelDelete(accessLevelDelete);
141     _object.setAccessLevelUpdate(accessLevelUpdate);
142     _object.setDisabled(disabled);
143     return _object;
144   }
145
146 // ----------------------------------------------------------------------------
147
// ClassProxy/ImplInstanceExtenderRequiredAttributes
148
// ----------------------------------------------------------------------------
149
public PostalAddress extendAuditee(
150       org.opencrx.kernel.base.cci.Auditee _base
151     , boolean isMain
152     , short postalCountry
153     , short postalFreightTerms
154     , short postalUtcOffset
155     , short accessLevelBrowse
156     , short accessLevelDelete
157     , short accessLevelUpdate
158     , boolean disabled
159   ) {
160     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
161     _object.setMain(isMain);
162     _object.setPostalCountry(postalCountry);
163     _object.setPostalFreightTerms(postalFreightTerms);
164     _object.setPostalUtcOffset(postalUtcOffset);
165     _object.setAccessLevelBrowse(accessLevelBrowse);
166     _object.setAccessLevelDelete(accessLevelDelete);
167     _object.setAccessLevelUpdate(accessLevelUpdate);
168     _object.setDisabled(disabled);
169     return _object;
170   }
171
172 // ----------------------------------------------------------------------------
173
// ClassProxy/ImplInstanceExtenderRequiredAttributes
174
// ----------------------------------------------------------------------------
175
public PostalAddress extendBookmarkable(
176       org.opencrx.kernel.base.cci.Bookmarkable _base
177     , boolean isMain
178     , short postalCountry
179     , short postalFreightTerms
180     , short postalUtcOffset
181     , short accessLevelBrowse
182     , short accessLevelDelete
183     , short accessLevelUpdate
184     , boolean disabled
185   ) {
186     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
187     _object.setMain(isMain);
188     _object.setPostalCountry(postalCountry);
189     _object.setPostalFreightTerms(postalFreightTerms);
190     _object.setPostalUtcOffset(postalUtcOffset);
191     _object.setAccessLevelBrowse(accessLevelBrowse);
192     _object.setAccessLevelDelete(accessLevelDelete);
193     _object.setAccessLevelUpdate(accessLevelUpdate);
194     _object.setDisabled(disabled);
195     return _object;
196   }
197
198 // ----------------------------------------------------------------------------
199
// ClassProxy/ImplInstanceExtenderRequiredAttributes
200
// ----------------------------------------------------------------------------
201
public PostalAddress extendCloneable(
202       org.opencrx.kernel.base.cci.Cloneable _base
203     , boolean isMain
204     , short postalCountry
205     , short postalFreightTerms
206     , short postalUtcOffset
207     , short accessLevelBrowse
208     , short accessLevelDelete
209     , short accessLevelUpdate
210     , boolean disabled
211   ) {
212     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
213     _object.setMain(isMain);
214     _object.setPostalCountry(postalCountry);
215     _object.setPostalFreightTerms(postalFreightTerms);
216     _object.setPostalUtcOffset(postalUtcOffset);
217     _object.setAccessLevelBrowse(accessLevelBrowse);
218     _object.setAccessLevelDelete(accessLevelDelete);
219     _object.setAccessLevelUpdate(accessLevelUpdate);
220     _object.setDisabled(disabled);
221     return _object;
222   }
223
224 // ----------------------------------------------------------------------------
225
// ClassProxy/ImplInstanceExtenderRequiredAttributes
226
// ----------------------------------------------------------------------------
227
public PostalAddress extendImporter(
228       org.opencrx.kernel.base.cci.Importer _base
229     , boolean isMain
230     , short postalCountry
231     , short postalFreightTerms
232     , short postalUtcOffset
233     , short accessLevelBrowse
234     , short accessLevelDelete
235     , short accessLevelUpdate
236     , boolean disabled
237   ) {
238     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
239     _object.setMain(isMain);
240     _object.setPostalCountry(postalCountry);
241     _object.setPostalFreightTerms(postalFreightTerms);
242     _object.setPostalUtcOffset(postalUtcOffset);
243     _object.setAccessLevelBrowse(accessLevelBrowse);
244     _object.setAccessLevelDelete(accessLevelDelete);
245     _object.setAccessLevelUpdate(accessLevelUpdate);
246     _object.setDisabled(disabled);
247     return _object;
248   }
249
250 // ----------------------------------------------------------------------------
251
// ClassProxy/ImplInstanceExtenderRequiredAttributes
252
// ----------------------------------------------------------------------------
253
public PostalAddress extendSecureObject(
254       org.opencrx.kernel.base.cci.SecureObject _base
255     , boolean isMain
256     , short postalCountry
257     , short postalFreightTerms
258     , short postalUtcOffset
259     , boolean disabled
260   ) {
261     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
262     _object.setMain(isMain);
263     _object.setPostalCountry(postalCountry);
264     _object.setPostalFreightTerms(postalFreightTerms);
265     _object.setPostalUtcOffset(postalUtcOffset);
266     _object.setDisabled(disabled);
267     return _object;
268   }
269
270 // ----------------------------------------------------------------------------
271
// ClassProxy/ImplInstanceExtenderRequiredAttributes
272
// ----------------------------------------------------------------------------
273
public PostalAddress extendSubscriptionTarget(
274       org.opencrx.kernel.base.cci.SubscriptionTarget _base
275     , boolean isMain
276     , short postalCountry
277     , short postalFreightTerms
278     , short postalUtcOffset
279     , short accessLevelBrowse
280     , short accessLevelDelete
281     , short accessLevelUpdate
282     , boolean disabled
283   ) {
284     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
285     _object.setMain(isMain);
286     _object.setPostalCountry(postalCountry);
287     _object.setPostalFreightTerms(postalFreightTerms);
288     _object.setPostalUtcOffset(postalUtcOffset);
289     _object.setAccessLevelBrowse(accessLevelBrowse);
290     _object.setAccessLevelDelete(accessLevelDelete);
291     _object.setAccessLevelUpdate(accessLevelUpdate);
292     _object.setDisabled(disabled);
293     return _object;
294   }
295
296 // ----------------------------------------------------------------------------
297
// ClassProxy/ImplInstanceExtenderRequiredAttributes
298
// ----------------------------------------------------------------------------
299
public PostalAddress extendXmlExporter(
300       org.opencrx.kernel.base.cci.XmlExporter _base
301     , boolean isMain
302     , short postalCountry
303     , short postalFreightTerms
304     , short postalUtcOffset
305     , short accessLevelBrowse
306     , short accessLevelDelete
307     , short accessLevelUpdate
308     , boolean disabled
309   ) {
310     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
311     _object.setMain(isMain);
312     _object.setPostalCountry(postalCountry);
313     _object.setPostalFreightTerms(postalFreightTerms);
314     _object.setPostalUtcOffset(postalUtcOffset);
315     _object.setAccessLevelBrowse(accessLevelBrowse);
316     _object.setAccessLevelDelete(accessLevelDelete);
317     _object.setAccessLevelUpdate(accessLevelUpdate);
318     _object.setDisabled(disabled);
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