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