KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > document1 > cci > MediaImpl


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:57 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.document1.cci;
14
15 public class MediaImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements Media {
18
19   public MediaImpl(
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/ImplAttributeGetStream
28
// ----------------------------------------------------------------------------
29

30   public java.io.InputStream JavaDoc getContent(
31   ) {
32     return (java.io.InputStream JavaDoc)this.refGetValue("org:opencrx:kernel:document1:Media:content");
33   }
34
35   public long getContent(
36     java.io.OutputStream JavaDoc stream,
37     long position
38   ) {
39     return this.refGetValue("org:opencrx:kernel:document1:Media:content", stream, position);
40   }
41
42 // ----------------------------------------------------------------------------
43
// Instance/ImplAttributeSetStream
44
// ----------------------------------------------------------------------------
45

46   public void setContent(
47     java.io.InputStream JavaDoc newValue
48   ) {
49     this.refSetValue("org:opencrx:kernel:document1:Media:content", newValue);
50   }
51
52   public void setContent(
53     java.io.InputStream JavaDoc newValue,
54     long length
55   ) {
56     this.refSetValue("org:opencrx:kernel:document1:Media:content", newValue, length);
57   }
58
59 // ----------------------------------------------------------------------------
60
// Instance/ImplAttributeGet0_1
61
// ----------------------------------------------------------------------------
62
public Long JavaDoc getContentLength (
63   ) {
64     return (Long JavaDoc)this.refGetValue("contentLength", 0);
65   }
66 // ----------------------------------------------------------------------------
67
// Instance/ImplAttributeSet0_1
68
// ----------------------------------------------------------------------------
69
protected void setContentLength(
70     Long JavaDoc newValue
71   ) {
72     refSetValue("org:opencrx:kernel:document1:Media:contentLength", 0, newValue);
73   }
74
75 // ----------------------------------------------------------------------------
76
// Instance/ImplAttributeGet0_1
77
// ----------------------------------------------------------------------------
78
public String JavaDoc getContentMimeType (
79   ) {
80     return (String JavaDoc)this.refGetValue("contentMimeType", 0);
81   }
82 // ----------------------------------------------------------------------------
83
// Instance/ImplAttributeSet0_1
84
// ----------------------------------------------------------------------------
85
public void setContentMimeType(
86     String JavaDoc newValue
87   ) {
88     refSetValue("org:opencrx:kernel:document1:Media:contentMimeType", 0, newValue);
89   }
90
91 // ----------------------------------------------------------------------------
92
// Instance/ImplAttributeGet0_1
93
// ----------------------------------------------------------------------------
94
public String JavaDoc getContentName (
95   ) {
96     return (String JavaDoc)this.refGetValue("contentName", 0);
97   }
98 // ----------------------------------------------------------------------------
99
// Instance/ImplAttributeSet0_1
100
// ----------------------------------------------------------------------------
101
public void setContentName(
102     String JavaDoc newValue
103   ) {
104     refSetValue("org:opencrx:kernel:document1:Media:contentName", 0, newValue);
105   }
106
107 // ----------------------------------------------------------------------------
108
// Instance/ImplAttributeGet0_1
109
// ----------------------------------------------------------------------------
110
public String JavaDoc getDescription (
111   ) {
112     return (String JavaDoc)this.refGetValue("description", 0);
113   }
114 // ----------------------------------------------------------------------------
115
// Instance/ImplAttributeSet0_1
116
// ----------------------------------------------------------------------------
117
public void setDescription(
118     String JavaDoc newValue
119   ) {
120     refSetValue("org:opencrx:kernel:document1:Media:description", 0, newValue);
121   }
122
123 // ----------------------------------------------------------------------------
124
// Instance/ImplAttributeGet1_1
125
// ----------------------------------------------------------------------------
126
public java.util.Date JavaDoc getCreatedAt(
127   ) {
128     return getCreatedAt(0);
129   }
130
131   protected java.util.Date JavaDoc getCreatedAt(
132     int index
133   ) {
134     return (java.util.Date JavaDoc)this.refGetValue("org:openmdx:base:BasicObject:createdAt", index);
135   }
136
137 // ----------------------------------------------------------------------------
138
// Instance/ImplAttributeSet1_1
139
// ----------------------------------------------------------------------------
140
protected void setCreatedAt(
141     java.util.Date JavaDoc newValue
142   ) {
143     setCreatedAt(0, newValue);
144   }
145
146   protected void setCreatedAt(
147     int index,
148     java.util.Date JavaDoc newValue
149   ) {
150     refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue);
151   }
152 // ----------------------------------------------------------------------------
153
// Instance/ImplAttributeGetSet
154
// ----------------------------------------------------------------------------
155
public java.util.Set JavaDoc getCreatedBy (
156   ) {
157     return (java.util.Set JavaDoc)this.refGetValue("createdBy");
158   }
159 // ----------------------------------------------------------------------------
160
// Instance/ImplAttributeSetSet
161
// ----------------------------------------------------------------------------
162
protected void setCreatedBy(
163     java.util.Set JavaDoc newValue
164   ) {
165     refSetValue("org:openmdx:base:BasicObject:createdBy", newValue);
166   }
167
168   protected void setCreatedBy(
169     String JavaDoc[] newValue
170   ) {
171     refSetValue("org:openmdx:base:BasicObject:createdBy", newValue);
172   }
173
174 // ----------------------------------------------------------------------------
175
// Instance/ImplAttributeGet1_1
176
// ----------------------------------------------------------------------------
177
public java.util.Date JavaDoc getModifiedAt(
178   ) {
179     return getModifiedAt(0);
180   }
181
182   protected java.util.Date JavaDoc getModifiedAt(
183     int index
184   ) {
185     return (java.util.Date JavaDoc)this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index);
186   }
187
188 // ----------------------------------------------------------------------------
189
// Instance/ImplAttributeSet1_1
190
// ----------------------------------------------------------------------------
191
protected void setModifiedAt(
192     java.util.Date JavaDoc newValue
193   ) {
194     setModifiedAt(0, newValue);
195   }
196
197   protected void setModifiedAt(
198     int index,
199     java.util.Date JavaDoc newValue
200   ) {
201     refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue);
202   }
203 // ----------------------------------------------------------------------------
204
// Instance/ImplAttributeGetSet
205
// ----------------------------------------------------------------------------
206
public java.util.Set JavaDoc getModifiedBy (
207   ) {
208     return (java.util.Set JavaDoc)this.refGetValue("modifiedBy");
209   }
210 // ----------------------------------------------------------------------------
211
// Instance/ImplAttributeSetSet
212
// ----------------------------------------------------------------------------
213
protected void setModifiedBy(
214     java.util.Set JavaDoc newValue
215   ) {
216     refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue);
217   }
218
219   protected void setModifiedBy(
220     String JavaDoc[] newValue
221   ) {
222     refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue);
223   }
224
225 // ----------------------------------------------------------------------------
226
// Instance/ImplReferenceSetWithQualifier
227
// ----------------------------------------------------------------------------
228
protected void setContext(
229     java.util.List JavaDoc newValue
230   ) {
231     refSetValue("org:openmdx:base:ContextCapable:context", newValue);
232   }
233
234   protected void setContext(
235     org.openmdx.base.cci.Context[] newValue
236   ) {
237     refSetValue("org:openmdx:base:ContextCapable:context", newValue);
238   }
239
240 // ----------------------------------------------------------------------------
241
// Instance/ImplReferenceGet0_1WithQualifier
242
// ----------------------------------------------------------------------------
243
public org.openmdx.base.cci.Context getContext(
244     String JavaDoc id
245   ) {
246     return (org.openmdx.base.cci.Context)refGetValue(
247       "org:openmdx:base:ContextCapable:context",
248       id
249     );
250   }
251
252 // ----------------------------------------------------------------------------
253
// Instance/ImplReferenceGet0_nNoFilter
254
// ----------------------------------------------------------------------------
255
public java.util.Collection JavaDoc getContext(
256   ) {
257     return (java.util.Collection JavaDoc)refGetValue(
258       "org:openmdx:base:ContextCapable:context"
259     );
260   }
261
262 // ----------------------------------------------------------------------------
263
// Instance/ImplReferenceAddWithQualifier
264
// ----------------------------------------------------------------------------
265
protected void addContext (
266     String JavaDoc id,
267     org.openmdx.base.cci.Context newValue
268   ) {
269     refAddValue(
270       "org:openmdx:base:ContextCapable:context",
271       id,
272       newValue
273     );
274   }
275
276 // ----------------------------------------------------------------------------
277
// Instance/ImplReferenceAddWithoutQualifier
278
// ----------------------------------------------------------------------------
279
protected void addContext (
280     org.openmdx.base.cci.Context newValue
281   ) {
282     refAddValue(
283       "org:openmdx:base:ContextCapable:context",
284       newValue
285     );
286   }
287
288 // ----------------------------------------------------------------------------
289
// Instance/ImplReferenceRemoveWithQualifier
290
// ----------------------------------------------------------------------------
291
protected void removeContext (
292     String JavaDoc id
293   ) {
294     refRemoveValue(
295       "org:openmdx:base:ContextCapable:context",
296       id
297     );
298   }
299
300 // ----------------------------------------------------------------------------
301
// Instance/ImplAttributeGet1_1
302
// ----------------------------------------------------------------------------
303
public String JavaDoc getIdentity(
304   ) {
305     return getIdentity(0);
306   }
307
308   protected String JavaDoc getIdentity(
309     int index
310   ) {
311     return (String JavaDoc)this.refGetValue("org:openmdx:base:ExtentCapable:identity", index);
312   }
313
314 // ----------------------------------------------------------------------------
315
// Instance/ImplAttributeSet1_1
316
// ----------------------------------------------------------------------------
317
protected void setIdentity(
318     String JavaDoc newValue
319   ) {
320     setIdentity(0, newValue);
321   }
322
323   protected void setIdentity(
324     int index,
325     String JavaDoc newValue
326   ) {
327     refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue);
328   }
329 // ----------------------------------------------------------------------------
330
// Instance/ImplReferenceSetWithQualifier
331
// ----------------------------------------------------------------------------
332
protected void setView(
333     java.util.List JavaDoc newValue
334   ) {
335     refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue);
336   }
337
338   protected void setView(
339     org.openmdx.compatibility.view1.cci.View[] newValue
340   ) {
341     refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue);
342   }
343
344 // ----------------------------------------------------------------------------
345
// Instance/ImplReferenceGet0_1WithQualifier
346
// ----------------------------------------------------------------------------
347
public org.openmdx.compatibility.view1.cci.View getView(
348     String JavaDoc namespace
349   ) {
350     return (org.openmdx.compatibility.view1.cci.View)refGetValue(
351       "org:openmdx:compatibility:view1:ViewCapable:view",
352       namespace
353     );
354   }
355
356 // ----------------------------------------------------------------------------
357
// Instance/ImplReferenceGet0_nWithFilter
358
// ----------------------------------------------------------------------------
359
public java.util.Collection JavaDoc getView(
360   ) {
361     return (java.util.Collection JavaDoc)refGetValue(
362       "org:openmdx:compatibility:view1:ViewCapable:view"
363     );
364   }
365
366   public java.util.List JavaDoc getView(
367     org.openmdx.compatibility.view1.cci.ViewFilter filter
368   ) {
369     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
370       "org:openmdx:compatibility:view1:ViewCapable:view"
371     )).toList(filter);
372   }
373
374 // ----------------------------------------------------------------------------
375
// Instance/ImplReferenceAddWithQualifier
376
// ----------------------------------------------------------------------------
377
protected void addView (
378     String JavaDoc namespace,
379     org.openmdx.compatibility.view1.cci.View newValue
380   ) {
381     refAddValue(
382       "org:openmdx:compatibility:view1:ViewCapable:view",
383       namespace,
384       newValue
385     );
386   }
387
388 // ----------------------------------------------------------------------------
389
// Instance/ImplReferenceAddWithoutQualifier
390
// ----------------------------------------------------------------------------
391
protected void addView (
392     org.openmdx.compatibility.view1.cci.View newValue
393   ) {
394     refAddValue(
395       "org:openmdx:compatibility:view1:ViewCapable:view",
396       newValue
397     );
398   }
399
400 // ----------------------------------------------------------------------------
401
// Instance/ImplReferenceRemoveWithQualifier
402
// ----------------------------------------------------------------------------
403
protected void removeView (
404     String JavaDoc namespace
405   ) {
406     refRemoveValue(
407       "org:openmdx:compatibility:view1:ViewCapable:view",
408       namespace
409     );
410   }
411
412 // ----------------------------------------------------------------------------
413
// Instance/ImplEnd
414
// ----------------------------------------------------------------------------
415
}
416
Popular Tags