KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > address1 > cci > PostalAddressableImpl


1 // ----------------------------------------------------------------------------
2
// Instance/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:06 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.address1.cci;
14
15 public class PostalAddressableImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements PostalAddressable {
18
19   public PostalAddressableImpl(
20     org.openmdx.base.accessor.generic.cci.Object_1_0 object,
21     javax.jmi.reflect.RefClass refClass
22   ) {
23     super(object, refClass);
24   }
25
26 // ----------------------------------------------------------------------------
27
// Instance/ImplAttributeGetList
28
// ----------------------------------------------------------------------------
29
public java.util.List JavaDoc getPostalAddressLine (
30   ) {
31     return (java.util.List JavaDoc)this.refGetValue("postalAddressLine");
32   }
33   public String JavaDoc getPostalAddressLine(
34     int index
35   ) {
36     return (String JavaDoc)this.refGetValue("org:opencrx:kernel:address1:PostalAddressable:postalAddressLine", index);
37   }
38
39 // ----------------------------------------------------------------------------
40
// Instance/ImplAttributeSetList
41
// ----------------------------------------------------------------------------
42
public void setPostalAddressLine(
43     java.util.List JavaDoc newValue
44   ) {
45     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalAddressLine", newValue);
46   }
47
48   public void setPostalAddressLine(
49     String JavaDoc[] newValue
50   ) {
51     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalAddressLine", newValue);
52   }
53
54 // ----------------------------------------------------------------------------
55
// Instance/ImplAttributeGet0_1
56
// ----------------------------------------------------------------------------
57
public String JavaDoc getPostalCity (
58   ) {
59     return (String JavaDoc)this.refGetValue("postalCity", 0);
60   }
61 // ----------------------------------------------------------------------------
62
// Instance/ImplAttributeSet0_1
63
// ----------------------------------------------------------------------------
64
public void setPostalCity(
65     String JavaDoc newValue
66   ) {
67     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalCity", 0, newValue);
68   }
69
70 // ----------------------------------------------------------------------------
71
// Instance/ImplAttributeGet0_1
72
// ----------------------------------------------------------------------------
73
public String JavaDoc getPostalCode (
74   ) {
75     return (String JavaDoc)this.refGetValue("postalCode", 0);
76   }
77 // ----------------------------------------------------------------------------
78
// Instance/ImplAttributeSet0_1
79
// ----------------------------------------------------------------------------
80
public void setPostalCode(
81     String JavaDoc newValue
82   ) {
83     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalCode", 0, newValue);
84   }
85
86 // ----------------------------------------------------------------------------
87
// Instance/ImplAttributeGet1_1
88
// ----------------------------------------------------------------------------
89
public short getPostalCountry(
90   ) {
91     return getPostalCountry(0);
92   }
93
94   protected short getPostalCountry(
95     int index
96   ) {
97     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:address1:PostalAddressable:postalCountry", index)).shortValue();
98   }
99
100 // ----------------------------------------------------------------------------
101
// Instance/ImplAttributeSet1_1
102
// ----------------------------------------------------------------------------
103
public void setPostalCountry(
104     short newValue
105   ) {
106     setPostalCountry(0, newValue);
107   }
108
109   protected void setPostalCountry(
110     int index,
111     short newValue
112   ) {
113     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalCountry", index, new Short JavaDoc(newValue));
114   }
115 // ----------------------------------------------------------------------------
116
// Instance/ImplAttributeGet0_1
117
// ----------------------------------------------------------------------------
118
public String JavaDoc getPostalCounty (
119   ) {
120     return (String JavaDoc)this.refGetValue("postalCounty", 0);
121   }
122 // ----------------------------------------------------------------------------
123
// Instance/ImplAttributeSet0_1
124
// ----------------------------------------------------------------------------
125
public void setPostalCounty(
126     String JavaDoc newValue
127   ) {
128     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalCounty", 0, newValue);
129   }
130
131 // ----------------------------------------------------------------------------
132
// Instance/ImplAttributeGet1_1
133
// ----------------------------------------------------------------------------
134
public short getPostalFreightTerms(
135   ) {
136     return getPostalFreightTerms(0);
137   }
138
139   protected short getPostalFreightTerms(
140     int index
141   ) {
142     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:address1:PostalAddressable:postalFreightTerms", index)).shortValue();
143   }
144
145 // ----------------------------------------------------------------------------
146
// Instance/ImplAttributeSet1_1
147
// ----------------------------------------------------------------------------
148
public void setPostalFreightTerms(
149     short newValue
150   ) {
151     setPostalFreightTerms(0, newValue);
152   }
153
154   protected void setPostalFreightTerms(
155     int index,
156     short newValue
157   ) {
158     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalFreightTerms", index, new Short JavaDoc(newValue));
159   }
160 // ----------------------------------------------------------------------------
161
// Instance/ImplAttributeGet0_1
162
// ----------------------------------------------------------------------------
163
public java.math.BigDecimal JavaDoc getPostalLatitude (
164   ) {
165     return (java.math.BigDecimal JavaDoc)this.refGetValue("postalLatitude", 0);
166   }
167 // ----------------------------------------------------------------------------
168
// Instance/ImplAttributeSet0_1
169
// ----------------------------------------------------------------------------
170
public void setPostalLatitude(
171     java.math.BigDecimal JavaDoc newValue
172   ) {
173     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalLatitude", 0, newValue);
174   }
175
176 // ----------------------------------------------------------------------------
177
// Instance/ImplAttributeGet0_1
178
// ----------------------------------------------------------------------------
179
public java.math.BigDecimal JavaDoc getPostalLongitude (
180   ) {
181     return (java.math.BigDecimal JavaDoc)this.refGetValue("postalLongitude", 0);
182   }
183 // ----------------------------------------------------------------------------
184
// Instance/ImplAttributeSet0_1
185
// ----------------------------------------------------------------------------
186
public void setPostalLongitude(
187     java.math.BigDecimal JavaDoc newValue
188   ) {
189     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalLongitude", 0, newValue);
190   }
191
192 // ----------------------------------------------------------------------------
193
// Instance/ImplAttributeGet0_1
194
// ----------------------------------------------------------------------------
195
public String JavaDoc getPostalState (
196   ) {
197     return (String JavaDoc)this.refGetValue("postalState", 0);
198   }
199 // ----------------------------------------------------------------------------
200
// Instance/ImplAttributeSet0_1
201
// ----------------------------------------------------------------------------
202
public void setPostalState(
203     String JavaDoc newValue
204   ) {
205     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalState", 0, newValue);
206   }
207
208 // ----------------------------------------------------------------------------
209
// Instance/ImplAttributeGetList
210
// ----------------------------------------------------------------------------
211
public java.util.List JavaDoc getPostalStreet (
212   ) {
213     return (java.util.List JavaDoc)this.refGetValue("postalStreet");
214   }
215   public String JavaDoc getPostalStreet(
216     int index
217   ) {
218     return (String JavaDoc)this.refGetValue("org:opencrx:kernel:address1:PostalAddressable:postalStreet", index);
219   }
220
221 // ----------------------------------------------------------------------------
222
// Instance/ImplAttributeSetList
223
// ----------------------------------------------------------------------------
224
public void setPostalStreet(
225     java.util.List JavaDoc newValue
226   ) {
227     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalStreet", newValue);
228   }
229
230   public void setPostalStreet(
231     String JavaDoc[] newValue
232   ) {
233     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalStreet", newValue);
234   }
235
236 // ----------------------------------------------------------------------------
237
// Instance/ImplAttributeGet1_1
238
// ----------------------------------------------------------------------------
239
public short getPostalUtcOffset(
240   ) {
241     return getPostalUtcOffset(0);
242   }
243
244   protected short getPostalUtcOffset(
245     int index
246   ) {
247     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:address1:PostalAddressable:postalUtcOffset", index)).shortValue();
248   }
249
250 // ----------------------------------------------------------------------------
251
// Instance/ImplAttributeSet1_1
252
// ----------------------------------------------------------------------------
253
public void setPostalUtcOffset(
254     short newValue
255   ) {
256     setPostalUtcOffset(0, newValue);
257   }
258
259   protected void setPostalUtcOffset(
260     int index,
261     short newValue
262   ) {
263     refSetValue("org:opencrx:kernel:address1:PostalAddressable:postalUtcOffset", index, new Short JavaDoc(newValue));
264   }
265 // ----------------------------------------------------------------------------
266
// Instance/ImplReferenceGet0_1NoQualifier
267
// ----------------------------------------------------------------------------
268
public org.opencrx.kernel.document1.cci.Media getPicture(
269   ) {
270     return (org.opencrx.kernel.document1.cci.Media)refGetValue(
271       "org:opencrx:kernel:generic:Pictured:picture"
272     );
273   }
274
275 // ----------------------------------------------------------------------------
276
// Instance/ImplReferenceSetNoQualifier
277
// ----------------------------------------------------------------------------
278
public void setPicture(
279     org.opencrx.kernel.document1.cci.Media newValue
280   ) {
281     refSetValue(
282       "org:opencrx:kernel:generic:Pictured:picture",
283       newValue
284     );
285   }
286
287 // ----------------------------------------------------------------------------
288
// Instance/ImplReferenceRemoveOptional
289
// ----------------------------------------------------------------------------
290
public void removePicture (
291   ) {
292     refRemoveValue(
293       "org:opencrx:kernel:generic:Pictured:picture"
294     );
295   }
296 // ----------------------------------------------------------------------------
297
// Instance/ImplAttributeGet0_1
298
// ----------------------------------------------------------------------------
299
public byte[] getPictureContent (
300   ) {
301     return (byte[])this.refGetValue("pictureContent", 0);
302   }
303 // ----------------------------------------------------------------------------
304
// Instance/ImplAttributeSet0_1
305
// ----------------------------------------------------------------------------
306
protected void setPictureContent(
307     byte[] newValue
308   ) {
309     refSetValue("org:opencrx:kernel:generic:Pictured:pictureContent", 0, newValue);
310   }
311
312 // ----------------------------------------------------------------------------
313
// Instance/ImplAttributeGet0_1
314
// ----------------------------------------------------------------------------
315
public String JavaDoc getPictureContentMimeType (
316   ) {
317     return (String JavaDoc)this.refGetValue("pictureContentMimeType", 0);
318   }
319 // ----------------------------------------------------------------------------
320
// Instance/ImplAttributeSet0_1
321
// ----------------------------------------------------------------------------
322
protected void setPictureContentMimeType(
323     String JavaDoc newValue
324   ) {
325     refSetValue("org:opencrx:kernel:generic:Pictured:pictureContentMimeType", 0, newValue);
326   }
327
328 // ----------------------------------------------------------------------------
329
// Instance/ImplAttributeGet0_1
330
// ----------------------------------------------------------------------------
331
public String JavaDoc getPictureContentName (
332   ) {
333     return (String JavaDoc)this.refGetValue("pictureContentName", 0);
334   }
335 // ----------------------------------------------------------------------------
336
// Instance/ImplAttributeSet0_1
337
// ----------------------------------------------------------------------------
338
protected void setPictureContentName(
339     String JavaDoc newValue
340   ) {
341     refSetValue("org:opencrx:kernel:generic:Pictured:pictureContentName", 0, newValue);
342   }
343
344 // ----------------------------------------------------------------------------
345
// Instance/ImplEnd
346
// ----------------------------------------------------------------------------
347
}
348
Popular Tags