1. package org.omg.DynamicAny;
  2. /**
  3. * org/omg/DynamicAny/_DynSequenceStub.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
  6. * Wednesday, September 15, 2004 10:28:49 AM GMT
  7. */
  8. /**
  9. * DynSequence objects support the manipulation of IDL sequences.
  10. */
  11. public class _DynSequenceStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.DynamicAny.DynSequence
  12. {
  13. final public static java.lang.Class _opsClass = DynSequenceOperations.class;
  14. /**
  15. * Returns the current length of the sequence.
  16. */
  17. public int get_length ()
  18. {
  19. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_length", _opsClass);
  20. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  21. try {
  22. return $self.get_length ();
  23. } finally {
  24. _servant_postinvoke ($so);
  25. }
  26. } // get_length
  27. /**
  28. * Sets the length of the sequence.
  29. * Increasing the length of a sequence adds new elements at the tail without affecting the values
  30. * of already existing elements. Newly added elements are default-initialized.
  31. * Increasing the length of a sequence sets the current position to the first newly-added element
  32. * if the previous current position was -1. Otherwise, if the previous current position was not -1,
  33. * the current position is not affected.
  34. * Decreasing the length of a sequence removes elements from the tail without affecting the value
  35. * of those elements that remain. The new current position after decreasing the length of a sequence
  36. * is determined as follows:
  37. * <UL>
  38. * <LI>If the length of the sequence is set to zero, the current position is set to -1.
  39. * <LI>If the current position is -1 before decreasing the length, it remains at -1.
  40. * <LI>If the current position indicates a valid element and that element is not removed when the length
  41. * is decreased, the current position remains unaffected.
  42. * <LI>If the current position indicates a valid element and that element is removed,
  43. * the current position is set to -1.
  44. * </UL>
  45. *
  46. * @exception InvalidValue if this is a bounded sequence and len is larger than the bound
  47. */
  48. public void set_length (int len) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue
  49. {
  50. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("set_length", _opsClass);
  51. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  52. try {
  53. $self.set_length (len);
  54. } finally {
  55. _servant_postinvoke ($so);
  56. }
  57. } // set_length
  58. /**
  59. * Returns the elements of the sequence.
  60. */
  61. public org.omg.CORBA.Any[] get_elements ()
  62. {
  63. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_elements", _opsClass);
  64. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  65. try {
  66. return $self.get_elements ();
  67. } finally {
  68. _servant_postinvoke ($so);
  69. }
  70. } // get_elements
  71. /**
  72. * Sets the elements of a sequence.
  73. * The length of the DynSequence is set to the length of value. The current position is set to zero
  74. * if value has non-zero length and to -1 if value is a zero-length sequence.
  75. *
  76. * @exception TypeMismatch if value contains one or more elements whose TypeCode is not equivalent
  77. * to the element TypeCode of the DynSequence
  78. * @exception InvalidValue if the length of value exceeds the bound of a bounded sequence
  79. */
  80. public void set_elements (org.omg.CORBA.Any[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  81. {
  82. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("set_elements", _opsClass);
  83. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  84. try {
  85. $self.set_elements (value);
  86. } finally {
  87. _servant_postinvoke ($so);
  88. }
  89. } // set_elements
  90. /**
  91. * Returns the DynAnys representing the elements of the sequence.
  92. */
  93. public org.omg.DynamicAny.DynAny[] get_elements_as_dyn_any ()
  94. {
  95. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_elements_as_dyn_any", _opsClass);
  96. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  97. try {
  98. return $self.get_elements_as_dyn_any ();
  99. } finally {
  100. _servant_postinvoke ($so);
  101. }
  102. } // get_elements_as_dyn_any
  103. /**
  104. * Sets the elements of a sequence using DynAnys.
  105. * The length of the DynSequence is set to the length of value. The current position is set to zero
  106. * if value has non-zero length and to -1 if value is a zero-length sequence.
  107. *
  108. * @exception TypeMismatch if value contains one or more elements whose TypeCode is not equivalent
  109. * to the element TypeCode of the DynSequence
  110. * @exception InvalidValue if the length of value exceeds the bound of a bounded sequence
  111. */
  112. public void set_elements_as_dyn_any (org.omg.DynamicAny.DynAny[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  113. {
  114. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("set_elements_as_dyn_any", _opsClass);
  115. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  116. try {
  117. $self.set_elements_as_dyn_any (value);
  118. } finally {
  119. _servant_postinvoke ($so);
  120. }
  121. } // set_elements_as_dyn_any
  122. /**
  123. * Returns the TypeCode associated with this DynAny object.
  124. * A DynAny object is created with a TypeCode value assigned to it.
  125. * This TypeCode value determines the type of the value handled through the DynAny object.
  126. * Note that the TypeCode associated with a DynAny object is initialized at the time the
  127. * DynAny is created and cannot be changed during lifetime of the DynAny object.
  128. *
  129. * @return The TypeCode associated with this DynAny object
  130. */
  131. public org.omg.CORBA.TypeCode type ()
  132. {
  133. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("type", _opsClass);
  134. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  135. try {
  136. return $self.type ();
  137. } finally {
  138. _servant_postinvoke ($so);
  139. }
  140. } // type
  141. /**
  142. * Initializes the value associated with a DynAny object with the value
  143. * associated with another DynAny object.
  144. * The current position of the target DynAny is set to zero for values that have components
  145. * and to -1 for values that do not have components.
  146. *
  147. * @param dyn_any
  148. * @exception TypeMismatch if the type of the passed DynAny is not equivalent to the type of target DynAny
  149. */
  150. public void assign (org.omg.DynamicAny.DynAny dyn_any) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch
  151. {
  152. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("assign", _opsClass);
  153. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  154. try {
  155. $self.assign (dyn_any);
  156. } finally {
  157. _servant_postinvoke ($so);
  158. }
  159. } // assign
  160. /**
  161. * Initializes the value associated with a DynAny object with the value contained in an any.
  162. * The current position of the target DynAny is set to zero for values that have components
  163. * and to -1 for values that do not have components.
  164. *
  165. * @exception TypeMismatch if the type of the passed Any is not equivalent to the type of target DynAny
  166. * @exception InvalidValue if the passed Any does not contain a legal value (such as a null string)
  167. */
  168. public void from_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  169. {
  170. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("from_any", _opsClass);
  171. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  172. try {
  173. $self.from_any (value);
  174. } finally {
  175. _servant_postinvoke ($so);
  176. }
  177. } // from_any
  178. /**
  179. * Creates an any value from a DynAny object.
  180. * A copy of the TypeCode associated with the DynAny object is assigned to the resulting any.
  181. * The value associated with the DynAny object is copied into the any.
  182. *
  183. * @return a new Any object with the same value and TypeCode
  184. */
  185. public org.omg.CORBA.Any to_any ()
  186. {
  187. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("to_any", _opsClass);
  188. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  189. try {
  190. return $self.to_any ();
  191. } finally {
  192. _servant_postinvoke ($so);
  193. }
  194. } // to_any
  195. /**
  196. * Compares two DynAny values for equality.
  197. * Two DynAny values are equal if their TypeCodes are equivalent and, recursively, all component DynAnys
  198. * have equal values.
  199. * The current position of the two DynAnys being compared has no effect on the result of equal.
  200. *
  201. * @return true of the DynAnys are equal, false otherwise
  202. */
  203. public boolean equal (org.omg.DynamicAny.DynAny dyn_any)
  204. {
  205. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("equal", _opsClass);
  206. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  207. try {
  208. return $self.equal (dyn_any);
  209. } finally {
  210. _servant_postinvoke ($so);
  211. }
  212. } // equal
  213. /**
  214. * Destroys a DynAny object.
  215. * This operation frees any resources used to represent the data value associated with a DynAny object.
  216. * It must be invoked on references obtained from one of the creation operations on the ORB interface
  217. * or on a reference returned by DynAny.copy() to avoid resource leaks.
  218. * Invoking destroy on component DynAny objects (for example, on objects returned by the
  219. * current_component operation) does nothing.
  220. * Destruction of a DynAny object implies destruction of all DynAny objects obtained from it.
  221. * That is, references to components of a destroyed DynAny become invalid.
  222. * Invocations on such references raise OBJECT_NOT_EXIST.
  223. * It is possible to manipulate a component of a DynAny beyond the life time of the DynAny
  224. * from which the component was obtained by making a copy of the component with the copy operation
  225. * before destroying the DynAny from which the component was obtained.
  226. */
  227. public void destroy ()
  228. {
  229. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("destroy", _opsClass);
  230. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  231. try {
  232. $self.destroy ();
  233. } finally {
  234. _servant_postinvoke ($so);
  235. }
  236. } // destroy
  237. /**
  238. * Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
  239. * The operation is polymorphic, that is, invoking it on one of the types derived from DynAny,
  240. * such as DynStruct, creates the derived type but returns its reference as the DynAny base type.
  241. *
  242. * @return a deep copy of the DynAny object
  243. */
  244. public org.omg.DynamicAny.DynAny copy ()
  245. {
  246. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("copy", _opsClass);
  247. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  248. try {
  249. return $self.copy ();
  250. } finally {
  251. _servant_postinvoke ($so);
  252. }
  253. } // copy
  254. /**
  255. * Inserts a boolean value into the DynAny.
  256. *
  257. * @exception InvalidValue if this DynAny has components but has a current position of -1
  258. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  259. */
  260. public void insert_boolean (boolean value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  261. {
  262. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_boolean", _opsClass);
  263. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  264. try {
  265. $self.insert_boolean (value);
  266. } finally {
  267. _servant_postinvoke ($so);
  268. }
  269. } // insert_boolean
  270. /**
  271. * Inserts a byte value into the DynAny. The IDL octet data type is mapped to the Java byte data type.
  272. *
  273. * @exception InvalidValue if this DynAny has components but has a current position of -1
  274. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  275. */
  276. public void insert_octet (byte value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  277. {
  278. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_octet", _opsClass);
  279. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  280. try {
  281. $self.insert_octet (value);
  282. } finally {
  283. _servant_postinvoke ($so);
  284. }
  285. } // insert_octet
  286. /**
  287. * Inserts a char value into the DynAny.
  288. *
  289. * @exception InvalidValue if this DynAny has components but has a current position of -1
  290. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  291. */
  292. public void insert_char (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  293. {
  294. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_char", _opsClass);
  295. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  296. try {
  297. $self.insert_char (value);
  298. } finally {
  299. _servant_postinvoke ($so);
  300. }
  301. } // insert_char
  302. /**
  303. * Inserts a short value into the DynAny.
  304. *
  305. * @exception InvalidValue if this DynAny has components but has a current position of -1
  306. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  307. */
  308. public void insert_short (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  309. {
  310. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_short", _opsClass);
  311. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  312. try {
  313. $self.insert_short (value);
  314. } finally {
  315. _servant_postinvoke ($so);
  316. }
  317. } // insert_short
  318. /**
  319. * Inserts a short value into the DynAny. The IDL ushort data type is mapped to the Java short data type.
  320. *
  321. * @exception InvalidValue if this DynAny has components but has a current position of -1
  322. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  323. */
  324. public void insert_ushort (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  325. {
  326. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_ushort", _opsClass);
  327. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  328. try {
  329. $self.insert_ushort (value);
  330. } finally {
  331. _servant_postinvoke ($so);
  332. }
  333. } // insert_ushort
  334. /**
  335. * Inserts an integer value into the DynAny. The IDL long data type is mapped to the Java int data type.
  336. *
  337. * @exception InvalidValue if this DynAny has components but has a current position of -1
  338. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  339. */
  340. public void insert_long (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  341. {
  342. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_long", _opsClass);
  343. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  344. try {
  345. $self.insert_long (value);
  346. } finally {
  347. _servant_postinvoke ($so);
  348. }
  349. } // insert_long
  350. /**
  351. * Inserts an integer value into the DynAny. The IDL ulong data type is mapped to the Java int data type.
  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_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  357. {
  358. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_ulong", _opsClass);
  359. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  360. try {
  361. $self.insert_ulong (value);
  362. } finally {
  363. _servant_postinvoke ($so);
  364. }
  365. } // insert_ulong
  366. /**
  367. * Inserts a float value into the DynAny.
  368. *
  369. * @exception InvalidValue if this DynAny has components but has a current position of -1
  370. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  371. */
  372. public void insert_float (float value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  373. {
  374. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_float", _opsClass);
  375. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  376. try {
  377. $self.insert_float (value);
  378. } finally {
  379. _servant_postinvoke ($so);
  380. }
  381. } // insert_float
  382. /**
  383. * Inserts a double value into the DynAny.
  384. *
  385. * @exception InvalidValue if this DynAny has components but has a current position of -1
  386. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  387. */
  388. public void insert_double (double value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  389. {
  390. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_double", _opsClass);
  391. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  392. try {
  393. $self.insert_double (value);
  394. } finally {
  395. _servant_postinvoke ($so);
  396. }
  397. } // insert_double
  398. /**
  399. * Inserts a string value into the DynAny.
  400. * Both bounded and unbounded strings are inserted using this method.
  401. *
  402. * @exception InvalidValue if this DynAny has components but has a current position of -1
  403. * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
  404. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  405. */
  406. public void insert_string (String value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  407. {
  408. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_string", _opsClass);
  409. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  410. try {
  411. $self.insert_string (value);
  412. } finally {
  413. _servant_postinvoke ($so);
  414. }
  415. } // insert_string
  416. /**
  417. * Inserts a reference to a CORBA object into the DynAny.
  418. *
  419. * @exception InvalidValue if this DynAny has components but has a current position of -1
  420. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  421. */
  422. public void insert_reference (org.omg.CORBA.Object value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  423. {
  424. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_reference", _opsClass);
  425. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  426. try {
  427. $self.insert_reference (value);
  428. } finally {
  429. _servant_postinvoke ($so);
  430. }
  431. } // insert_reference
  432. /**
  433. * Inserts a TypeCode object into the DynAny.
  434. *
  435. * @exception InvalidValue if this DynAny has components but has a current position of -1
  436. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  437. */
  438. public void insert_typecode (org.omg.CORBA.TypeCode value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  439. {
  440. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_typecode", _opsClass);
  441. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  442. try {
  443. $self.insert_typecode (value);
  444. } finally {
  445. _servant_postinvoke ($so);
  446. }
  447. } // insert_typecode
  448. /**
  449. * Inserts a long value into the DynAny. The IDL long long data type is mapped to the Java long data type.
  450. *
  451. * @exception InvalidValue if this DynAny has components but has a current position of -1
  452. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  453. */
  454. public void insert_longlong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  455. {
  456. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_longlong", _opsClass);
  457. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  458. try {
  459. $self.insert_longlong (value);
  460. } finally {
  461. _servant_postinvoke ($so);
  462. }
  463. } // insert_longlong
  464. /**
  465. * Inserts a long value into the DynAny.
  466. * The IDL unsigned long long data type is mapped to the Java long data type.
  467. *
  468. * @exception InvalidValue if this DynAny has components but has a current position of -1
  469. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  470. */
  471. public void insert_ulonglong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  472. {
  473. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_ulonglong", _opsClass);
  474. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  475. try {
  476. $self.insert_ulonglong (value);
  477. } finally {
  478. _servant_postinvoke ($so);
  479. }
  480. } // insert_ulonglong
  481. /**
  482. * Inserts a char value into the DynAny. The IDL wchar data type is mapped to the Java char data type.
  483. *
  484. * @exception InvalidValue if this DynAny has components but has a current position of -1
  485. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  486. */
  487. public void insert_wchar (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  488. {
  489. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_wchar", _opsClass);
  490. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  491. try {
  492. $self.insert_wchar (value);
  493. } finally {
  494. _servant_postinvoke ($so);
  495. }
  496. } // insert_wchar
  497. /**
  498. * Inserts a string value into the DynAny.
  499. * Both bounded and unbounded strings are inserted using this method.
  500. *
  501. * @exception InvalidValue if this DynAny has components but has a current position of -1
  502. * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
  503. */
  504. public void insert_wstring (String value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  505. {
  506. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_wstring", _opsClass);
  507. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  508. try {
  509. $self.insert_wstring (value);
  510. } finally {
  511. _servant_postinvoke ($so);
  512. }
  513. } // insert_wstring
  514. /**
  515. * Inserts an Any value into the Any represented by this DynAny.
  516. *
  517. * @exception InvalidValue if this DynAny has components but has a current position of -1
  518. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  519. */
  520. public void insert_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  521. {
  522. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_any", _opsClass);
  523. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  524. try {
  525. $self.insert_any (value);
  526. } finally {
  527. _servant_postinvoke ($so);
  528. }
  529. } // insert_any
  530. /**
  531. * Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
  532. *
  533. * @exception InvalidValue if this DynAny has components but has a current position of -1
  534. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  535. */
  536. public void insert_dyn_any (org.omg.DynamicAny.DynAny value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  537. {
  538. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_dyn_any", _opsClass);
  539. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  540. try {
  541. $self.insert_dyn_any (value);
  542. } finally {
  543. _servant_postinvoke ($so);
  544. }
  545. } // insert_dyn_any
  546. /**
  547. * Inserts a reference to a Serializable object into this DynAny.
  548. * The IDL ValueBase type is mapped to the Java Serializable type.
  549. *
  550. * @exception InvalidValue if this DynAny has components but has a current position of -1
  551. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  552. */
  553. public void insert_val (java.io.Serializable value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  554. {
  555. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_val", _opsClass);
  556. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  557. try {
  558. $self.insert_val (value);
  559. } finally {
  560. _servant_postinvoke ($so);
  561. }
  562. } // insert_val
  563. /**
  564. * Extracts the boolean value from this DynAny.
  565. *
  566. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  567. * that is not equivalent to the requested type.
  568. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  569. * @exception InvalidValue if this DynAny has components but has a current position of -1
  570. */
  571. public boolean get_boolean () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  572. {
  573. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_boolean", _opsClass);
  574. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  575. try {
  576. return $self.get_boolean ();
  577. } finally {
  578. _servant_postinvoke ($so);
  579. }
  580. } // get_boolean
  581. /**
  582. * Extracts the byte value from this DynAny. The IDL octet data type is mapped to the Java byte data type.
  583. *
  584. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  585. * that is not equivalent to the requested type.
  586. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  587. * @exception InvalidValue if this DynAny has components but has a current position of -1
  588. */
  589. public byte get_octet () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  590. {
  591. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_octet", _opsClass);
  592. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  593. try {
  594. return $self.get_octet ();
  595. } finally {
  596. _servant_postinvoke ($so);
  597. }
  598. } // get_octet
  599. /**
  600. * Extracts the char value from this DynAny.
  601. *
  602. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  603. * that is not equivalent to the requested type.
  604. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  605. * @exception InvalidValue if this DynAny has components but has a current position of -1
  606. */
  607. public char get_char () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  608. {
  609. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_char", _opsClass);
  610. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  611. try {
  612. return $self.get_char ();
  613. } finally {
  614. _servant_postinvoke ($so);
  615. }
  616. } // get_char
  617. /**
  618. * Extracts the short value from this DynAny.
  619. *
  620. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  621. * that is not equivalent to the requested type.
  622. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  623. * @exception InvalidValue if this DynAny has components but has a current position of -1
  624. */
  625. public short get_short () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  626. {
  627. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_short", _opsClass);
  628. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  629. try {
  630. return $self.get_short ();
  631. } finally {
  632. _servant_postinvoke ($so);
  633. }
  634. } // get_short
  635. /**
  636. * Extracts the short value from this DynAny. The IDL ushort data type is mapped to the Java short data type.
  637. *
  638. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  639. * that is not equivalent to the requested type.
  640. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  641. * @exception InvalidValue if this DynAny has components but has a current position of -1
  642. */
  643. public short get_ushort () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  644. {
  645. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_ushort", _opsClass);
  646. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  647. try {
  648. return $self.get_ushort ();
  649. } finally {
  650. _servant_postinvoke ($so);
  651. }
  652. } // get_ushort
  653. /**
  654. * Extracts the integer value from this DynAny. The IDL long data type is mapped to the Java int data type.
  655. *
  656. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  657. * that is not equivalent to the requested type.
  658. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  659. * @exception InvalidValue if this DynAny has components but has a current position of -1
  660. */
  661. public int get_long () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  662. {
  663. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_long", _opsClass);
  664. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  665. try {
  666. return $self.get_long ();
  667. } finally {
  668. _servant_postinvoke ($so);
  669. }
  670. } // get_long
  671. /**
  672. * Extracts the integer value from this DynAny. The IDL ulong data type is mapped to the Java int data type.
  673. *
  674. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  675. * that is not equivalent to the requested type.
  676. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  677. * @exception InvalidValue if this DynAny has components but has a current position of -1
  678. */
  679. public int get_ulong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  680. {
  681. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_ulong", _opsClass);
  682. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  683. try {
  684. return $self.get_ulong ();
  685. } finally {
  686. _servant_postinvoke ($so);
  687. }
  688. } // get_ulong
  689. /**
  690. * Extracts the float value from this DynAny.
  691. *
  692. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  693. * that is not equivalent to the requested type.
  694. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  695. * @exception InvalidValue if this DynAny has components but has a current position of -1
  696. */
  697. public float get_float () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  698. {
  699. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_float", _opsClass);
  700. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  701. try {
  702. return $self.get_float ();
  703. } finally {
  704. _servant_postinvoke ($so);
  705. }
  706. } // get_float
  707. /**
  708. * Extracts the double value from this DynAny.
  709. *
  710. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  711. * that is not equivalent to the requested type.
  712. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  713. * @exception InvalidValue if this DynAny has components but has a current position of -1
  714. */
  715. public double get_double () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  716. {
  717. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_double", _opsClass);
  718. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  719. try {
  720. return $self.get_double ();
  721. } finally {
  722. _servant_postinvoke ($so);
  723. }
  724. } // get_double
  725. /**
  726. * Extracts the string value from this DynAny.
  727. * Both bounded and unbounded strings are extracted using this method.
  728. *
  729. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  730. * that is not equivalent to the requested type.
  731. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  732. * @exception InvalidValue if this DynAny has components but has a current position of -1
  733. */
  734. public String get_string () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  735. {
  736. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_string", _opsClass);
  737. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  738. try {
  739. return $self.get_string ();
  740. } finally {
  741. _servant_postinvoke ($so);
  742. }
  743. } // get_string
  744. /**
  745. * Extracts the reference to a CORBA Object from this DynAny.
  746. *
  747. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  748. * that is not equivalent to the requested type.
  749. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  750. * @exception InvalidValue if this DynAny has components but has a current position of -1
  751. */
  752. public org.omg.CORBA.Object get_reference () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  753. {
  754. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_reference", _opsClass);
  755. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  756. try {
  757. return $self.get_reference ();
  758. } finally {
  759. _servant_postinvoke ($so);
  760. }
  761. } // get_reference
  762. /**
  763. * Extracts the TypeCode object from this DynAny.
  764. *
  765. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  766. * that is not equivalent to the requested type.
  767. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  768. * @exception InvalidValue if this DynAny has components but has a current position of -1
  769. */
  770. public org.omg.CORBA.TypeCode get_typecode () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  771. {
  772. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_typecode", _opsClass);
  773. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  774. try {
  775. return $self.get_typecode ();
  776. } finally {
  777. _servant_postinvoke ($so);
  778. }
  779. } // get_typecode
  780. /**
  781. * Extracts the long value from this DynAny. The IDL long long data type is mapped to the Java long data type.
  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 long get_longlong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  789. {
  790. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_longlong", _opsClass);
  791. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  792. try {
  793. return $self.get_longlong ();
  794. } finally {
  795. _servant_postinvoke ($so);
  796. }
  797. } // get_longlong
  798. /**
  799. * Extracts the long value from this DynAny.
  800. * The IDL unsigned long long data type is mapped to the Java long data type.
  801. *
  802. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  803. * that is not equivalent to the requested type.
  804. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  805. * @exception InvalidValue if this DynAny has components but has a current position of -1
  806. */
  807. public long get_ulonglong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  808. {
  809. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_ulonglong", _opsClass);
  810. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  811. try {
  812. return $self.get_ulonglong ();
  813. } finally {
  814. _servant_postinvoke ($so);
  815. }
  816. } // get_ulonglong
  817. /**
  818. * Extracts the long value from this DynAny. The IDL wchar data type is mapped to the Java char data type.
  819. *
  820. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  821. * that is not equivalent to the requested type.
  822. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  823. * @exception InvalidValue if this DynAny has components but has a current position of -1
  824. */
  825. public char get_wchar () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  826. {
  827. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_wchar", _opsClass);
  828. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  829. try {
  830. return $self.get_wchar ();
  831. } finally {
  832. _servant_postinvoke ($so);
  833. }
  834. } // get_wchar
  835. /**
  836. * Extracts the string value from this DynAny.
  837. * Both bounded and unbounded strings are extracted using this method.
  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. */
  843. public String get_wstring () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  844. {
  845. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_wstring", _opsClass);
  846. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  847. try {
  848. return $self.get_wstring ();
  849. } finally {
  850. _servant_postinvoke ($so);
  851. }
  852. } // get_wstring
  853. /**
  854. * Extracts an Any value contained in the Any represented by this DynAny.
  855. *
  856. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  857. * that is not equivalent to the requested type.
  858. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  859. * @exception InvalidValue if this DynAny has components but has a current position of -1
  860. */
  861. public org.omg.CORBA.Any get_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  862. {
  863. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_any", _opsClass);
  864. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  865. try {
  866. return $self.get_any ();
  867. } finally {
  868. _servant_postinvoke ($so);
  869. }
  870. } // get_any
  871. /**
  872. * Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped
  873. * into a new DynAny.
  874. *
  875. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  876. * that is not equivalent to the requested type.
  877. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  878. * @exception InvalidValue if this DynAny has components but has a current position of -1
  879. */
  880. public org.omg.DynamicAny.DynAny get_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  881. {
  882. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_dyn_any", _opsClass);
  883. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  884. try {
  885. return $self.get_dyn_any ();
  886. } finally {
  887. _servant_postinvoke ($so);
  888. }
  889. } // get_dyn_any
  890. /**
  891. * Extracts a Serializable object from this DynAny.
  892. * The IDL ValueBase type is mapped to the Java Serializable type.
  893. *
  894. * @exception TypeMismatch if the accessed component in the DynAny is of a type
  895. * that is not equivalent to the requested type.
  896. * @exception TypeMismatch if called on a DynAny whose current component itself has components
  897. * @exception InvalidValue if this DynAny has components but has a current position of -1
  898. */
  899. public java.io.Serializable get_val () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
  900. {
  901. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_val", _opsClass);
  902. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  903. try {
  904. return $self.get_val ();
  905. } finally {
  906. _servant_postinvoke ($so);
  907. }
  908. } // get_val
  909. /**
  910. * Sets the current position to index. The current position is indexed 0 to n-1, that is,
  911. * index zero corresponds to the first component. The operation returns true if the resulting
  912. * current position indicates a component of the DynAny and false if index indicates
  913. * a position that does not correspond to a component.
  914. * Calling seek with a negative index is legal. It sets the current position to -1 to indicate
  915. * no component and returns false. Passing a non-negative index value for a DynAny that does not
  916. * have a component at the corresponding position sets the current position to -1 and returns false.
  917. */
  918. public boolean seek (int index)
  919. {
  920. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("seek", _opsClass);
  921. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  922. try {
  923. return $self.seek (index);
  924. } finally {
  925. _servant_postinvoke ($so);
  926. }
  927. } // seek
  928. /**
  929. * Is equivalent to seek(0).
  930. */
  931. public void rewind ()
  932. {
  933. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("rewind", _opsClass);
  934. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  935. try {
  936. $self.rewind ();
  937. } finally {
  938. _servant_postinvoke ($so);
  939. }
  940. } // rewind
  941. /**
  942. * Advances the current position to the next component.
  943. * The operation returns true while the resulting current position indicates a component, false otherwise.
  944. * A false return value leaves the current position at -1.
  945. * Invoking next on a DynAny without components leaves the current position at -1 and returns false.
  946. */
  947. public boolean next ()
  948. {
  949. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("next", _opsClass);
  950. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  951. try {
  952. return $self.next ();
  953. } finally {
  954. _servant_postinvoke ($so);
  955. }
  956. } // next
  957. /**
  958. * Returns the number of components of a DynAny.
  959. * For a DynAny without components, it returns zero.
  960. * The operation only counts the components at the top level.
  961. * For example, if component_count is invoked on a DynStruct with a single member,
  962. * the return value is 1, irrespective of the type of the member.
  963. * <UL>
  964. * <LI>For sequences, the operation returns the current number of elements.
  965. * <LI>For structures, exceptions, and value types, the operation returns the number of members.
  966. * <LI>For arrays, the operation returns the number of elements.
  967. * <LI>For unions, the operation returns 2 if the discriminator indicates that a named member is active,
  968. * otherwise, it returns 1.
  969. * <LI>For DynFixed and DynEnum, the operation returns zero.
  970. * </UL>
  971. */
  972. public int component_count ()
  973. {
  974. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("component_count", _opsClass);
  975. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  976. try {
  977. return $self.component_count ();
  978. } finally {
  979. _servant_postinvoke ($so);
  980. }
  981. } // component_count
  982. /**
  983. * Returns the DynAny for the component at the current position.
  984. * It does not advance the current position, so repeated calls to current_component
  985. * without an intervening call to rewind, next, or seek return the same component.
  986. * The returned DynAny object reference can be used to get/set the value of the current component.
  987. * If the current component represents a complex type, the returned reference can be narrowed
  988. * based on the TypeCode to get the interface corresponding to the to the complex type.
  989. * Calling current_component on a DynAny that cannot have components,
  990. * such as a DynEnum or an empty exception, raises TypeMismatch.
  991. * Calling current_component on a DynAny whose current position is -1 returns a nil reference.
  992. * The iteration operations, together with current_component, can be used
  993. * to dynamically compose an any value. After creating a dynamic any, such as a DynStruct,
  994. * current_component and next can be used to initialize all the components of the value.
  995. * Once the dynamic value is completely initialized, to_any creates the corresponding any value.
  996. *
  997. * @exception TypeMismatch If called on a DynAny that cannot have components,
  998. * such as a DynEnum or an empty exception
  999. */
  1000. public org.omg.DynamicAny.DynAny current_component () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch
  1001. {
  1002. org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("current_component", _opsClass);
  1003. DynSequenceOperations $self = (DynSequenceOperations) $so.servant;
  1004. try {
  1005. return $self.current_component ();
  1006. } finally {
  1007. _servant_postinvoke ($so);
  1008. }
  1009. } // current_component
  1010. // Type-specific CORBA::Object operations
  1011. private static String[] __ids = {
  1012. "IDL:omg.org/DynamicAny/DynSequence:1.0",
  1013. "IDL:omg.org/DynamicAny/DynAny:1.0"};
  1014. public String[] _ids ()
  1015. {
  1016. return (String[])__ids.clone ();
  1017. }
  1018. private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  1019. {
  1020. String str = s.readUTF ();
  1021. String[] args = null;
  1022. java.util.Properties props = null;
  1023. org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
  1024. org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
  1025. _set_delegate (delegate);
  1026. }
  1027. private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  1028. {
  1029. String[] args = null;
  1030. java.util.Properties props = null;
  1031. String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
  1032. s.writeUTF (str);
  1033. }
  1034. } // class _DynSequenceStub