KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.DynamicAny;
2
3
4 /**
5 * org/omg/DynamicAny/_DynFixedStub.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     * DynFixed objects support the manipulation of IDL fixed values.
14     * Because IDL does not have a generic type that can represent fixed types with arbitrary
15     * number of digits and arbitrary scale, the operations use the IDL string type.
16     */

17 public class _DynFixedStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.DynamicAny.DynFixed JavaDoc
18 {
19   final public static java.lang.Class JavaDoc _opsClass = DynFixedOperations JavaDoc.class;
20
21
22
23   /**
24         * Returns the value of a DynFixed.
25         */

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

38
39   /**
40         * Sets the value of the DynFixed.
41         * The val string must contain a fixed string constant in the same format as used for IDL fixed-point literals.
42         * However, the trailing d or D is optional. The return value is true if val can be represented as the DynFixed
43         * without loss of precision. If val has more fractional digits than can be represented in the DynFixed,
44         * fractional digits are truncated and the return value is false.
45         *
46         * @exception TypeMismatch If val does not contain a valid fixed-point literal or contains extraneous
47         * characters other than leading or trailing white space
48         * @exception InvalidValue If val contains a value whose scale exceeds that of the DynFixed
49         * or is not initialized
50         */

51   public boolean set_value (String JavaDoc val) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
52   {
53       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("set_value", _opsClass);
54       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
55
56       try {
57          return $self.set_value (val);
58       } finally {
59           _servant_postinvoke ($so);
60       }
61   } // set_value
62

63
64   /**
65         * Returns the TypeCode associated with this DynAny object.
66         * A DynAny object is created with a TypeCode value assigned to it.
67         * This TypeCode value determines the type of the value handled through the DynAny object.
68         * Note that the TypeCode associated with a DynAny object is initialized at the time the
69         * DynAny is created and cannot be changed during lifetime of the DynAny object.
70         *
71         * @return The TypeCode associated with this DynAny object
72         */

73   public org.omg.CORBA.TypeCode JavaDoc type ()
74   {
75       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("type", _opsClass);
76       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
77
78       try {
79          return $self.type ();
80       } finally {
81           _servant_postinvoke ($so);
82       }
83   } // type
84

85
86   /**
87         * Initializes the value associated with a DynAny object with the value
88         * associated with another DynAny object.
89         * The current position of the target DynAny is set to zero for values that have components
90         * and to -1 for values that do not have components.
91         *
92         * @param dyn_any
93         * @exception TypeMismatch if the type of the passed DynAny is not equivalent to the type of target DynAny
94         */

95   public void assign (org.omg.DynamicAny.DynAny JavaDoc dyn_any) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc
96   {
97       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("assign", _opsClass);
98       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
99
100       try {
101          $self.assign (dyn_any);
102       } finally {
103           _servant_postinvoke ($so);
104       }
105   } // assign
106

107
108   /**
109         * Initializes the value associated with a DynAny object with the value contained in an any.
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         * @exception TypeMismatch if the type of the passed Any is not equivalent to the type of target DynAny
114         * @exception InvalidValue if the passed Any does not contain a legal value (such as a null string)
115         */

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

128
129   /**
130         * Creates an any value from a DynAny object.
131         * A copy of the TypeCode associated with the DynAny object is assigned to the resulting any.
132         * The value associated with the DynAny object is copied into the any.
133         *
134         * @return a new Any object with the same value and TypeCode
135         */

136   public org.omg.CORBA.Any JavaDoc to_any ()
137   {
138       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("to_any", _opsClass);
139       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
140
141       try {
142          return $self.to_any ();
143       } finally {
144           _servant_postinvoke ($so);
145       }
146   } // to_any
147

148
149   /**
150         * Compares two DynAny values for equality.
151         * Two DynAny values are equal if their TypeCodes are equivalent and, recursively, all component DynAnys
152         * have equal values.
153         * The current position of the two DynAnys being compared has no effect on the result of equal.
154         *
155         * @return true of the DynAnys are equal, false otherwise
156         */

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

169
170   /**
171         * Destroys a DynAny object.
172         * This operation frees any resources used to represent the data value associated with a DynAny object.
173         * It must be invoked on references obtained from one of the creation operations on the ORB interface
174         * or on a reference returned by DynAny.copy() to avoid resource leaks.
175         * Invoking destroy on component DynAny objects (for example, on objects returned by the
176         * current_component operation) does nothing.
177         * Destruction of a DynAny object implies destruction of all DynAny objects obtained from it.
178         * That is, references to components of a destroyed DynAny become invalid.
179         * Invocations on such references raise OBJECT_NOT_EXIST.
180         * It is possible to manipulate a component of a DynAny beyond the life time of the DynAny
181         * from which the component was obtained by making a copy of the component with the copy operation
182         * before destroying the DynAny from which the component was obtained.
183         */

184   public void destroy ()
185   {
186       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("destroy", _opsClass);
187       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
188
189       try {
190          $self.destroy ();
191       } finally {
192           _servant_postinvoke ($so);
193       }
194   } // destroy
195

196
197   /**
198         * Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
199         * The operation is polymorphic, that is, invoking it on one of the types derived from DynAny,
200         * such as DynStruct, creates the derived type but returns its reference as the DynAny base type.
201         *
202         * @return a deep copy of the DynAny object
203         */

204   public org.omg.DynamicAny.DynAny JavaDoc copy ()
205   {
206       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("copy", _opsClass);
207       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
208
209       try {
210          return $self.copy ();
211       } finally {
212           _servant_postinvoke ($so);
213       }
214   } // copy
215

216
217   /**
218         * Inserts a boolean value into the DynAny.
219         *
220         * @exception InvalidValue if this DynAny has components but has a current position of -1
221         * @exception TypeMismatch if called on a DynAny whose current component itself has components
222         */

223   public void insert_boolean (boolean value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
224   {
225       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("insert_boolean", _opsClass);
226       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
227
228       try {
229          $self.insert_boolean (value);
230       } finally {
231           _servant_postinvoke ($so);
232       }
233   } // insert_boolean
234

235
236   /**
237         * Inserts a byte value into the DynAny. The IDL octet data type is mapped to the Java byte data type.
238         *
239         * @exception InvalidValue if this DynAny has components but has a current position of -1
240         * @exception TypeMismatch if called on a DynAny whose current component itself has components
241         */

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

254
255   /**
256         * Inserts a char value into the DynAny.
257         *
258         * @exception InvalidValue if this DynAny has components but has a current position of -1
259         * @exception TypeMismatch if called on a DynAny whose current component itself has components
260         */

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

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

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

292
293   /**
294         * Inserts a short value into the DynAny. The IDL ushort data type is mapped to the Java short data type.
295         *
296         * @exception InvalidValue if this DynAny has components but has a current position of -1
297         * @exception TypeMismatch if called on a DynAny whose current component itself has components
298         */

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

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

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

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

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

349
350   /**
351         * Inserts a float value into the DynAny.
352         *
353         * @exception InvalidValue if this DynAny has components but has a current position of -1
354         * @exception TypeMismatch if called on a DynAny whose current component itself has components
355         */

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

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

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

387
388   /**
389         * Inserts a string value into the DynAny.
390         * Both bounded and unbounded strings are inserted using this method.
391         *
392         * @exception InvalidValue if this DynAny has components but has a current position of -1
393         * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
394         * @exception TypeMismatch if called on a DynAny whose current component itself has components
395         */

396   public void insert_string (String JavaDoc 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_string", _opsClass);
399       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
400
401       try {
402          $self.insert_string (value);
403       } finally {
404           _servant_postinvoke ($so);
405       }
406   } // insert_string
407

408
409   /**
410         * Inserts a reference to a CORBA object into the DynAny.
411         *
412         * @exception InvalidValue if this DynAny has components but has a current position of -1
413         * @exception TypeMismatch if called on a DynAny whose current component itself has components
414         */

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

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

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

446
447   /**
448         * Inserts a long value into the DynAny. The IDL long long data type is mapped to the Java long data type.
449         *
450         * @exception InvalidValue if this DynAny has components but has a current position of -1
451         * @exception TypeMismatch if called on a DynAny whose current component itself has components
452         */

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

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

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

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

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

504
505   /**
506         * Inserts a string value into the DynAny.
507         * Both bounded and unbounded strings are inserted using this method.
508         *
509         * @exception InvalidValue if this DynAny has components but has a current position of -1
510         * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
511         */

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

524
525   /**
526         * Inserts an Any value into the Any represented by this DynAny.
527         *
528         * @exception InvalidValue if this DynAny has components but has a current position of -1
529         * @exception TypeMismatch if called on a DynAny whose current component itself has components
530         */

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

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

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

562
563   /**
564         * Inserts a reference to a Serializable object into this DynAny.
565         * The IDL ValueBase type is mapped to the Java Serializable type.
566         *
567         * @exception InvalidValue if this DynAny has components but has a current position of -1
568         * @exception TypeMismatch if called on a DynAny whose current component itself has components
569         */

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

582
583   /**
584         * Extracts the boolean value from this DynAny.
585         *
586         * @exception TypeMismatch if the accessed component in the DynAny is of a type
587         * that is not equivalent to the requested type.
588         * @exception TypeMismatch if called on a DynAny whose current component itself has components
589         * @exception InvalidValue if this DynAny has components but has a current position of -1
590         */

591   public boolean get_boolean () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc
592   {
593       org.omg.CORBA.portable.ServantObject JavaDoc $so = _servant_preinvoke ("get_boolean", _opsClass);
594       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
595
596       try {
597          return $self.get_boolean ();
598       } finally {
599           _servant_postinvoke ($so);
600       }
601   } // get_boolean
602

603
604   /**
605         * Extracts the byte value from this DynAny. The IDL octet data type is mapped to the Java byte data type.
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 byte get_octet () 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_octet", _opsClass);
615       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
616
617       try {
618          return $self.get_octet ();
619       } finally {
620           _servant_postinvoke ($so);
621       }
622   } // get_octet
623

624
625   /**
626         * Extracts the char value from this DynAny.
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 char get_char () 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_char", _opsClass);
636       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
637
638       try {
639          return $self.get_char ();
640       } finally {
641           _servant_postinvoke ($so);
642       }
643   } // get_char
644

645
646   /**
647         * Extracts the short 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 short get_short () 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_short", _opsClass);
657       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
658
659       try {
660          return $self.get_short ();
661       } finally {
662           _servant_postinvoke ($so);
663       }
664   } // get_short
665

666
667   /**
668         * Extracts the short value from this DynAny. The IDL ushort data type is mapped to the Java short data type.
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_ushort () 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_ushort", _opsClass);
678       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
679
680       try {
681          return $self.get_ushort ();
682       } finally {
683           _servant_postinvoke ($so);
684       }
685   } // get_ushort
686

687
688   /**
689         * Extracts the integer value from this DynAny. The IDL long data type is mapped to the Java int 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 int get_long () 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_long", _opsClass);
699       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
700
701       try {
702          return $self.get_long ();
703       } finally {
704           _servant_postinvoke ($so);
705       }
706   } // get_long
707

708
709   /**
710         * Extracts the integer value from this DynAny. The IDL ulong 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_ulong () 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_ulong", _opsClass);
720       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
721
722       try {
723          return $self.get_ulong ();
724       } finally {
725           _servant_postinvoke ($so);
726       }
727   } // get_ulong
728

729
730   /**
731         * Extracts the float value from this DynAny.
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 float get_float () 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_float", _opsClass);
741       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
742
743       try {
744          return $self.get_float ();
745       } finally {
746           _servant_postinvoke ($so);
747       }
748   } // get_float
749

750
751   /**
752         * Extracts the double 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 double get_double () 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_double", _opsClass);
762       DynFixedOperations JavaDoc $self = (DynFixedOperations JavaDoc) $so.servant;
763
764       try {
765          return $self.get_double ();
766       } finally {
767           _servant_postinvoke ($so);
768       }
769   } // get_double
770

771
772   /**
773         * Extracts the string value from this DynAny.
774         * Both bounded and unbounded strings are e