KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > depot1 > 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:56 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.depot1.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:depot1: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       short postalCountry
66     , short postalFreightTerms
67     , short postalUtcOffset
68     , short accessLevelBrowse
69     , short accessLevelDelete
70     , short accessLevelUpdate
71   ) {
72     PostalAddressImpl _object = (PostalAddressImpl)createPostalAddress();
73     _object.setPostalCountry(postalCountry);
74     _object.setPostalFreightTerms(postalFreightTerms);
75     _object.setPostalUtcOffset(postalUtcOffset);
76     _object.setAccessLevelBrowse(accessLevelBrowse);
77     _object.setAccessLevelDelete(accessLevelDelete);
78     _object.setAccessLevelUpdate(accessLevelUpdate);
79     return _object;
80   }
81
82 // ----------------------------------------------------------------------------
83
// ClassProxy/ImplInstanceExtenderRequiredAttributes
84
// ----------------------------------------------------------------------------
85
public PostalAddress extendPostalAddressable(
86       org.opencrx.kernel.address1.cci.PostalAddressable _base
87     , short accessLevelBrowse
88     , short accessLevelDelete
89     , short accessLevelUpdate
90   ) {
91     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
92     _object.setAccessLevelBrowse(accessLevelBrowse);
93     _object.setAccessLevelDelete(accessLevelDelete);
94     _object.setAccessLevelUpdate(accessLevelUpdate);
95     return _object;
96   }
97
98 // ----------------------------------------------------------------------------
99
// ClassProxy/ImplInstanceExtenderRequiredAttributes
100
// ----------------------------------------------------------------------------
101
public PostalAddress extendSecureObject(
102       org.opencrx.kernel.base.cci.SecureObject _base
103     , short postalCountry
104     , short postalFreightTerms
105     , short postalUtcOffset
106   ) {
107     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
108     _object.setPostalCountry(postalCountry);
109     _object.setPostalFreightTerms(postalFreightTerms);
110     _object.setPostalUtcOffset(postalUtcOffset);
111     return _object;
112   }
113
114 // ----------------------------------------------------------------------------
115
// ClassProxy/ImplInstanceExtenderRequiredAttributes
116
// ----------------------------------------------------------------------------
117
public PostalAddress extendDepotAddress(
118       org.opencrx.kernel.depot1.cci.DepotAddress _base
119     , short postalCountry
120     , short postalFreightTerms
121     , short postalUtcOffset
122   ) {
123     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
124     _object.setPostalCountry(postalCountry);
125     _object.setPostalFreightTerms(postalFreightTerms);
126     _object.setPostalUtcOffset(postalUtcOffset);
127     return _object;
128   }
129
130 // ----------------------------------------------------------------------------
131
// ClassProxy/ImplInstanceExtenderRequiredAttributes
132
// ----------------------------------------------------------------------------
133
public PostalAddress extendPictured(
134       org.opencrx.kernel.generic.cci.Pictured _base
135     , short postalCountry
136     , short postalFreightTerms
137     , short postalUtcOffset
138     , short accessLevelBrowse
139     , short accessLevelDelete
140     , short accessLevelUpdate
141   ) {
142     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
143     _object.setPostalCountry(postalCountry);
144     _object.setPostalFreightTerms(postalFreightTerms);
145     _object.setPostalUtcOffset(postalUtcOffset);
146     _object.setAccessLevelBrowse(accessLevelBrowse);
147     _object.setAccessLevelDelete(accessLevelDelete);
148     _object.setAccessLevelUpdate(accessLevelUpdate);
149     return _object;
150   }
151
152 // ----------------------------------------------------------------------------
153
// ClassProxy/ImplInstanceExtenderRequiredAttributes
154
// ----------------------------------------------------------------------------
155
public PostalAddress extendBasicObject(
156       org.openmdx.base.cci.BasicObject _base
157     , short postalCountry
158     , short postalFreightTerms
159     , short postalUtcOffset
160     , short accessLevelBrowse
161     , short accessLevelDelete
162     , short accessLevelUpdate
163   ) {
164     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
165     _object.setPostalCountry(postalCountry);
166     _object.setPostalFreightTerms(postalFreightTerms);
167     _object.setPostalUtcOffset(postalUtcOffset);
168     _object.setAccessLevelBrowse(accessLevelBrowse);
169     _object.setAccessLevelDelete(accessLevelDelete);
170     _object.setAccessLevelUpdate(accessLevelUpdate);
171     return _object;
172   }
173
174 // ----------------------------------------------------------------------------
175
// ClassProxy/ImplInstanceExtenderRequiredAttributes
176
// ----------------------------------------------------------------------------
177
public PostalAddress extendContextCapable(
178       org.openmdx.base.cci.ContextCapable _base
179     , short postalCountry
180     , short postalFreightTerms
181     , short postalUtcOffset
182     , short accessLevelBrowse
183     , short accessLevelDelete
184     , short accessLevelUpdate
185   ) {
186     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
187     _object.setPostalCountry(postalCountry);
188     _object.setPostalFreightTerms(postalFreightTerms);
189     _object.setPostalUtcOffset(postalUtcOffset);
190     _object.setAccessLevelBrowse(accessLevelBrowse);
191     _object.setAccessLevelDelete(accessLevelDelete);
192     _object.setAccessLevelUpdate(accessLevelUpdate);
193     return _object;
194   }
195
196 // ----------------------------------------------------------------------------
197
// ClassProxy/ImplInstanceExtenderRequiredAttributes
198
// ----------------------------------------------------------------------------
199
public PostalAddress extendExtentCapable(
200       org.openmdx.base.cci.ExtentCapable _base
201     , short postalCountry
202     , short postalFreightTerms
203     , short postalUtcOffset
204     , short accessLevelBrowse
205     , short accessLevelDelete
206     , short accessLevelUpdate
207   ) {
208     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
209     _object.setPostalCountry(postalCountry);
210     _object.setPostalFreightTerms(postalFreightTerms);
211     _object.setPostalUtcOffset(postalUtcOffset);
212     _object.setAccessLevelBrowse(accessLevelBrowse);
213     _object.setAccessLevelDelete(accessLevelDelete);
214     _object.setAccessLevelUpdate(accessLevelUpdate);
215     return _object;
216   }
217
218 // ----------------------------------------------------------------------------
219
// ClassProxy/ImplInstanceExtenderRequiredAttributes
220
// ----------------------------------------------------------------------------
221
public PostalAddress extendViewCapable(
222       org.openmdx.compatibility.view1.cci.ViewCapable _base
223     , short postalCountry
224     , short postalFreightTerms
225     , short postalUtcOffset
226     , short accessLevelBrowse
227     , short accessLevelDelete
228     , short accessLevelUpdate
229   ) {
230     PostalAddressImpl _object = (PostalAddressImpl)getPostalAddress(_base);
231     _object.setPostalCountry(postalCountry);
232     _object.setPostalFreightTerms(postalFreightTerms);
233     _object.setPostalUtcOffset(postalUtcOffset);
234     _object.setAccessLevelBrowse(accessLevelBrowse);
235     _object.setAccessLevelDelete(accessLevelDelete);
236     _object.setAccessLevelUpdate(accessLevelUpdate);
237     return _object;
238   }
239
240 // ----------------------------------------------------------------------------
241
// ClassProxy/ImplEnd.vm
242
// ----------------------------------------------------------------------------
243
}
244
Popular Tags