KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > building1 > cci > AbstractBuildingUnitImpl


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:38:54 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.building1.cci;
14
15 public class AbstractBuildingUnitImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements AbstractBuildingUnit {
18
19   public AbstractBuildingUnitImpl(
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/ImplAttributeGet0_1
28
// ----------------------------------------------------------------------------
29
public String JavaDoc getDescription (
30   ) {
31     return (String JavaDoc)this.refGetValue("description", 0);
32   }
33 // ----------------------------------------------------------------------------
34
// Instance/ImplAttributeSet0_1
35
// ----------------------------------------------------------------------------
36
public void setDescription(
37     String JavaDoc newValue
38   ) {
39     refSetValue("org:opencrx:kernel:building1:AbstractBuildingUnit:description", 0, newValue);
40   }
41
42 // ----------------------------------------------------------------------------
43
// Instance/ImplReferenceSetWithQualifier
44
// ----------------------------------------------------------------------------
45
public void setFacility(
46     java.util.List JavaDoc newValue
47   ) {
48     refSetValue("org:opencrx:kernel:building1:AbstractBuildingUnit:facility", newValue);
49   }
50
51   public void setFacility(
52     org.opencrx.kernel.building1.cci.Facility[] newValue
53   ) {
54     refSetValue("org:opencrx:kernel:building1:AbstractBuildingUnit:facility", newValue);
55   }
56
57 // ----------------------------------------------------------------------------
58
// Instance/ImplReferenceGet0_1WithQualifier
59
// ----------------------------------------------------------------------------
60
public org.opencrx.kernel.building1.cci.Facility getFacility(
61     String JavaDoc id
62   ) {
63     return (org.opencrx.kernel.building1.cci.Facility)refGetValue(
64       "org:opencrx:kernel:building1:AbstractBuildingUnit:facility",
65       id
66     );
67   }
68
69 // ----------------------------------------------------------------------------
70
// Instance/ImplReferenceGet0_nWithFilter
71
// ----------------------------------------------------------------------------
72
public java.util.Collection JavaDoc getFacility(
73   ) {
74     return (java.util.Collection JavaDoc)refGetValue(
75       "org:opencrx:kernel:building1:AbstractBuildingUnit:facility"
76     );
77   }
78
79   public java.util.List JavaDoc getFacility(
80     org.opencrx.kernel.building1.cci.FacilityFilter filter
81   ) {
82     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
83       "org:opencrx:kernel:building1:AbstractBuildingUnit:facility"
84     )).toList(filter);
85   }
86
87 // ----------------------------------------------------------------------------
88
// Instance/ImplReferenceAddWithQualifier
89
// ----------------------------------------------------------------------------
90
public void addFacility (
91     String JavaDoc id,
92     org.opencrx.kernel.building1.cci.Facility newValue
93   ) {
94     refAddValue(
95       "org:opencrx:kernel:building1:AbstractBuildingUnit:facility",
96       id,
97       newValue
98     );
99   }
100
101 // ----------------------------------------------------------------------------
102
// Instance/ImplReferenceAddWithoutQualifier
103
// ----------------------------------------------------------------------------
104
public void addFacility (
105     org.opencrx.kernel.building1.cci.Facility newValue
106   ) {
107     refAddValue(
108       "org:opencrx:kernel:building1:AbstractBuildingUnit:facility",
109       newValue
110     );
111   }
112
113 // ----------------------------------------------------------------------------
114
// Instance/ImplReferenceRemoveWithQualifier
115
// ----------------------------------------------------------------------------
116
public void removeFacility (
117     String JavaDoc id
118   ) {
119     refRemoveValue(
120       "org:opencrx:kernel:building1:AbstractBuildingUnit:facility",
121       id
122     );
123   }
124
125 // ----------------------------------------------------------------------------
126
// Instance/ImplAttributeGet1_1
127
// ----------------------------------------------------------------------------
128
public String JavaDoc getName(
129   ) {
130     return getName(0);
131   }
132
133   protected String JavaDoc getName(
134     int index
135   ) {
136     return (String JavaDoc)this.refGetValue("org:opencrx:kernel:building1:AbstractBuildingUnit:name", index);
137   }
138
139 // ----------------------------------------------------------------------------
140
// Instance/ImplAttributeSet1_1
141
// ----------------------------------------------------------------------------
142
public void setName(
143     String JavaDoc newValue
144   ) {
145     setName(0, newValue);
146   }
147
148   protected void setName(
149     int index,
150     String JavaDoc newValue
151   ) {
152     refSetValue("org:opencrx:kernel:building1:AbstractBuildingUnit:name", index, newValue);
153   }
154 // ----------------------------------------------------------------------------
155
// Instance/ImplAttributeGet0_1
156
// ----------------------------------------------------------------------------
157
public java.math.BigDecimal JavaDoc getSizeInCubicMeter (
158   ) {
159     return (java.math.BigDecimal JavaDoc)this.refGetValue("sizeInCubicMeter", 0);
160   }
161 // ----------------------------------------------------------------------------
162
// Instance/ImplAttributeSet0_1
163
// ----------------------------------------------------------------------------
164
public void setSizeInCubicMeter(
165     java.math.BigDecimal JavaDoc newValue
166   ) {
167     refSetValue("org:opencrx:kernel:building1:AbstractBuildingUnit:sizeInCubicMeter", 0, newValue);
168   }
169
170 // ----------------------------------------------------------------------------
171
// Instance/ImplAttributeGet0_1
172
// ----------------------------------------------------------------------------
173
public java.math.BigDecimal JavaDoc getSizeInSquareMeter (
174   ) {
175     return (java.math.BigDecimal JavaDoc)this.refGetValue("sizeInSquareMeter", 0);
176   }
177 // ----------------------------------------------------------------------------
178
// Instance/ImplAttributeSet0_1
179
// ----------------------------------------------------------------------------
180
public void setSizeInSquareMeter(
181     java.math.BigDecimal JavaDoc newValue
182   ) {
183     refSetValue("org:opencrx:kernel:building1:AbstractBuildingUnit:sizeInSquareMeter", 0, newValue);
184   }
185
186 // ----------------------------------------------------------------------------
187
// Instance/ImplReferenceGet0_1NoQualifier
188
// ----------------------------------------------------------------------------
189
public org.opencrx.kernel.document1.cci.Media getPicture(
190   ) {
191     return (org.opencrx.kernel.document1.cci.Media)refGetValue(
192       "org:opencrx:kernel:generic:Pictured:picture"
193     );
194   }
195
196 // ----------------------------------------------------------------------------
197
// Instance/ImplReferenceSetNoQualifier
198
// ----------------------------------------------------------------------------
199
public void setPicture(
200     org.opencrx.kernel.document1.cci.Media newValue
201   ) {
202     refSetValue(
203       "org:opencrx:kernel:generic:Pictured:picture",
204       newValue
205     );
206   }
207
208 // ----------------------------------------------------------------------------
209
// Instance/ImplReferenceRemoveOptional
210
// ----------------------------------------------------------------------------
211
public void removePicture (
212   ) {
213     refRemoveValue(
214       "org:opencrx:kernel:generic:Pictured:picture"
215     );
216   }
217 // ----------------------------------------------------------------------------
218
// Instance/ImplAttributeGet0_1
219
// ----------------------------------------------------------------------------
220
public byte[] getPictureContent (
221   ) {
222     return (byte[])this.refGetValue("pictureContent", 0);
223   }
224 // ----------------------------------------------------------------------------
225
// Instance/ImplAttributeSet0_1
226
// ----------------------------------------------------------------------------
227
protected void setPictureContent(
228     byte[] newValue
229   ) {
230     refSetValue("org:opencrx:kernel:generic:Pictured:pictureContent", 0, newValue);
231   }
232
233 // ----------------------------------------------------------------------------
234
// Instance/ImplAttributeGet0_1
235
// ----------------------------------------------------------------------------
236
public String JavaDoc getPictureContentMimeType (
237   ) {
238     return (String JavaDoc)this.refGetValue("pictureContentMimeType", 0);
239   }
240 // ----------------------------------------------------------------------------
241
// Instance/ImplAttributeSet0_1
242
// ----------------------------------------------------------------------------
243
protected void setPictureContentMimeType(
244     String JavaDoc newValue
245   ) {
246     refSetValue("org:opencrx:kernel:generic:Pictured:pictureContentMimeType", 0, newValue);
247   }
248
249 // ----------------------------------------------------------------------------
250
// Instance/ImplAttributeGet0_1
251
// ----------------------------------------------------------------------------
252
public String JavaDoc getPictureContentName (
253   ) {
254     return (String JavaDoc)this.refGetValue("pictureContentName", 0);
255   }
256 // ----------------------------------------------------------------------------
257
// Instance/ImplAttributeSet0_1
258
// ----------------------------------------------------------------------------
259
protected void setPictureContentName(
260     String JavaDoc newValue
261   ) {
262     refSetValue("org:opencrx:kernel:generic:Pictured:pictureContentName", 0, newValue);
263   }
264
265 // ----------------------------------------------------------------------------
266
// Instance/ImplEnd
267
// ----------------------------------------------------------------------------
268
}
269
Popular Tags