KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.DynamicAny;
2
3
4 /**
5 * org/omg/DynamicAny/_DynAnyStub.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:11 AM GMT
9 */

10
11
12 /**
13     * Any values can be dynamically interpreted (traversed) and constructed through DynAny objects.
14     * A DynAny object is associated with a data value which corresponds to a copy of the value
15     * inserted into an any.
16     * <P>A DynAny object may be viewed as an ordered collection of component DynAnys.
17     * For DynAnys representing a basic type, such as long, or a type without components,
18     * such as an empty exception, the ordered collection of components is empty.
19     * Each DynAny object maintains the notion of a current position into its collection
20     * of component DynAnys. The current position is identified by an index value that runs
21     * from 0 to n-1, where n is the number of components.
22     * The special index value -1 indicates a current position that points nowhere.
23     * For values that cannot have a current position (such as an empty exception),
24     * the index value is fixed at -1.
25     * If a DynAny is initialized with a value that has components, the index is initialized to 0.
26     * After creation of an uninitialized DynAny (that is, a DynAny that has no value but a TypeCode
27     * that permits components), the current position depends on the type of value represented by
28     * the DynAny. (The current position is set to 0 or -1, depending on whether the new DynAny
29     * gets default values for its components.)
30     * <P>The iteration operations rewind, seek, and next can be used to change the current position
31     * and the current_component operation returns the component at the current position.
32     * The component_count operation returns the number of components of a DynAny.
33     * Collectively, these operations enable iteration over the components of a DynAny, for example,
34     * to (recursively) examine its contents.
35     * <P>A constructed DynAny object is a DynAny object associated with a constructed type.
36     * There is a different interface, inheriting from the DynAny interface, associated with
37     * each kind of constructed type in IDL (fixed, enum, struct, sequence, union, array,
38     * exception, and value type).
39     * <P>A constructed DynAny object exports operations that enable the creation of new DynAny objects,
40     * each of them associated with a component of the constructed data value.
41     * As an example, a DynStruct is associated with a struct value. This means that the DynStruct
42     * may be seen as owning an ordered collection of components, one for each structure member.
43     * The DynStruct object exports operations that enable the creation of new DynAny objects,
44     * each of them associated with a member of the struct.
45     * <P>If a DynAny object has been obtained from another (constructed) DynAny object,
46     * such as a DynAny representing a structure member that was created from a DynStruct,
47     * the member DynAny is logically contained in the DynStruct.
48     * Calling an insert or get operation leaves the current position unchanged.
49     * Destroying a top-level DynAny object (one that was not obtained as a component of another DynAny)
50     * also destroys any component DynAny objects obtained from it.
51     * Destroying a non-top level DynAny object does nothing.
52     * Invoking operations on a destroyed top-level DynAny or any of its descendants raises OBJECT_NOT_EXIST.
53     * If the programmer wants to destroy a DynAny object but still wants to manipulate some component
54     * of the data value associated with it, then he or she should first create a DynAny for the component
55     * and, after that, make a copy of the created DynAny object.
56     * <P>The behavior of DynAny objects has been defined in order to enable efficient implementations
57     * in terms of allocated memory space and speed of access. DynAny objects are intended to be used
58     * for traversing values extracted from anys or constructing values of anys at runtime.
59     * Their use for other purposes is not recommended.
60     * <P>Insert and get operations are necessary to handle basic DynAny objects
61     * but are also helpful to handle constructed DynAny objects.
62     * Inserting a basic data type value into a constructed DynAny object
63     * implies initializing the current component of the constructed data value
64     * associated with the DynAny object. For example, invoking insert_boolean on a
65     * DynStruct implies inserting a boolean data value at the current position
66     * of the associated struct data value.
67     * A type is consistent for inserting or extracting a value if its TypeCode is equivalent to
68     * the TypeCode contained in the DynAny or, if the DynAny has components, is equivalent to the TypeCode
69     * of the DynAny at the current position.
70     * <P>DynAny and DynAnyFactory objects are intended to be local to the process in which they are
71     * created and used. This means that references to DynAny and DynAnyFactory objects cannot be exported
72     * to other processes, or externalized with ORB.object_to_string().
73     * If any attempt is made to do so, the offending operation will raise a MARSHAL system exception.
74     * Since their interfaces are specified in IDL, DynAny objects export operations defined in the standard
75     * org.omg.CORBA.Object interface. However, any attempt to invoke operations exported through the Object
76     * interface may raise the standard NO_IMPLEMENT exception.
77     * An attempt to use a DynAny object with the DII may raise the NO_IMPLEMENT exception.
78     */

