1. /*
  2. * @(#)DynAny.java 1.18 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA;
  11. /** org.omg.CORBA.Any values can be dynamically interpreted (traversed) and
  12. * constructed
  13. * through DynAny objects. A DynAny object is associated with a data value
  14. * which may correspond to a copy of the value inserted into an Any.
  15. * The DynAny APIs enable traversal of the data value associated with an
  16. * Any at runtime and extraction of the primitive constituents of the
  17. * data value.
  18. */
  19. public interface DynAny extends org.omg.CORBA.Object
  20. {
  21. /**
  22. * Returns the <code>TypeCode</code> of the object inserted into
  23. * this <code>DynAny</code>.
  24. *
  25. * @return the <code>TypeCode</code> object.
  26. */
  27. public org.omg.CORBA.TypeCode type() ;
  28. /**
  29. * Copy the contents from one Dynamic Any into another.
  30. *
  31. * @param dyn_any the <code>DynAny</code> object whose contents
  32. * are assigned to this <code>DynAny</code>.
  33. * @throws Invalid if the source <code>DynAny</code> is
  34. * invalid
  35. */
  36. public void assign(org.omg.CORBA.DynAny dyn_any)
  37. throws org.omg.CORBA.DynAnyPackage.Invalid;
  38. /**
  39. * Make a <code>DynAny</code> object from an <code>Any</code>
  40. * object.
  41. *
  42. * @param value the <code>Any</code> object.
  43. * @throws Invalid if the source <code>Any</code> object is
  44. * empty or bad
  45. */
  46. public void from_any(org.omg.CORBA.Any value)
  47. throws org.omg.CORBA.DynAnyPackage.Invalid;
  48. /**
  49. * Convert a <code>DynAny</code> object to an <code>Any</code>
  50. * object.
  51. *
  52. * @return the <code>Any</code> object.
  53. * @throws Invalid if this <code>DynAny</code> is empty or
  54. * bad.
  55. * created or does not contain a meaningful value
  56. */
  57. public org.omg.CORBA.Any to_any()
  58. throws org.omg.CORBA.DynAnyPackage.Invalid;
  59. /**
  60. * Destroys this <code>DynAny</code> object and frees any resources
  61. * used to represent the data value associated with it. This method
  62. * also destroys all <code>DynAny</code> objects obtained from it.
  63. * <p>
  64. * Destruction of <code>DynAny</code> objects should be handled with
  65. * care, taking into account issues dealing with the representation of
  66. * data values associated with <code>DynAny</code> objects. A programmer
  67. * who wants to destroy a <code>DynAny</code> object but still be able
  68. * to manipulate some component of the data value associated with it,
  69. * should first create a <code>DynAny</code> object for the component
  70. * and then make a copy of the created <code>DynAny</code> object.
  71. */
  72. public void destroy() ;
  73. /**
  74. * Clones this <code>DynAny</code> object.
  75. *
  76. * @return a copy of this <code>DynAny</code> object
  77. */
  78. public org.omg.CORBA.DynAny copy() ;
  79. /**
  80. * Inserts the given <code>boolean</code> as the value for this
  81. * <code>DynAny</code> object.
  82. *
  83. * <p> If this method is called on a constructed <code>DynAny</code>
  84. * object, it initializes the next component of the constructed data
  85. * value associated with this <code>DynAny</code> object.
  86. *
  87. * @param value the <code>boolean</code> to insert into this
  88. * <code>DynAny</code> object
  89. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  90. * if the value inserted is not consistent with the type
  91. * of the accessed component in this <code>DynAny</code> object
  92. */
  93. public void insert_boolean(boolean value)
  94. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  95. /**
  96. * Inserts the given <code>byte</code> as the value for this
  97. * <code>DynAny</code> object.
  98. *
  99. * <p> If this method is called on a constructed <code>DynAny</code>
  100. * object, it initializes the next component of the constructed data
  101. * value associated with this <code>DynAny</code> object.
  102. *
  103. * @param value the <code>byte</code> to insert into this
  104. * <code>DynAny</code> object
  105. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  106. * if the value inserted is not consistent with the type
  107. * of the accessed component in this <code>DynAny</code> object
  108. */
  109. public void insert_octet(byte value)
  110. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  111. /**
  112. * Inserts the given <code>char</code> as the value for this
  113. * <code>DynAny</code> object.
  114. *
  115. * <p> If this method is called on a constructed <code>DynAny</code>
  116. * object, it initializes the next component of the constructed data
  117. * value associated with this <code>DynAny</code> object.
  118. *
  119. * @param value the <code>char</code> to insert into this
  120. * <code>DynAny</code> object
  121. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  122. * if the value inserted is not consistent with the type
  123. * of the accessed component in this <code>DynAny</code> object
  124. */
  125. public void insert_char(char value)
  126. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  127. /**
  128. * Inserts the given <code>short</code> as the value for this
  129. * <code>DynAny</code> object.
  130. *
  131. * <p> If this method is called on a constructed <code>DynAny</code>
  132. * object, it initializes the next component of the constructed data
  133. * value associated with this <code>DynAny</code> object.
  134. *
  135. * @param value the <code>short</code> to insert into this
  136. * <code>DynAny</code> object
  137. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  138. * if the value inserted is not consistent with the type
  139. * of the accessed component in this <code>DynAny</code> object
  140. */
  141. public void insert_short(short value)
  142. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  143. /**
  144. * Inserts the given <code>short</code> as the value for this
  145. * <code>DynAny</code> object.
  146. *
  147. * <p> If this method is called on a constructed <code>DynAny</code>
  148. * object, it initializes the next component of the constructed data
  149. * value associated with this <code>DynAny</code> object.
  150. *
  151. * @param value the <code>short</code> to insert into this
  152. * <code>DynAny</code> object
  153. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  154. * if the value inserted is not consistent with the type
  155. * of the accessed component in this <code>DynAny</code> object
  156. */
  157. public void insert_ushort(short value)
  158. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  159. /**
  160. * Inserts the given <code>int</code> as the value for this
  161. * <code>DynAny</code> object.
  162. *
  163. * <p> If this method is called on a constructed <code>DynAny</code>
  164. * object, it initializes the next component of the constructed data
  165. * value associated with this <code>DynAny</code> object.
  166. *
  167. * @param value the <code>int</code> to insert into this
  168. * <code>DynAny</code> object
  169. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  170. * if the value inserted is not consistent with the type
  171. * of the accessed component in this <code>DynAny</code> object
  172. */
  173. public void insert_long(int value)
  174. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  175. /**
  176. * Inserts the given <code>int</code> as the value for this
  177. * <code>DynAny</code> object.
  178. *
  179. * <p> If this method is called on a constructed <code>DynAny</code>
  180. * object, it initializes the next component of the constructed data
  181. * value associated with this <code>DynAny</code> object.
  182. *
  183. * @param value the <code>int</code> to insert into this
  184. * <code>DynAny</code> object
  185. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  186. * if the value inserted is not consistent with the type
  187. * of the accessed component in this <code>DynAny</code> object
  188. */
  189. public void insert_ulong(int value)
  190. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  191. /**
  192. * Inserts the given <code>float</code> as the value for this
  193. * <code>DynAny</code> object.
  194. *
  195. * <p> If this method is called on a constructed <code>DynAny</code>
  196. * object, it initializes the next component of the constructed data
  197. * value associated with this <code>DynAny</code> object.
  198. *
  199. * @param value the <code>float</code> to insert into this
  200. * <code>DynAny</code> object
  201. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  202. * if the value inserted is not consistent with the type
  203. * of the accessed component in this <code>DynAny</code> object
  204. */
  205. public void insert_float(float value)
  206. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  207. /**
  208. * Inserts the given <code>double</code> as the value for this
  209. * <code>DynAny</code> object.
  210. *
  211. * <p> If this method is called on a constructed <code>DynAny</code>
  212. * object, it initializes the next component of the constructed data
  213. * value associated with this <code>DynAny</code> object.
  214. *
  215. * @param value the <code>double</code> to insert into this
  216. * <code>DynAny</code> object
  217. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  218. * if the value inserted is not consistent with the type
  219. * of the accessed component in this <code>DynAny</code> object
  220. */
  221. public void insert_double(double value)
  222. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  223. /**
  224. * Inserts the given <code>String</code> object as the value for this
  225. * <code>DynAny</code> object.
  226. *
  227. * <p> If this method is called on a constructed <code>DynAny</code>
  228. * object, it initializes the next component of the constructed data
  229. * value associated with this <code>DynAny</code> object.
  230. *
  231. * @param value the <code>String</code> to insert into this
  232. * <code>DynAny</code> object
  233. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  234. * if the value inserted is not consistent with the type
  235. * of the accessed component in this <code>DynAny</code> object
  236. */
  237. public void insert_string(String value)
  238. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  239. /**
  240. * Inserts the given <code>org.omg.CORBA.Object</code> as the value for this
  241. * <code>DynAny</code> object.
  242. *
  243. * <p> If this method is called on a constructed <code>DynAny</code>
  244. * object, it initializes the next component of the constructed data
  245. * value associated with this <code>DynAny</code> object.
  246. *
  247. * @param value the <code>org.omg.CORBA.Object</code> to insert into this
  248. * <code>DynAny</code> object
  249. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  250. * if the value inserted is not consistent with the type
  251. * of the accessed component in this <code>DynAny</code> object
  252. */
  253. public void insert_reference(org.omg.CORBA.Object value)
  254. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  255. /**
  256. * Inserts the given <code>org.omg.CORBA.TypeCode</code> as the value for this
  257. * <code>DynAny</code> object.
  258. *
  259. * <p> If this method is called on a constructed <code>DynAny</code>
  260. * object, it initializes the next component of the constructed data
  261. * value associated with this <code>DynAny</code> object.
  262. *
  263. * @param value the <code>org.omg.CORBA.TypeCode</code> to insert into this
  264. * <code>DynAny</code> object
  265. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  266. * if the value inserted is not consistent with the type
  267. * of the accessed component in this <code>DynAny</code> object
  268. */
  269. public void insert_typecode(org.omg.CORBA.TypeCode value)
  270. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  271. /**
  272. * Inserts the given <code>long</code> as the value for this
  273. * <code>DynAny</code> object.
  274. *
  275. * <p> If this method is called on a constructed <code>DynAny</code>
  276. * object, it initializes the next component of the constructed data
  277. * value associated with this <code>DynAny</code> object.
  278. *
  279. * @param value the <code>long</code> to insert into this
  280. * <code>DynAny</code> object
  281. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  282. * if the value inserted is not consistent with the type
  283. * of the accessed component in this <code>DynAny</code> object
  284. */
  285. public void insert_longlong(long value)
  286. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  287. /**
  288. * Inserts the given <code>long</code> as the value for this
  289. * <code>DynAny</code> object.
  290. *
  291. * <p> If this method is called on a constructed <code>DynAny</code>
  292. * object, it initializes the next component of the constructed data
  293. * value associated with this <code>DynAny</code> object.
  294. *
  295. * @param value the <code>long</code> to insert into this
  296. * <code>DynAny</code> object
  297. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  298. * if the value inserted is not consistent with the type
  299. * of the accessed component in this <code>DynAny</code> object
  300. */
  301. public void insert_ulonglong(long value)
  302. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  303. /**
  304. * Inserts the given <code>char</code> as the value for this
  305. * <code>DynAny</code> object.
  306. *
  307. * <p> If this method is called on a constructed <code>DynAny</code>
  308. * object, it initializes the next component of the constructed data
  309. * value associated with this <code>DynAny</code> object.
  310. *
  311. * @param value the <code>char</code> to insert into this
  312. * <code>DynAny</code> object
  313. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  314. * if the value inserted is not consistent with the type
  315. * of the accessed component in this <code>DynAny</code> object
  316. */
  317. public void insert_wchar(char value)
  318. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  319. /**
  320. * Inserts the given <code>String</code> as the value for this
  321. * <code>DynAny</code> object.
  322. *
  323. * <p> If this method is called on a constructed <code>DynAny</code>
  324. * object, it initializes the next component of the constructed data
  325. * value associated with this <code>DynAny</code> object.
  326. *
  327. * @param value the <code>String</code> to insert into this
  328. * <code>DynAny</code> object
  329. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  330. * if the value inserted is not consistent with the type
  331. * of the accessed component in this <code>DynAny</code> object
  332. */
  333. public void insert_wstring(String value)
  334. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  335. /**
  336. * Inserts the given <code>org.omg.CORBA.Any</code> object as the value for this
  337. * <code>DynAny</code> object.
  338. *
  339. * <p> If this method is called on a constructed <code>DynAny</code>
  340. * object, it initializes the next component of the constructed data
  341. * value associated with this <code>DynAny</code> object.
  342. *
  343. * @param value the <code>org.omg.CORBA.Any</code> object to insert into this
  344. * <code>DynAny</code> object
  345. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  346. * if the value inserted is not consistent with the type
  347. * of the accessed component in this <code>DynAny</code> object
  348. */
  349. public void insert_any(org.omg.CORBA.Any value)
  350. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  351. // orbos 98-01-18: Objects By Value -- begin
  352. /**
  353. * Inserts the given <code>java.io.Serializable</code> object as the value for this
  354. * <code>DynAny</code> object.
  355. *
  356. * <p> If this method is called on a constructed <code>DynAny</code>
  357. * object, it initializes the next component of the constructed data
  358. * value associated with this <code>DynAny</code> object.
  359. *
  360. * @param value the <code>java.io.Serializable</code> object to insert into this
  361. * <code>DynAny</code> object
  362. * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
  363. * if the value inserted is not consistent with the type
  364. * of the accessed component in this <code>DynAny</code> object
  365. */
  366. public void insert_val(java.io.Serializable value)
  367. throws org.omg.CORBA.DynAnyPackage.InvalidValue;
  368. /**
  369. * Retrieves the <code>java.io.Serializable</code> object contained
  370. * in this <code>DynAny</code> object.
  371. *
  372. * @return the <code>java.io.Serializable</code> object that is the
  373. * value for this <code>DynAny</code> object
  374. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  375. * if the type code of the accessed component in this
  376. * <code>DynAny</code> object is not equivalent to
  377. * the type code for a <code>java.io.Serializable</code> object
  378. */
  379. public java.io.Serializable get_val()
  380. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  381. // orbos 98-01-18: Objects By Value -- end
  382. /**
  383. * Retrieves the <code>boolean</code> contained
  384. * in this <code>DynAny</code> object.
  385. *
  386. * @return the <code>boolean</code> that is the
  387. * value for this <code>DynAny</code> object
  388. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  389. * if the type code of the accessed component in this
  390. * <code>DynAny</code> object is not equivalent to
  391. * the type code for a <code>boolean</code>
  392. */
  393. public boolean get_boolean()
  394. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  395. /**
  396. * Retrieves the <code>byte</code> contained
  397. * in this <code>DynAny</code> object.
  398. *
  399. * @return the <code>byte</code> that is the
  400. * value for this <code>DynAny</code> object
  401. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  402. * if the type code of the accessed component in this
  403. * <code>DynAny</code> object is not equivalent to
  404. * the type code for a <code>byte</code>
  405. */
  406. public byte get_octet()
  407. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  408. /**
  409. * Retrieves the <code>char</code> contained
  410. * in this <code>DynAny</code> object.
  411. *
  412. * @return the <code>char</code> that is the
  413. * value for this <code>DynAny</code> object
  414. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  415. * if the type code of the accessed component in this
  416. * <code>DynAny</code> object is not equivalent to
  417. * the type code for a <code>char</code>
  418. */
  419. public char get_char()
  420. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  421. /**
  422. * Retrieves the <code>short</code> contained
  423. * in this <code>DynAny</code> object.
  424. *
  425. * @return the <code>short</code> that is the
  426. * value for this <code>DynAny</code> object
  427. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  428. * if the type code of the accessed component in this
  429. * <code>DynAny</code> object is not equivalent to
  430. * the type code for a <code>short</code>
  431. */
  432. public short get_short()
  433. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  434. /**
  435. * Retrieves the <code>short</code> contained
  436. * in this <code>DynAny</code> object.
  437. *
  438. * @return the <code>short</code> that is the
  439. * value for this <code>DynAny</code> object
  440. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  441. * if the type code of the accessed component in this
  442. * <code>DynAny</code> object is not equivalent to
  443. * the type code for a <code>short</code>
  444. */
  445. public short get_ushort()
  446. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  447. /**
  448. * Retrieves the <code>int</code> contained
  449. * in this <code>DynAny</code> object.
  450. *
  451. * @return the <code>int</code> that is the
  452. * value for this <code>DynAny</code> object
  453. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  454. * if the type code of the accessed component in this
  455. * <code>DynAny</code> object is not equivalent to
  456. * the type code for a <code>int</code>
  457. */
  458. public int get_long()
  459. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  460. /**
  461. * Retrieves the <code>int</code> contained
  462. * in this <code>DynAny</code> object.
  463. *
  464. * @return the <code>int</code> that is the
  465. * value for this <code>DynAny</code> object
  466. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  467. * if the type code of the accessed component in this
  468. * <code>DynAny</code> object is not equivalent to
  469. * the type code for a <code>int</code>
  470. */
  471. public int get_ulong()
  472. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  473. /**
  474. * Retrieves the <code>float</code> contained
  475. * in this <code>DynAny</code> object.
  476. *
  477. * @return the <code>float</code> that is the
  478. * value for this <code>DynAny</code> object
  479. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  480. * if the type code of the accessed component in this
  481. * <code>DynAny</code> object is not equivalent to
  482. * the type code for a <code>float</code>
  483. */
  484. public float get_float()
  485. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  486. /**
  487. * Retrieves the <code>double</code> contained
  488. * in this <code>DynAny</code> object.
  489. *
  490. * @return the <code>double</code> that is the
  491. * value for this <code>DynAny</code> object
  492. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  493. * if the type code of the accessed component in this
  494. * <code>DynAny</code> object is not equivalent to
  495. * the type code for a <code>double</code>
  496. */
  497. public double get_double()
  498. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  499. /**
  500. * Retrieves the <code>String</code> contained
  501. * in this <code>DynAny</code> object.
  502. *
  503. * @return the <code>String</code> that is the
  504. * value for this <code>DynAny</code> object
  505. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  506. * if the type code of the accessed component in this
  507. * <code>DynAny</code> object is not equivalent to
  508. * the type code for a <code>String</code>
  509. */
  510. public String get_string()
  511. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  512. /**
  513. * Retrieves the <code>org.omg.CORBA.Other</code> contained
  514. * in this <code>DynAny</code> object.
  515. *
  516. * @return the <code>org.omg.CORBA.Other</code> that is the
  517. * value for this <code>DynAny</code> object
  518. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  519. * if the type code of the accessed component in this
  520. * <code>DynAny</code> object is not equivalent to
  521. * the type code for an <code>org.omg.CORBA.Other</code>
  522. */
  523. public org.omg.CORBA.Object get_reference()
  524. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  525. /**
  526. * Retrieves the <code>org.omg.CORBA.TypeCode</code> contained
  527. * in this <code>DynAny</code> object.
  528. *
  529. * @return the <code>org.omg.CORBA.TypeCode</code> that is the
  530. * value for this <code>DynAny</code> object
  531. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  532. * if the type code of the accessed component in this
  533. * <code>DynAny</code> object is not equivalent to
  534. * the type code for a <code>org.omg.CORBA.TypeCode</code>
  535. */
  536. public org.omg.CORBA.TypeCode get_typecode()
  537. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  538. /**
  539. * Retrieves the <code>long</code> contained
  540. * in this <code>DynAny</code> object.
  541. *
  542. * @return the <code>long</code> that is the
  543. * value for this <code>DynAny</code> object
  544. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  545. * if the type code of the accessed component in this
  546. * <code>DynAny</code> object is not equivalent to
  547. * the type code for a <code>long</code>
  548. */
  549. public long get_longlong()
  550. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  551. /**
  552. * Retrieves the <code>long</code> contained
  553. * in this <code>DynAny</code> object.
  554. *
  555. * @return the <code>long</code> that is the
  556. * value for this <code>DynAny</code> object
  557. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  558. * if the type code of the accessed component in this
  559. * <code>DynAny</code> object is not equivalent to
  560. * the type code for a <code>long</code>
  561. */
  562. public long get_ulonglong()
  563. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  564. /**
  565. * Retrieves the <code>char</code> contained
  566. * in this <code>DynAny</code> object.
  567. *
  568. * @return the <code>char</code> that is the
  569. * value for this <code>DynAny</code> object
  570. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  571. * if the type code of the accessed component in this
  572. * <code>DynAny</code> object is not equivalent to
  573. * the type code for a <code>char</code>
  574. */
  575. public char get_wchar()
  576. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  577. /**
  578. * Retrieves the <code>String</code> contained
  579. * in this <code>DynAny</code> object.
  580. *
  581. * @return the <code>String</code> that is the
  582. * value for this <code>DynAny</code> object
  583. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  584. * if the type code of the accessed component in this
  585. * <code>DynAny</code> object is not equivalent to
  586. * the type code for a <code>String</code>
  587. */
  588. public String get_wstring()
  589. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  590. /**
  591. * Retrieves the <code>org.omg.CORBA.Any</code> contained
  592. * in this <code>DynAny</code> object.
  593. *
  594. * @return the <code>org.omg.CORBA.Any</code> that is the
  595. * value for this <code>DynAny</code> object
  596. * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
  597. * if the type code of the accessed component in this
  598. * <code>DynAny</code> object is not equivalent to
  599. * the type code for an <code>org.omg.CORBA.Any</code>
  600. */
  601. public org.omg.CORBA.Any get_any()
  602. throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
  603. /**
  604. * Returns a <code>DynAny</code> object reference that can
  605. * be used to get/set the value of the component currently accessed.
  606. * The appropriate <code>insert</code> method
  607. * can be called on the resulting <code>DynAny</code> object
  608. * to initialize the component.
  609. * The appropriate <code>get</code> method
  610. * can be called on the resulting <code>DynAny</code> object
  611. * to extract the value of the component.
  612. *
  613. * @return a <code>DynAny</code> object reference that can be
  614. * used to retrieve or set the value of the component currently
  615. * accessed
  616. */
  617. public org.omg.CORBA.DynAny current_component() ;
  618. /**
  619. * Moves to the next component of this <code>DynAny</code> object.
  620. * This method is used for iterating through the components of
  621. * a constructed type, effectively moving a pointer from one
  622. * component to the next. The pointer starts out on the first
  623. * component when a <code>DynAny</code> object is created.
  624. *
  625. * @return <code>true</code> if the pointer points to a component;
  626. * <code>false</code> if there are no more components or this
  627. * <code>DynAny</code> is associated with a basic type rather than
  628. * a constructed type
  629. */
  630. public boolean next() ;
  631. /**
  632. * Moves the internal pointer to the given index. Logically, this method
  633. * sets a new offset for this pointer.
  634. *
  635. * @param index an <code>int</code> indicating the position to which
  636. * the pointer should move. The first position is 0.
  637. * @return <code>true</code> if the pointer points to a component;
  638. * <code>false</code> if there is no component at the designated
  639. * index. If this <code>DynAny</code> object is associated with a
  640. * basic type, this method returns <code>false</code> for any index
  641. * other than 0.
  642. */
  643. public boolean seek(int index) ;
  644. /**
  645. * Moves the internal pointer to the first component.
  646. */
  647. public void rewind() ;
  648. }