KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > DynamicAny > _DynArrayStub


1 package org.omg.DynamicAny;
2
3
4 /**
5 * org/omg/DynamicAny/_DynArrayStub.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
8 * Saturday, February 9, 2008 9:40:12 AM GMT
9 */

10
11
12 /**
13     * DynArray objects support the manipulation of IDL arrays.
14     * Note that the dimension of the array is contained in the TypeCode which is accessible
15     * through the type attribute. It can also be obtained by calling the component_count operation.
16     */

17 public class _DynArrayStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.DynamicAny.DynArray JavaDoc
18 {
19   final public static java.lang.Class JavaDoc _opsClass = DynArrayOperations JavaDoc.class;
20
21
22
23   /**
24         * Returns the elements of the DynArray.
25         */

26   public org.omg.CORBA.Any JavaDoc[] get_elements ()
27   {
28       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_elements", _opsClass);
29       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
30
31       try {
32          return $self.get_elements ();
33       } finally {
34           _servant_postinvoke ($so);
35       }
36   } // get_elements
37

38
39   /**
40         * Sets the DynArray to contain the passed elements.
41         *
42         * @exception TypeMismatch if one or more elements have a type that is inconsistent with the DynArrays TypeCode
43         * @exception InvalidValue if the sequence does not contain the same number of elements as the array dimension
44         */

45   public void set_elements (org.omg.CORBA.Any JavaDoc[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
46   {
47       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("set_elements", _opsClass);
48       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
49
50       try {
51          $self.set_elements (value);
52       } finally {
53           _servant_postinvoke ($so);
54       }
55   } // set_elements
56

57
58   /**
59         * Returns the elements of the DynArray as DynAnys.
60         */

61   public org.omg.DynamicAny.DynAny JavaDoc[] get_elements_as_dyn_any ()
62   {
63       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_elements_as_dyn_any", _opsClass);
64       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
65
66       try {
67          return $self.get_elements_as_dyn_any ();
68       } finally {
69           _servant_postinvoke ($so);
70       }
71   } // get_elements_as_dyn_any
72

73
74   /**
75         * Sets the DynArray to contain the passed elements.
76         *
77         * @exception TypeMismatch if one or more elements have a type that is inconsistent with the DynArrays TypeCode
78         * @exception InvalidValue if the sequence does not contain the same number of elements as the array dimension
79         */

80   public void set_elements_as_dyn_any (org.omg.DynamicAny.DynAny JavaDoc[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
81   {
82       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("set_elements_as_dyn_any", _opsClass);
83       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
84
85       try {
86          $self.set_elements_as_dyn_any (value);
87       } finally {
88           _servant_postinvoke ($so);
89       }
90   } // set_elements_as_dyn_any
91

92
93   /**
94         * Returns the TypeCode associated with this DynAny object.
95         * A DynAny object is created with a TypeCode value assigned to it.
96         * This TypeCode value determines the type of the value handled through the DynAny object.
97         * Note that the TypeCode associated with a DynAny object is initialized at the time the
98         * DynAny is created and cannot be changed during lifetime of the DynAny object.
99         *
100         * @return The TypeCode associated with this DynAny object
101         */

102   public org.omg.CORBA.TypeCode JavaDoc type ()
103   {
104       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("type", _opsClass);
105       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
106
107       try {
108          return $self.type ();
109       } finally {
110           _servant_postinvoke ($so);
111       }
112   } // type
113

114
115   /**
116         * Initializes the value associated with a DynAny object with the value
117         * associated with another DynAny object.
118         * The current position of the target DynAny is set to zero for values that have components
119         * and to -1 for values that do not have components.
120         *
121         * @param dyn_any
122         * @exception TypeMismatch if the type of the passed DynAny is not equivalent to the type of target DynAny
123         */

124   public void assign (org.omg.DynamicAny.DynAny JavaDoc dyn_any) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc
125   {
126       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("assign", _opsClass);
127       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
128
129       try {
130          $self.assign (dyn_any);
131       } finally {
132           _servant_postinvoke ($so);
133       }
134   } // assign
135

136
137   /**
138         * Initializes the value associated with a DynAny object with the value contained in an any.
139         * The current position of the target DynAny is set to zero for values that have components
140         * and to -1 for values that do not have components.
141         *
142         * @exception TypeMismatch if the type of the passed Any is not equivalent to the type of target DynAny
143         * @exception InvalidValue if the passed Any does not contain a legal value (such as a null string)
144         */

145   public void from_any (org.omg.CORBA.Any JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
146   {
147       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("from_any", _opsClass);
148       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
149
150       try {
151          $self.from_any (value);
152       } finally {
153           _servant_postinvoke ($so);
154       }
155   } // from_any
156

157
158   /**
159         * Creates an any value from a DynAny object.
160         * A copy of the TypeCode associated with the DynAny object is assigned to the resulting any.
161         * The value associated with the DynAny object is copied into the any.
162         *
163         * @return a new Any object with the same value and TypeCode
164         */

165   public org.omg.CORBA.Any JavaDoc to_any ()
166   {
167       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("to_any", _opsClass);
168       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
169
170       try {
171          return $self.to_any ();
172       } finally {
173           _servant_postinvoke ($so);
174       }
175   } // to_any
176

177
178   /**
179         * Compares two DynAny values for equality.
180         * Two DynAny values are equal if their TypeCodes are equivalent and, recursively, all component DynAnys
181         * have equal values.
182         * The current position of the two DynAnys being compared has no effect on the result of equal.
183         *
184         * @return true of the DynAnys are equal, false otherwise
185         */

186   public boolean equal (org.omg.DynamicAny.DynAny JavaDoc dyn_any)
187   {
188       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("equal", _opsClass);
189       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
190
191       try {
192          return $self.equal (dyn_any);
193       } finally {
194           _servant_postinvoke ($so);
195       }
196   } // equal
197

198
199   /**
200         * Destroys a DynAny object.
201         * This operation frees any resources used to represent the data value associated with a DynAny object.
202         * It must be invoked on references obtained from one of the creation operations on the ORB interface
203         * or on a reference returned by DynAny.copy() to avoid resource leaks.
204         * Invoking destroy on component DynAny objects (for example, on objects returned by the
205         * current_component operation) does nothing.
206         * Destruction of a DynAny object implies destruction of all DynAny objects obtained from it.
207         * That is, references to components of a destroyed DynAny become invalid.
208         * Invocations on such references raise OBJECT_NOT_EXIST.
209         * It is possible to manipulate a component of a DynAny beyond the life time of the DynAny
210         * from which the component was obtained by making a copy of the component with the copy operation
211         * before destroying the DynAny from which the component was obtained.
212         */

213   public void destroy ()
214   {
215       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("destroy", _opsClass);
216       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
217
218       try {
219          $self.destroy ();
220       } finally {
221           _servant_postinvoke ($so);
222       }
223   } // destroy
224

225
226   /**
227         * Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
228         * The operation is polymorphic, that is, invoking it on one of the types derived from DynAny,
229         * such as DynStruct, creates the derived type but returns its reference as the DynAny base type.
230         *
231         * @return a deep copy of the DynAny object
232         */

233   public org.omg.DynamicAny.DynAny JavaDoc copy ()
234   {
235       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("copy", _opsClass);
236       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
237
238       try {
239          return $self.copy ();
240       } finally {
241           _servant_postinvoke ($so);
242       }
243   } // copy
244

245
246   /**
247         * Inserts a boolean value into the DynAny.
248         *
249         * @exception InvalidValue if this DynAny has components but has a current position of -1
250         * @exception TypeMismatch if called on a DynAny whose current component itself has components
251         */

252   public void insert_boolean (boolean value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
253   {
254       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_boolean", _opsClass);
255       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
256
257       try {
258          $self.insert_boolean (value);
259       } finally {
260           _servant_postinvoke ($so);
261       }
262   } // insert_boolean
263

264
265   /**
266         * Inserts a byte value into the DynAny. The IDL octet data type is mapped to the Java byte data type.
267         *
268         * @exception InvalidValue if this DynAny has components but has a current position of -1
269         * @exception TypeMismatch if called on a DynAny whose current component itself has components
270         */

271   public void insert_octet (byte value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
272   {
273       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_octet", _opsClass);
274       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
275
276       try {
277          $self.insert_octet (value);
278       } finally {
279           _servant_postinvoke ($so);
280       }
281   } // insert_octet
282

283
284   /**
285         * Inserts a char value into the DynAny.
286         *
287         * @exception InvalidValue if this DynAny has components but has a current position of -1
288         * @exception TypeMismatch if called on a DynAny whose current component itself has components
289         */

290   public void insert_char (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
291   {
292       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_char", _opsClass);
293       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
294
295       try {
296          $self.insert_char (value);
297       } finally {
298           _servant_postinvoke ($so);
299       }
300   } // insert_char
301

302
303   /**
304         * Inserts a short value into the DynAny.
305         *
306         * @exception InvalidValue if this DynAny has components but has a current position of -1
307         * @exception TypeMismatch if called on a DynAny whose current component itself has components
308         */

309   public void insert_short (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
310   {
311       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_short", _opsClass);
312       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
313
314       try {
315          $self.insert_short (value);
316       } finally {
317           _servant_postinvoke ($so);
318       }
319   } // insert_short
320

321
322   /**
323         * Inserts a short value into the DynAny. The IDL ushort data type is mapped to the Java short data type.
324         *
325         * @exception InvalidValue if this DynAny has components but has a current position of -1
326         * @exception TypeMismatch if called on a DynAny whose current component itself has components
327         */

328   public void insert_ushort (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
329   {
330       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_ushort", _opsClass);
331       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
332
333       try {
334          $self.insert_ushort (value);
335       } finally {
336           _servant_postinvoke ($so);
337       }
338   } // insert_ushort
339

340
341   /**
342         * Inserts an integer value into the DynAny. The IDL long data type is mapped to the Java int data type.
343         *
344         * @exception InvalidValue if this DynAny has components but has a current position of -1
345         * @exception TypeMismatch if called on a DynAny whose current component itself has components
346         */

347   public void insert_long (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
348   {
349       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_long", _opsClass);
350       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
351
352       try {
353          $self.insert_long (value);
354       } finally {
355           _servant_postinvoke ($so);
356       }
357   } // insert_long
358

359
360   /**
361         * Inserts an integer value into the DynAny. The IDL ulong data type is mapped to the Java int data type.
362         *
363         * @exception InvalidValue if this DynAny has components but has a current position of -1
364         * @exception TypeMismatch if called on a DynAny whose current component itself has components
365         */

366   public void insert_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
367   {
368       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_ulong", _opsClass);
369       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
370
371       try {
372          $self.insert_ulong (value);
373       } finally {
374           _servant_postinvoke ($so);
375       }
376   } // insert_ulong
377

378
379   /**
380         * Inserts a float value into the DynAny.
381         *
382         * @exception InvalidValue if this DynAny has components but has a current position of -1
383         * @exception TypeMismatch if called on a DynAny whose current component itself has components
384         */

385   public void insert_float (float value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
386   {
387       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_float", _opsClass);
388       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
389
390       try {
391          $self.insert_float (value);
392       } finally {
393           _servant_postinvoke ($so);
394       }
395   } // insert_float
396

397
398   /**
399         * Inserts a double value into the DynAny.
400         *
401         * @exception InvalidValue if this DynAny has components but has a current position of -1
402         * @exception TypeMismatch if called on a DynAny whose current component itself has components
403         */

404   public void insert_double (double value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
405   {
406       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_double", _opsClass);
407       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
408
409       try {
410          $self.insert_double (value);
411       } finally {
412           _servant_postinvoke ($so);
413       }
414   } // insert_double
415

416
417   /**
418         * Inserts a string value into the DynAny.
419         * Both bounded and unbounded strings are inserted using this method.
420         *
421         * @exception InvalidValue if this DynAny has components but has a current position of -1
422         * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
423         * @exception TypeMismatch if called on a DynAny whose current component itself has components
424         */

425   public void insert_string (String JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
426   {
427       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_string", _opsClass);
428       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
429
430       try {
431          $self.insert_string (value);
432       } finally {
433           _servant_postinvoke ($so);
434       }
435   } // insert_string
436

437
438   /**
439         * Inserts a reference to a CORBA object into the DynAny.
440         *
441         * @exception InvalidValue if this DynAny has components but has a current position of -1
442         * @exception TypeMismatch if called on a DynAny whose current component itself has components
443         */

444   public void insert_reference (org.omg.CORBA.Object JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
445   {
446       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_reference", _opsClass);
447       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
448
449       try {
450          $self.insert_reference (value);
451       } finally {
452           _servant_postinvoke ($so);
453       }
454   } // insert_reference
455

456
457   /**
458         * Inserts a TypeCode object into the DynAny.
459         *
460         * @exception InvalidValue if this DynAny has components but has a current position of -1
461         * @exception TypeMismatch if called on a DynAny whose current component itself has components
462         */

463   public void insert_typecode (org.omg.CORBA.TypeCode JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
464   {
465       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_typecode", _opsClass);
466       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
467
468       try {
469          $self.insert_typecode (value);
470       } finally {
471           _servant_postinvoke ($so);
472       }
473   } // insert_typecode
474

475
476   /**
477         * Inserts a long value into the DynAny. The IDL long long data type is mapped to the Java long data type.
478         *
479         * @exception InvalidValue if this DynAny has components but has a current position of -1
480         * @exception TypeMismatch if called on a DynAny whose current component itself has components
481         */

482   public void insert_longlong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
483   {
484       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_longlong", _opsClass);
485       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
486
487       try {
488          $self.insert_longlong (value);
489       } finally {
490           _servant_postinvoke ($so);
491       }
492   } // insert_longlong
493

494
495   /**
496         * Inserts a long value into the DynAny.
497         * The IDL unsigned long long data type is mapped to the Java long data type.
498         *
499         * @exception InvalidValue if this DynAny has components but has a current position of -1
500         * @exception TypeMismatch if called on a DynAny whose current component itself has components
501         */

502   public void insert_ulonglong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
503   {
504       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_ulonglong", _opsClass);
505       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
506
507       try {
508          $self.insert_ulonglong (value);
509       } finally {
510           _servant_postinvoke ($so);
511       }
512   } // insert_ulonglong
513

514
515   /**
516         * Inserts a char value into the DynAny. The IDL wchar data type is mapped to the Java char data type.
517         *
518         * @exception InvalidValue if this DynAny has components but has a current position of -1
519         * @exception TypeMismatch if called on a DynAny whose current component itself has components
520         */

521   public void insert_wchar (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
522   {
523       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_wchar", _opsClass);
524       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
525
526       try {
527          $self.insert_wchar (value);
528       } finally {
529           _servant_postinvoke ($so);
530       }
531   } // insert_wchar
532

533
534   /**
535         * Inserts a string value into the DynAny.
536         * Both bounded and unbounded strings are inserted using this method.
537         *
538         * @exception InvalidValue if this DynAny has components but has a current position of -1
539         * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
540         */

541   public void insert_wstring (String JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
542   {
543       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_wstring", _opsClass);
544       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
545
546       try {
547          $self.insert_wstring (value);
548       } finally {
549           _servant_postinvoke ($so);
550       }
551   } // insert_wstring
552

553
554   /**
555         * Inserts an Any value into the Any represented by this DynAny.
556         *
557         * @exception InvalidValue if this DynAny has components but has a current position of -1
558         * @exception TypeMismatch if called on a DynAny whose current component itself has components
559         */

560   public void insert_any (org.omg.CORBA.Any JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
561   {
562       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_any", _opsClass);
563       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
564
565       try {
566          $self.insert_any (value);
567       } finally {
568           _servant_postinvoke ($so);
569       }
570   } // insert_any
571

572
573   /**
574         * Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
575         *
576         * @exception InvalidValue if this DynAny has components but has a current position of -1
577         * @exception TypeMismatch if called on a DynAny whose current component itself has components
578         */

579   public void insert_dyn_any (org.omg.DynamicAny.DynAny JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
580   {
581       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_dyn_any", _opsClass);
582       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
583
584       try {
585          $self.insert_dyn_any (value);
586       } finally {
587           _servant_postinvoke ($so);
588       }
589   } // insert_dyn_any
590

591
592   /**
593         * Inserts a reference to a Serializable object into this DynAny.
594         * The IDL ValueBase type is mapped to the Java Serializable type.
595         *
596         * @exception InvalidValue if this DynAny has components but has a current position of -1
597         * @exception TypeMismatch if called on a DynAny whose current component itself has components
598         */

599   public void insert_val (java.io.Serializable JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
600   {
601       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_val", _opsClass);
602       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
603
604       try {
605          $self.insert_val (value);
606       } finally {
607           _servant_postinvoke ($so);
608       }
609   } // insert_val
610

611
612   /**
613         * Extracts the boolean value from this DynAny.
614         *
615         * @exception TypeMismatch if the accessed component in the DynAny is of a type
616         * that is not equivalent to the requested type.
617         * @exception TypeMismatch if called on a DynAny whose current component itself has components
618         * @exception InvalidValue if this DynAny has components but has a current position of -1
619         */

620   public boolean get_boolean () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
621   {
622       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_boolean", _opsClass);
623       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
624
625       try {
626          return $self.get_boolean ();
627       } finally {
628           _servant_postinvoke ($so);
629       }
630   } // get_boolean
631

632
633   /**
634         * Extracts the byte value from this DynAny. The IDL octet data type is mapped to the Java byte data type.
635         *
636         * @exception TypeMismatch if the accessed component in the DynAny is of a type
637         * that is not equivalent to the requested type.
638         * @exception TypeMismatch if called on a DynAny whose current component itself has components
639         * @exception InvalidValue if this DynAny has components but has a current position of -1
640         */

641   public byte get_octet () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
642   {
643       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_octet", _opsClass);
644       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
645
646       try {
647          return $self.get_octet ();
648       } finally {
649           _servant_postinvoke ($so);
650       }
651   } // get_octet
652

653
654   /**
655         * Extracts the char value from this DynAny.
656         *
657         * @exception TypeMismatch if the accessed component in the DynAny is of a type
658         * that is not equivalent to the requested type.
659         * @exception TypeMismatch if called on a DynAny whose current component itself has components
660         * @exception InvalidValue if this DynAny has components but has a current position of -1
661         */

662   public char get_char () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
663   {
664       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_char", _opsClass);
665       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
666
667       try {
668          return $self.get_char ();
669       } finally {
670           _servant_postinvoke ($so);
671       }
672   } // get_char
673

674
675   /**
676         * Extracts the short value from this DynAny.
677         *
678         * @exception TypeMismatch if the accessed component in the DynAny is of a type
679         * that is not equivalent to the requested type.
680         * @exception TypeMismatch if called on a DynAny whose current component itself has components
681         * @exception InvalidValue if this DynAny has components but has a current position of -1
682         */

683   public short get_short () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
684   {
685       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_short", _opsClass);
686       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
687
688       try {
689          return $self.get_short ();
690       } finally {
691           _servant_postinvoke ($so);
692       }
693   } // get_short
694

695
696   /**
697         * Extracts the short value from this DynAny. The IDL ushort data type is mapped to the Java short data type.
698         *
699         * @exception TypeMismatch if the accessed component in the DynAny is of a type
700         * that is not equivalent to the requested type.
701         * @exception TypeMismatch if called on a DynAny whose current component itself has components
702         * @exception InvalidValue if this DynAny has components but has a current position of -1
703         */

704   public short get_ushort () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
705   {
706       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_ushort", _opsClass);
707       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
708
709       try {
710          return $self.get_ushort ();
711       } finally {
712           _servant_postinvoke ($so);
713       }
714   } // get_ushort
715

716
717   /**
718         * Extracts the integer value from this DynAny. The IDL long data type is mapped to the Java int data type.
719         *
720         * @exception TypeMismatch if the accessed component in the DynAny is of a type
721         * that is not equivalent to the requested type.
722         * @exception TypeMismatch if called on a DynAny whose current component itself has components
723         * @exception InvalidValue if this DynAny has components but has a current position of -1
724         */

725   public int get_long () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
726   {
727       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_long", _opsClass);
728       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
729
730       try {
731          return $self.get_long ();
732       } finally {
733           _servant_postinvoke ($so);
734       }
735   } // get_long
736

737
738   /**
739         * Extracts the integer value from this DynAny. The IDL ulong data type is mapped to the Java int data type.
740         *
741         * @exception TypeMismatch if the accessed component in the DynAny is of a type
742         * that is not equivalent to the requested type.
743         * @exception TypeMismatch if called on a DynAny whose current component itself has components
744         * @exception InvalidValue if this DynAny has components but has a current position of -1
745         */

746   public int get_ulong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
747   {
748       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_ulong", _opsClass);
749       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
750
751       try {
752          return $self.get_ulong ();
753       } finally {
754           _servant_postinvoke ($so);
755       }
756   } // get_ulong
757

758
759   /**
760         * Extracts the float value from this DynAny.
761         *
762         * @exception TypeMismatch if the accessed component in the DynAny is of a type
763         * that is not equivalent to the requested type.
764         * @exception TypeMismatch if called on a DynAny whose current component itself has components
765         * @exception InvalidValue if this DynAny has components but has a current position of -1
766         */

767   public float get_float () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
768   {
769       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_float", _opsClass);
770       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
771
772       try {
773          return $self.get_float ();
774       } finally {
775           _servant_postinvoke ($so);
776       }
777   } // get_float
778

779
780   /**
781         * Extracts the double value from this DynAny.
782         *
783         * @exception TypeMismatch if the accessed component in the DynAny is of a type
784         * that is not equivalent to the requested type.
785         * @exception TypeMismatch if called on a DynAny whose current component itself has components
786         * @exception InvalidValue if this DynAny has components but has a current position of -1
787         */

788   public double get_double () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
789   {
790       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_double", _opsClass);
791       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
792
793       try {
794          return $self.get_double ();
795       } finally {
796           _servant_postinvoke ($so);
797       }
798   } // get_double
799

800
801   /**
802         * Extracts the string value from this DynAny.
803         * Both bounded and unbounded strings are extracted using this method.
804         *
805         * @exception TypeMismatch if the accessed component in the DynAny is of a type
806         * that is not equivalent to the requested type.
807         * @exception TypeMismatch if called on a DynAny whose current component itself has components
808         * @exception InvalidValue if this DynAny has components but has a current position of -1
809         */

810   public String JavaDoc get_string () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
811   {
812       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_string", _opsClass);
813       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
814
815       try {
816          return $self.get_string ();
817       } finally {
818           _servant_postinvoke ($so);
819       }
820   } // get_string
821

822
823   /**
824         * Extracts the reference to a CORBA Object from this DynAny.
825         *
826         * @exception TypeMismatch if the accessed component in the DynAny is of a type
827         * that is not equivalent to the requested type.
828         * @exception TypeMismatch if called on a DynAny whose current component itself has components
829         * @exception InvalidValue if this DynAny has components but has a current position of -1
830         */

831   public org.omg.CORBA.Object JavaDoc get_reference () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
832   {
833       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_reference", _opsClass);
834       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
835
836       try {
837          return $self.get_reference ();
838       } finally {
839           _servant_postinvoke ($so);
840       }
841   } // get_reference
842

843
844   /**
845         * Extracts the TypeCode object from this DynAny.
846         *
847         * @exception TypeMismatch if the accessed component in the DynAny is of a type
848         * that is not equivalent to the requested type.
849         * @exception TypeMismatch if called on a DynAny whose current component itself has components
850         * @exception InvalidValue if this DynAny has components but has a current position of -1
851         */

852   public org.omg.CORBA.TypeCode JavaDoc get_typecode () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
853   {
854       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_typecode", _opsClass);
855       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
856
857       try {
858          return $self.get_typecode ();
859       } finally {
860           _servant_postinvoke ($so);
861       }
862   } // get_typecode
863

864
865   /**
866         * Extracts the long value from this DynAny. The IDL long long data type is mapped to the Java long data type.
867         *
868         * @exception TypeMismatch if the accessed component in the DynAny is of a type
869         * that is not equivalent to the requested type.
870         * @exception TypeMismatch if called on a DynAny whose current component itself has components
871         * @exception InvalidValue if this DynAny has components but has a current position of -1
872         */

873   public long get_longlong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
874   {
875       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_longlong", _opsClass);
876       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
877
878       try {
879          return $self.get_longlong ();
880       } finally {
881           _servant_postinvoke ($so);
882       }
883   } // get_longlong
884

885
886   /**
887         * Extracts the long value from this DynAny.
888         * The IDL unsigned long long data type is mapped to the Java long data type.
889         *
890         * @exception TypeMismatch if the accessed component in the DynAny is of a type
891         * that is not equivalent to the requested type.
892         * @exception TypeMismatch if called on a DynAny whose current component itself has components
893         * @exception InvalidValue if this DynAny has components but has a current position of -1
894         */

895   public long get_ulonglong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
896   {
897       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_ulonglong", _opsClass);
898       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
899
900       try {
901          return $self.get_ulonglong ();
902       } finally {
903           _servant_postinvoke ($so);
904       }
905   } // get_ulonglong
906

907
908   /**
909         * Extracts the long value from this DynAny. The IDL wchar data type is mapped to the Java char data type.
910         *
911         * @exception TypeMismatch if the accessed component in the DynAny is of a type
912         * that is not equivalent to the requested type.
913         * @exception TypeMismatch if called on a DynAny whose current component itself has components
914         * @exception InvalidValue if this DynAny has components but has a current position of -1
915         */

916   public char get_wchar () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
917   {
918       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_wchar", _opsClass);
919       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
920
921       try {
922          return $self.get_wchar ();
923       } finally {
924           _servant_postinvoke ($so);
925       }
926   } // get_wchar
927

928
929   /**
930         * Extracts the string value from this DynAny.
931         * Both bounded and unbounded strings are extracted using this method.
932         *
933         * @exception TypeMismatch if the accessed component in the DynAny is of a type
934         * that is not equivalent to the requested type.
935         * @exception TypeMismatch if called on a DynAny whose current component itself has components
936         */

937   public String JavaDoc get_wstring () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
938   {
939       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_wstring", _opsClass);
940       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
941
942       try {
943          return $self.get_wstring ();
944       } finally {
945           _servant_postinvoke ($so);
946       }
947   } // get_wstring
948

949
950   /**
951         * Extracts an Any value contained in the Any represented by this DynAny.
952         *
953         * @exception TypeMismatch if the accessed component in the DynAny is of a type
954         * that is not equivalent to the requested type.
955         * @exception TypeMismatch if called on a DynAny whose current component itself has components
956         * @exception InvalidValue if this DynAny has components but has a current position of -1
957         */

958   public org.omg.CORBA.Any JavaDoc get_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
959   {
960       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_any", _opsClass);
961       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
962
963       try {
964          return $self.get_any ();
965       } finally {
966           _servant_postinvoke ($so);
967       }
968   } // get_any
969

970
971   /**
972         * Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped
973         * into a new DynAny.
974         *
975         * @exception TypeMismatch if the accessed component in the DynAny is of a type
976         * that is not equivalent to the requested type.
977         * @exception TypeMismatch if called on a DynAny whose current component itself has components
978         * @exception InvalidValue if this DynAny has components but has a current position of -1
979         */

980   public org.omg.DynamicAny.DynAny JavaDoc get_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
981   {
982       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_dyn_any", _opsClass);
983       DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
984
985       try {
986          return $self.get_dyn_any ();
987       } finally {
988           _servant_postinvoke ($so);
989       }
990   } // get_dyn_any
991

992
993   /**
994         * Extracts a Serializable object from this DynAny.
995         * The IDL ValueBase type is mapped to the Java Serializable type.
996         *
997         * @exception TypeMismatch if the accessed component in the DynAny is of a type
998         * that is not equivalent to the requested type.
999         * @exception TypeMismatch if called on a DynAny whose current component itself has components
1000        * @exception InvalidValue if this DynAny has components but has a current position of -1
1001        */

1002  public java.io.Serializable JavaDoc get_val () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
1003  {
1004      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_val", _opsClass);
1005      DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
1006
1007      try {
1008         return $self.get_val ();
1009      } finally {
1010          _servant_postinvoke ($so);
1011      }
1012  } // get_val
1013

1014
1015  /**
1016        * Sets the current position to index. The current position is indexed 0 to n-1, that is,
1017        * index zero corresponds to the first component. The operation returns true if the resulting
1018        * current position indicates a component of the DynAny and false if index indicates
1019        * a position that does not correspond to a component.
1020        * Calling seek with a negative index is legal. It sets the current position to -1 to indicate
1021        * no component and returns false. Passing a non-negative index value for a DynAny that does not
1022        * have a component at the corresponding position sets the current position to -1 and returns false.
1023        */

1024  public boolean seek (int index)
1025  {
1026      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("seek", _opsClass);
1027      DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
1028
1029      try {
1030         return $self.seek (index);
1031      } finally {
1032          _servant_postinvoke ($so);
1033      }
1034  } // seek
1035

1036
1037  /**
1038        * Is equivalent to seek(0).
1039        */

1040  public void rewind ()
1041  {
1042      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("rewind", _opsClass);
1043      DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
1044
1045      try {
1046         $self.rewind ();
1047      } finally {
1048          _servant_postinvoke ($so);
1049      }
1050  } // rewind
1051

1052
1053  /**
1054        * Advances the current position to the next component.
1055        * The operation returns true while the resulting current position indicates a component, false otherwise.
1056        * A false return value leaves the current position at -1.
1057        * Invoking next on a DynAny without components leaves the current position at -1 and returns false.
1058        */

1059  public boolean next ()
1060  {
1061      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("next", _opsClass);
1062      DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
1063
1064      try {
1065         return $self.next ();
1066      } finally {
1067          _servant_postinvoke ($so);
1068      }
1069  } // next
1070

1071
1072  /**
1073        * Returns the number of components of a DynAny.
1074        * For a DynAny without components, it returns zero.
1075        * The operation only counts the components at the top level.
1076        * For example, if component_count is invoked on a DynStruct with a single member,
1077        * the return value is 1, irrespective of the type of the member.
1078        * <UL>
1079        * <LI>For sequences, the operation returns the current number of elements.
1080        * <LI>For structures, exceptions, and value types, the operation returns the number of members.
1081        * <LI>For arrays, the operation returns the number of elements.
1082        * <LI>For unions, the operation returns 2 if the discriminator indicates that a named member is active,
1083        * otherwise, it returns 1.
1084        * <LI>For DynFixed and DynEnum, the operation returns zero.
1085        * </UL>
1086        */

1087  public int component_count ()
1088  {
1089      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("component_count", _opsClass);
1090      DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
1091
1092      try {
1093         return $self.component_count ();
1094      } finally {
1095          _servant_postinvoke ($so);
1096      }
1097  } // component_count
1098

1099
1100  /**
1101        * Returns the DynAny for the component at the current position.
1102        * It does not advance the current position, so repeated calls to current_component
1103        * without an intervening call to rewind, next, or seek return the same component.
1104        * The returned DynAny object reference can be used to get/set the value of the current component.
1105        * If the current component represents a complex type, the returned reference can be narrowed
1106        * based on the TypeCode to get the interface corresponding to the to the complex type.
1107        * Calling current_component on a DynAny that cannot have components,
1108        * such as a DynEnum or an empty exception, raises TypeMismatch.
1109        * Calling current_component on a DynAny whose current position is -1 returns a nil reference.
1110        * The iteration operations, together with current_component, can be used
1111        * to dynamically compose an any value. After creating a dynamic any, such as a DynStruct,
1112        * current_component and next can be used to initialize all the components of the value.
1113        * Once the dynamic value is completely initialized, to_any creates the corresponding any value.
1114        *
1115        * @exception TypeMismatch If called on a DynAny that cannot have components,
1116        * such as a DynEnum or an empty exception
1117        */

1118  public org.omg.DynamicAny.DynAny JavaDoc current_component () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc
1119  {
1120      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("current_component", _opsClass);
1121      DynArrayOperations JavaDoc $self = (DynArrayOperations JavaDoc) $so.servant;
1122
1123      try {
1124         return $self.current_component ();
1125      } finally {
1126          _servant_postinvoke ($so);
1127      }
1128  } // current_component
1129

1130  // Type-specific CORBA::Object operations
1131
private static String JavaDoc[] __ids = {
1132    "IDL:omg.org/DynamicAny/DynArray:1.0",
1133    "IDL:omg.org/DynamicAny/DynAny:1.0"};
1134
1135  public String JavaDoc[] _ids ()
1136  {
1137    return (String JavaDoc[])__ids.clone ();
1138  }
1139
1140  private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
1141  {
1142     String JavaDoc str = s.readUTF ();
1143     String JavaDoc[] args = null;
1144     java.util.Properties JavaDoc props = null;
1145     org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
1146     org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
1147     _set_delegate (delegate);
1148  }
1149
1150  private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
1151  {
1152     String JavaDoc[] args = null;
1153     java.util.Properties JavaDoc props = null;
1154     String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
1155     s.writeUTF (str);
1156  }
1157} // class _DynArrayStub
1158
Popular Tags