79 public class _DynAnyStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.DynamicAny.DynAny JavaDoc
80 {
81   final public static java.lang.Class JavaDoc _opsClass = DynAnyOperations JavaDoc.class;
82
83
84
85   /**
86         * Returns the TypeCode associated with this DynAny object.
87         * A DynAny object is created with a TypeCode value assigned to it.
88         * This TypeCode value determines the type of the value handled through the DynAny object.
89         * Note that the TypeCode associated with a DynAny object is initialized at the time the
90         * DynAny is created and cannot be changed during lifetime of the DynAny object.
91         *
92         * @return The TypeCode associated with this DynAny object
93         */

94   public org.omg.CORBA.TypeCode JavaDoc type ()
95   {
96       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("type", _opsClass);
97       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
98
99       try {
100          return $self.type ();
101       } finally {
102           _servant_postinvoke ($so);
103       }
104   } // type
105

106
107   /**
108         * Initializes the value associated with a DynAny object with the value
109         * associated with another DynAny object.
110         * The current position of the target DynAny is set to zero for values that have components
111         * and to -1 for values that do not have components.
112         *
113         * @param dyn_any
114         * @exception TypeMismatch if the type of the passed DynAny is not equivalent to the type of target DynAny
115         */

116   public void assign (org.omg.DynamicAny.DynAny JavaDoc dyn_any) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc
117   {
118       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("assign", _opsClass);
119       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
120
121       try {
122          $self.assign (dyn_any);
123       } finally {
124           _servant_postinvoke ($so);
125       }
126   } // assign
127

128
129   /**
130         * Initializes the value associated with a DynAny object with the value contained in an any.
131         * The current position of the target DynAny is set to zero for values that have components
132         * and to -1 for values that do not have components.
133         *
134         * @exception TypeMismatch if the type of the passed Any is not equivalent to the type of target DynAny
135         * @exception InvalidValue if the passed Any does not contain a legal value (such as a null string)
136         */

137   public void from_any (org.omg.CORBA.Any JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
138   {
139       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("from_any", _opsClass);
140       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
141
142       try {
143          $self.from_any (value);
144       } finally {
145           _servant_postinvoke ($so);
146       }
147   } // from_any
148

149
150   /**
151         * Creates an any value from a DynAny object.
152         * A copy of the TypeCode associated with the DynAny object is assigned to the resulting any.
153         * The value associated with the DynAny object is copied into the any.
154         *
155         * @return a new Any object with the same value and TypeCode
156         */

157   public org.omg.CORBA.Any JavaDoc to_any ()
158   {
159       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("to_any", _opsClass);
160       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
161
162       try {
163          return $self.to_any ();
164       } finally {
165           _servant_postinvoke ($so);
166       }
167   } // to_any
168

169
170   /**
171         * Compares two DynAny values for equality.
172         * Two DynAny values are equal if their TypeCodes are equivalent and, recursively, all component DynAnys
173         * have equal values.
174         * The current position of the two DynAnys being compared has no effect on the result of equal.
175         *
176         * @return true of the DynAnys are equal, false otherwise
177         */

178   public boolean equal (org.omg.DynamicAny.DynAny JavaDoc dyn_any)
179   {
180       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("equal", _opsClass);
181       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
182
183       try {
184          return $self.equal (dyn_any);
185       } finally {
186           _servant_postinvoke ($so);
187       }
188   } // equal
189

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

205   public void destroy ()
206   {
207       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("destroy", _opsClass);
208       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
209
210       try {
211          $self.destroy ();
212       } finally {
213           _servant_postinvoke ($so);
214       }
215   } // destroy
216

217
218   /**
219         * Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
220         * The operation is polymorphic, that is, invoking it on one of the types derived from DynAny,
221         * such as DynStruct, creates the derived type but returns its reference as the DynAny base type.
222         *
223         * @return a deep copy of the DynAny object
224         */

225   public org.omg.DynamicAny.DynAny JavaDoc copy ()
226   {
227       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("copy", _opsClass);
228       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
229
230       try {
231          return $self.copy ();
232       } finally {
233           _servant_postinvoke ($so);
234       }
235   } // copy
236

237
238   /**
239         * Inserts a boolean value into the DynAny.
240         *
241         * @exception InvalidValue if this DynAny has components but has a current position of -1
242         * @exception TypeMismatch if called on a DynAny whose current component itself has components
243         */

244   public void insert_boolean (boolean value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
245   {
246       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_boolean", _opsClass);
247       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
248
249       try {
250          $self.insert_boolean (value);
251       } finally {
252           _servant_postinvoke ($so);
253       }
254   } // insert_boolean
255

256
257   /**
258         * Inserts a byte value into the DynAny. The IDL octet data type is mapped to the Java byte data type.
259         *
260         * @exception InvalidValue if this DynAny has components but has a current position of -1
261         * @exception TypeMismatch if called on a DynAny whose current component itself has components
262         */

263   public void insert_octet (byte value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
264   {
265       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_octet", _opsClass);
266       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
267
268       try {
269          $self.insert_octet (value);
270       } finally {
271           _servant_postinvoke ($so);
272       }
273   } // insert_octet
274

275
276   /**
277         * Inserts a char value into the DynAny.
278         *
279         * @exception InvalidValue if this DynAny has components but has a current position of -1
280         * @exception TypeMismatch if called on a DynAny whose current component itself has components
281         */

282   public void insert_char (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
283   {
284       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_char", _opsClass);
285       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
286
287       try {
288          $self.insert_char (value);
289       } finally {
290           _servant_postinvoke ($so);
291       }
292   } // insert_char
293

294
295   /**
296         * Inserts a short value into the DynAny.
297         *
298         * @exception InvalidValue if this DynAny has components but has a current position of -1
299         * @exception TypeMismatch if called on a DynAny whose current component itself has components
300         */

301   public void insert_short (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
302   {
303       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_short", _opsClass);
304       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
305
306       try {
307          $self.insert_short (value);
308       } finally {
309           _servant_postinvoke ($so);
310       }
311   } // insert_short
312

313
314   /**
315         * Inserts a short value into the DynAny. The IDL ushort data type is mapped to the Java short data type.
316         *
317         * @exception InvalidValue if this DynAny has components but has a current position of -1
318         * @exception TypeMismatch if called on a DynAny whose current component itself has components
319         */

320   public void insert_ushort (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
321   {
322       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_ushort", _opsClass);
323       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
324
325       try {
326          $self.insert_ushort (value);
327       } finally {
328           _servant_postinvoke ($so);
329       }
330   } // insert_ushort
331

332
333   /**
334         * Inserts an integer value into the DynAny. The IDL long data type is mapped to the Java int data type.
335         *
336         * @exception InvalidValue if this DynAny has components but has a current position of -1
337         * @exception TypeMismatch if called on a DynAny whose current component itself has components
338         */

339   public void insert_long (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
340   {
341       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_long", _opsClass);
342       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
343
344       try {
345          $self.insert_long (value);
346       } finally {
347           _servant_postinvoke ($so);
348       }
349   } // insert_long
350

351
352   /**
353         * Inserts an integer value into the DynAny. The IDL ulong data type is mapped to the Java int data type.
354         *
355         * @exception InvalidValue if this DynAny has components but has a current position of -1
356         * @exception TypeMismatch if called on a DynAny whose current component itself has components
357         */

358   public void insert_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
359   {
360       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_ulong", _opsClass);
361       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
362
363       try {
364          $self.insert_ulong (value);
365       } finally {
366           _servant_postinvoke ($so);
367       }
368   } // insert_ulong
369

370
371   /**
372         * Inserts a float value into the DynAny.
373         *
374         * @exception InvalidValue if this DynAny has components but has a current position of -1
375         * @exception TypeMismatch if called on a DynAny whose current component itself has components
376         */

377   public void insert_float (float value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
378   {
379       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_float", _opsClass);
380       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
381
382       try {
383          $self.insert_float (value);
384       } finally {
385           _servant_postinvoke ($so);
386       }
387   } // insert_float
388

389
390   /**
391         * Inserts a double value into the DynAny.
392         *
393         * @exception InvalidValue if this DynAny has components but has a current position of -1
394         * @exception TypeMismatch if called on a DynAny whose current component itself has components
395         */

396   public void insert_double (double value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
397   {
398       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_double", _opsClass);
399       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
400
401       try {
402          $self.insert_double (value);
403       } finally {
404           _servant_postinvoke ($so);
405       }
406   } // insert_double
407

408
409   /**
410         * Inserts a string value into the DynAny.
411         * Both bounded and unbounded strings are inserted using this method.
412         *
413         * @exception InvalidValue if this DynAny has components but has a current position of -1
414         * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
415         * @exception TypeMismatch if called on a DynAny whose current component itself has components
416         */

417   public void insert_string (String JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
418   {
419       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_string", _opsClass);
420       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
421
422       try {
423          $self.insert_string (value);
424       } finally {
425           _servant_postinvoke ($so);
426       }
427   } // insert_string
428

429
430   /**
431         * Inserts a reference to a CORBA object into the DynAny.
432         *
433         * @exception InvalidValue if this DynAny has components but has a current position of -1
434         * @exception TypeMismatch if called on a DynAny whose current component itself has components
435         */

436   public void insert_reference (org.omg.CORBA.Object JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
437   {
438       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_reference", _opsClass);
439       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
440
441       try {
442          $self.insert_reference (value);
443       } finally {
444           _servant_postinvoke ($so);
445       }
446   } // insert_reference
447

448
449   /**
450         * Inserts a TypeCode object into the DynAny.
451         *
452         * @exception InvalidValue if this DynAny has components but has a current position of -1
453         * @exception TypeMismatch if called on a DynAny whose current component itself has components
454         */

455   public void insert_typecode (org.omg.CORBA.TypeCode JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
456   {
457       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_typecode", _opsClass);
458       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
459
460       try {
461          $self.insert_typecode (value);
462       } finally {
463           _servant_postinvoke ($so);
464       }
465   } // insert_typecode
466

467
468   /**
469         * Inserts a long value into the DynAny. The IDL long long data type is mapped to the Java long data type.
470         *
471         * @exception InvalidValue if this DynAny has components but has a current position of -1
472         * @exception TypeMismatch if called on a DynAny whose current component itself has components
473         */

474   public void insert_longlong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
475   {
476       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_longlong", _opsClass);
477       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
478
479       try {
480          $self.insert_longlong (value);
481       } finally {
482           _servant_postinvoke ($so);
483       }
484   } // insert_longlong
485

486
487   /**
488         * Inserts a long value into the DynAny.
489         * The IDL unsigned long long data type is mapped to the Java long data type.
490         *
491         * @exception InvalidValue if this DynAny has components but has a current position of -1
492         * @exception TypeMismatch if called on a DynAny whose current component itself has components
493         */

494   public void insert_ulonglong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
495   {
496       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_ulonglong", _opsClass);
497       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
498
499       try {
500          $self.insert_ulonglong (value);
501       } finally {
502           _servant_postinvoke ($so);
503       }
504   } // insert_ulonglong
505

506
507   /**
508         * Inserts a char value into the DynAny. The IDL wchar data type is mapped to the Java char data type.
509         *
510         * @exception InvalidValue if this DynAny has components but has a current position of -1
511         * @exception TypeMismatch if called on a DynAny whose current component itself has components
512         */

513   public void insert_wchar (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
514   {
515       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_wchar", _opsClass);
516       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
517
518       try {
519          $self.insert_wchar (value);
520       } finally {
521           _servant_postinvoke ($so);
522       }
523   } // insert_wchar
524

525
526   /**
527         * Inserts a string value into the DynAny.
528         * Both bounded and unbounded strings are inserted using this method.
529         *
530         * @exception InvalidValue if this DynAny has components but has a current position of -1
531         * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
532         */

533   public void insert_wstring (String JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
534   {
535       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_wstring", _opsClass);
536       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
537
538       try {
539          $self.insert_wstring (value);
540       } finally {
541           _servant_postinvoke ($so);
542       }
543   } // insert_wstring
544

545
546   /**
547         * Inserts an Any value into the Any represented by this DynAny.
548         *
549         * @exception InvalidValue if this DynAny has components but has a current position of -1
550         * @exception TypeMismatch if called on a DynAny whose current component itself has components
551         */

552   public void insert_any (org.omg.CORBA.Any JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
553   {
554       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_any", _opsClass);
555       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
556
557       try {
558          $self.insert_any (value);
559       } finally {
560           _servant_postinvoke ($so);
561       }
562   } // insert_any
563

564
565   /**
566         * Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
567         *
568         * @exception InvalidValue if this DynAny has components but has a current position of -1
569         * @exception TypeMismatch if called on a DynAny whose current component itself has components
570         */

571   public void insert_dyn_any (org.omg.DynamicAny.DynAny JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
572   {
573       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_dyn_any", _opsClass);
574       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
575
576       try {
577          $self.insert_dyn_any (value);
578       } finally {
579           _servant_postinvoke ($so);
580       }
581   } // insert_dyn_any
582

583
584   /**
585         * Inserts a reference to a Serializable object into this DynAny.
586         * The IDL ValueBase type is mapped to the Java Serializable type.
587         *
588         * @exception InvalidValue if this DynAny has components but has a current position of -1
589         * @exception TypeMismatch if called on a DynAny whose current component itself has components
590         */

591   public void insert_val (java.io.Serializable JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
592   {
593       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_val", _opsClass);
594       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
595
596       try {
597          $self.insert_val (value);
598       } finally {
599           _servant_postinvoke ($so);
600       }
601   } // insert_val
602

603
604   /**
605         * Extracts the boolean value from this DynAny.
606         *
607         * @exception TypeMismatch if the accessed component in the DynAny is of a type
608         * that is not equivalent to the requested type.
609         * @exception TypeMismatch if called on a DynAny whose current component itself has components
610         * @exception InvalidValue if this DynAny has components but has a current position of -1
611         */

612   public boolean get_boolean () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
613   {
614       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_boolean", _opsClass);
615       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
616
617       try {
618          return $self.get_boolean ();
619       } finally {
620           _servant_postinvoke ($so);
621       }
622   } // get_boolean
623

624
625   /**
626         * Extracts the byte value from this DynAny. The IDL octet data type is mapped to the Java byte data type.
627         *
628         * @exception TypeMismatch if the accessed component in the DynAny is of a type
629         * that is not equivalent to the requested type.
630         * @exception TypeMismatch if called on a DynAny whose current component itself has components
631         * @exception InvalidValue if this DynAny has components but has a current position of -1
632         */

633   public byte get_octet () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
634   {
635       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_octet", _opsClass);
636       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
637
638       try {
639          return $self.get_octet ();
640       } finally {
641           _servant_postinvoke ($so);
642       }
643   } // get_octet
644

645
646   /**
647         * Extracts the char value from this DynAny.
648         *
649         * @exception TypeMismatch if the accessed component in the DynAny is of a type
650         * that is not equivalent to the requested type.
651         * @exception TypeMismatch if called on a DynAny whose current component itself has components
652         * @exception InvalidValue if this DynAny has components but has a current position of -1
653         */

654   public char get_char () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
655   {
656       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_char", _opsClass);
657       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
658
659       try {
660          return $self.get_char ();
661       } finally {
662           _servant_postinvoke ($so);
663       }
664   } // get_char
665

666
667   /**
668         * Extracts the short value from this DynAny.
669         *
670         * @exception TypeMismatch if the accessed component in the DynAny is of a type
671         * that is not equivalent to the requested type.
672         * @exception TypeMismatch if called on a DynAny whose current component itself has components
673         * @exception InvalidValue if this DynAny has components but has a current position of -1
674         */

675   public short get_short () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
676   {
677       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_short", _opsClass);
678       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
679
680       try {
681          return $self.get_short ();
682       } finally {
683           _servant_postinvoke ($so);
684       }
685   } // get_short
686

687
688   /**
689         * Extracts the short value from this DynAny. The IDL ushort data type is mapped to the Java short data type.
690         *
691         * @exception TypeMismatch if the accessed component in the DynAny is of a type
692         * that is not equivalent to the requested type.
693         * @exception TypeMismatch if called on a DynAny whose current component itself has components
694         * @exception InvalidValue if this DynAny has components but has a current position of -1
695         */

696   public short get_ushort () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
697   {
698       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_ushort", _opsClass);
699       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
700
701       try {
702          return $self.get_ushort ();
703       } finally {
704           _servant_postinvoke ($so);
705       }
706   } // get_ushort
707

708
709   /**
710         * Extracts the integer value from this DynAny. The IDL long data type is mapped to the Java int data type.
711         *
712         * @exception TypeMismatch if the accessed component in the DynAny is of a type
713         * that is not equivalent to the requested type.
714         * @exception TypeMismatch if called on a DynAny whose current component itself has components
715         * @exception InvalidValue if this DynAny has components but has a current position of -1
716         */

717   public int get_long () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
718   {
719       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_long", _opsClass);
720       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
721
722       try {
723          return $self.get_long ();
724       } finally {
725           _servant_postinvoke ($so);
726       }
727   } // get_long
728

729
730   /**
731         * Extracts the integer value from this DynAny. The IDL ulong data type is mapped to the Java int data type.
732         *
733         * @exception TypeMismatch if the accessed component in the DynAny is of a type
734         * that is not equivalent to the requested type.
735         * @exception TypeMismatch if called on a DynAny whose current component itself has components
736         * @exception InvalidValue if this DynAny has components but has a current position of -1
737         */

738   public int get_ulong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
739   {
740       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_ulong", _opsClass);
741       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
742
743       try {
744          return $self.get_ulong ();
745       } finally {
746           _servant_postinvoke ($so);
747       }
748   } // get_ulong
749

750
751   /**
752         * Extracts the float value from this DynAny.
753         *
754         * @exception TypeMismatch if the accessed component in the DynAny is of a type
755         * that is not equivalent to the requested type.
756         * @exception TypeMismatch if called on a DynAny whose current component itself has components
757         * @exception InvalidValue if this DynAny has components but has a current position of -1
758         */

759   public float get_float () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
760   {
761       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_float", _opsClass);
762       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
763
764       try {
765          return $self.get_float ();
766       } finally {
767           _servant_postinvoke ($so);
768       }
769   } // get_float
770

771
772   /**
773         * Extracts the double value from this DynAny.
774         *
775         * @exception TypeMismatch if the accessed component in the DynAny is of a type
776         * that is not equivalent to the requested type.
777         * @exception TypeMismatch if called on a DynAny whose current component itself has components
778         * @exception InvalidValue if this DynAny has components but has a current position of -1
779         */

780   public double get_double () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
781   {
782       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_double", _opsClass);
783       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
784
785       try {
786          return $self.get_double ();
787       } finally {
788           _servant_postinvoke ($so);
789       }
790   } // get_double
791

792
793   /**
794         * Extracts the string value from this DynAny.
795         * Both bounded and unbounded strings are extracted using this method.
796         *
797         * @exception TypeMismatch if the accessed component in the DynAny is of a type
798         * that is not equivalent to the requested type.
799         * @exception TypeMismatch if called on a DynAny whose current component itself has components
800         * @exception InvalidValue if this DynAny has components but has a current position of -1
801         */

802   public String JavaDoc get_string () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
803   {
804       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_string", _opsClass);
805       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
806
807       try {
808          return $self.get_string ();
809       } finally {
810           _servant_postinvoke ($so);
811       }
812   } // get_string
813

814
815   /**
816         * Extracts the reference to a CORBA Object from this DynAny.
817         *
818         * @exception TypeMismatch if the accessed component in the DynAny is of a type
819         * that is not equivalent to the requested type.
820         * @exception TypeMismatch if called on a DynAny whose current component itself has components
821         * @exception InvalidValue if this DynAny has components but has a current position of -1
822         */

823   public org.omg.CORBA.Object JavaDoc get_reference () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
824   {
825       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_reference", _opsClass);
826       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
827
828       try {
829          return $self.get_reference ();
830       } finally {
831           _servant_postinvoke ($so);
832       }
833   } // get_reference
834

835
836   /**
837         * Extracts the TypeCode object from this DynAny.
838         *
839         * @exception TypeMismatch if the accessed component in the DynAny is of a type
840         * that is not equivalent to the requested type.
841         * @exception TypeMismatch if called on a DynAny whose current component itself has components
842         * @exception InvalidValue if this DynAny has components but has a current position of -1
843         */

844   public org.omg.CORBA.TypeCode JavaDoc get_typecode () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
845   {
846       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_typecode", _opsClass);
847       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
848
849       try {
850          return $self.get_typecode ();
851       } finally {
852           _servant_postinvoke ($so);
853       }
854   } // get_typecode
855

856
857   /**
858         * Extracts the long value from this DynAny. The IDL long long data type is mapped to the Java long data type.
859         *
860         * @exception TypeMismatch if the accessed component in the DynAny is of a type
861         * that is not equivalent to the requested type.
862         * @exception TypeMismatch if called on a DynAny whose current component itself has components
863         * @exception InvalidValue if this DynAny has components but has a current position of -1
864         */

865   public long get_longlong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
866   {
867       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_longlong", _opsClass);
868       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
869
870       try {
871          return $self.get_longlong ();
872       } finally {
873           _servant_postinvoke ($so);
874       }
875   } // get_longlong
876

877
878   /**
879         * Extracts the long value from this DynAny.
880         * The IDL unsigned long long data type is mapped to the Java long data type.
881         *
882         * @exception TypeMismatch if the accessed component in the DynAny is of a type
883         * that is not equivalent to the requested type.
884         * @exception TypeMismatch if called on a DynAny whose current component itself has components
885         * @exception InvalidValue if this DynAny has components but has a current position of -1
886         */

887   public long get_ulonglong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
888   {
889       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_ulonglong", _opsClass);
890       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
891
892       try {
893          return $self.get_ulonglong ();
894       } finally {
895           _servant_postinvoke ($so);
896       }
897   } // get_ulonglong
898

899
900   /**
901         * Extracts the long value from this DynAny. The IDL wchar data type is mapped to the Java char data type.
902         *
903         * @exception TypeMismatch if the accessed component in the DynAny is of a type
904         * that is not equivalent to the requested type.
905         * @exception TypeMismatch if called on a DynAny whose current component itself has components
906         * @exception InvalidValue if this DynAny has components but has a current position of -1
907         */

908   public char get_wchar () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
909   {
910       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_wchar", _opsClass);
911       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
912
913       try {
914          return $self.get_wchar ();
915       } finally {
916           _servant_postinvoke ($so);
917       }
918   } // get_wchar
919

920
921   /**
922         * Extracts the string value from this DynAny.
923         * Both bounded and unbounded strings are extracted using this method.
924         *
925         * @exception TypeMismatch if the accessed component in the DynAny is of a type
926         * that is not equivalent to the requested type.
927         * @exception TypeMismatch if called on a DynAny whose current component itself has components
928         */

929   public String JavaDoc get_wstring () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
930   {
931       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_wstring", _opsClass);
932       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
933
934       try {
935          return $self.get_wstring ();
936       } finally {
937           _servant_postinvoke ($so);
938       }
939   } // get_wstring
940

941
942   /**
943         * Extracts an Any value contained in the Any represented by this DynAny.
944         *
945         * @exception TypeMismatch if the accessed component in the DynAny is of a type
946         * that is not equivalent to the requested type.
947         * @exception TypeMismatch if called on a DynAny whose current component itself has components
948         * @exception InvalidValue if this DynAny has components but has a current position of -1
949         */

950   public org.omg.CORBA.Any JavaDoc get_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
951   {
952       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_any", _opsClass);
953       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
954
955       try {
956          return $self.get_any ();
957       } finally {
958           _servant_postinvoke ($so);
959       }
960   } // get_any
961

962
963   /**
964         * Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped
965         * into a new DynAny.
966         *
967         * @exception TypeMismatch if the accessed component in the DynAny is of a type
968         * that is not equivalent to the requested type.
969         * @exception TypeMismatch if called on a DynAny whose current component itself has components
970         * @exception InvalidValue if this DynAny has components but has a current position of -1
971         */

972   public org.omg.DynamicAny.DynAny JavaDoc get_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
973   {
974       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_dyn_any", _opsClass);
975       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
976
977       try {
978          return $self.get_dyn_any ();
979       } finally {
980           _servant_postinvoke ($so);
981       }
982   } // get_dyn_any
983

984
985   /**
986         * Extracts a Serializable object from this DynAny.
987         * The IDL ValueBase type is mapped to the Java Serializable type.
988         *
989         * @exception TypeMismatch if the accessed component in the DynAny is of a type
990         * that is not equivalent to the requested type.
991         * @exception TypeMismatch if called on a DynAny whose current component itself has components
992         * @exception InvalidValue if this DynAny has components but has a current position of -1
993         */

994   public java.io.Serializable JavaDoc get_val () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
995   {
996       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_val", _opsClass);
997       DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
998
999       try {
1000         return $self.get_val ();
1001      } finally {
1002          _servant_postinvoke ($so);
1003      }
1004  } // get_val
1005

1006
1007  /**
1008        * Sets the current position to index. The current position is indexed 0 to n-1, that is,
1009        * index zero corresponds to the first component. The operation returns true if the resulting
1010        * current position indicates a component of the DynAny and false if index indicates
1011        * a position that does not correspond to a component.
1012        * Calling seek with a negative index is legal. It sets the current position to -1 to indicate
1013        * no component and returns false. Passing a non-negative index value for a DynAny that does not
1014        * have a component at the corresponding position sets the current position to -1 and returns false.
1015        */

1016  public boolean seek (int index)
1017  {
1018      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("seek", _opsClass);
1019      DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
1020
1021      try {
1022         return $self.seek (index);
1023      } finally {
1024          _servant_postinvoke ($so);
1025      }
1026  } // seek
1027

1028
1029  /**
1030        * Is equivalent to seek(0).
1031        */

1032  public void rewind ()
1033  {
1034      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("rewind", _opsClass);
1035      DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
1036
1037      try {
1038         $self.rewind ();
1039      } finally {
1040          _servant_postinvoke ($so);
1041      }
1042  } // rewind
1043

1044
1045  /**
1046        * Advances the current position to the next component.
1047        * The operation returns true while the resulting current position indicates a component, false otherwise.
1048        * A false return value leaves the current position at -1.
1049        * Invoking next on a DynAny without components leaves the current position at -1 and returns false.
1050        */

1051  public boolean next ()
1052  {
1053      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("next", _opsClass);
1054      DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
1055
1056      try {
1057         return $self.next ();
1058      } finally {
1059          _servant_postinvoke ($so);
1060      }
1061  } // next
1062

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

1079  public int component_count ()
1080  {
1081      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("component_count", _opsClass);
1082      DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
1083
1084      try {
1085         return $self.component_count ();
1086      } finally {
1087          _servant_postinvoke ($so);
1088      }
1089  } // component_count
1090

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

1110  public org.omg.DynamicAny.DynAny JavaDoc current_component () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc
1111  {
1112      org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("current_component", _opsClass);
1113      DynAnyOperations JavaDoc $self = (DynAnyOperations JavaDoc) $so.servant;
1114
1115      try {
1116         return $self.current_component ();
1117      } finally {
1118          _servant_postinvoke ($so);
1119      }
1120  } // current_component
1121

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