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