1. /*
  2. * @(#)Any.java 1.35 01/02/09
  3. *
  4. * Copyright 1997-2001 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. import org.omg.CORBA.portable.InputStream;
  12. import org.omg.CORBA.portable.OutputStream;
  13. import org.omg.CORBA.portable.Streamable;
  14. import org.omg.CORBA.portable.IDLEntity;
  15. /**
  16. * Serves as a container for any data that can be
  17. * described in IDL or for any IDL primitive type.
  18. * An <code>Any</code> object is used as a component of a
  19. * <code>NamedValue</code> object, which provides information about
  20. * arguments or return values in requests, and which is used to define
  21. * name/value pairs in <code>Context</code> objects.
  22. <p>
  23. *
  24. * An <code>Any</code> object consists of two parts:
  25. * <OL>
  26. * <LI>a data value
  27. * <LI>a <code>TypeCode</code> object describing the type of the data
  28. * value contained in the <code>Any</code> object. For example,
  29. * a <code>TypeCode</code> object for an array contains
  30. * a field for the length of the array and a field for
  31. * the type of elements in the array. (Note that in this case, the
  32. * second field of the <code>TypeCode</code> object is itself a
  33. * <code>TypeCode</code> object.)
  34. * </OL>
  35. *
  36. * <P>
  37. * <a name="anyOps"</a>
  38. * A large part of the <code>Any</code> class consists of pairs of methods
  39. * for inserting values into and extracting values from an
  40. * <code>Any</code> object.
  41. * <P>
  42. * For a given primitive type X, these methods are:
  43. * <dl>
  44. * <dt><code><bold> void insert_X(X x)</bold></code>
  45. * <dd> This method allows the insertion of
  46. * an instance <code>x</code> of primitive type <code>X</code>
  47. * into the <code>value</code> field of the <code>Any</code> object.
  48. * Note that the method
  49. * <code>insert_X</code> also resets the <code>Any</code> object's
  50. * <code>type</code> field if necessary.
  51. * <dt> <code><bold>X extract_X()</bold></code>
  52. * <dd> This method allows the extraction of an instance of
  53. * type <code>X</code> from the <code>Any</code> object.
  54. * <BR>
  55. * <P>
  56. * This method throws the exception <code>BAD_OPERATION</code> under two conditions:
  57. * <OL>
  58. * <LI> the type of the element contained in the <code>Any</code> object is not
  59. * <code>X</code>
  60. * <LI> the method <code>extract_X</code> is called before
  61. * the <code>value</code> field of the <code>Any</code> object
  62. * has been set
  63. * </OL>
  64. * </dl>
  65. * <P>
  66. * There are distinct method pairs for each
  67. * primitive IDL data type (<code>insert_long</code> and <code>extract_long</code>,
  68. * <code>insert_string</code> and <code>extract_string</code>, and so on).<BR>
  69. * <P>
  70. * The class <code>Any</code> also has methods for
  71. * getting and setting the type code,
  72. * for testing two <code>Any</code> objects for equality,
  73. * and for reading an <code>Any</code> object from a stream or
  74. * writing it to a stream.
  75. * <BR>
  76. * @version 1.12, 09/09/97
  77. * @since JDK1.2
  78. */
  79. abstract public class Any implements IDLEntity {
  80. /**
  81. * Returns type information for the element contained in this
  82. * <code>Any</code> object.
  83. *
  84. * @return the <code>TypeCode</code> object containing type information
  85. * about the value contained in this <code>Any</code> object
  86. */
  87. abstract public TypeCode type();
  88. /**
  89. * Sets this <code>Any</code> object's <code>type</code> field
  90. * to the given <code>TypeCode</code> object and clears its value.
  91. * <P>
  92. * Note that using this method to set the type code wipes out the
  93. * value if there is one. The method
  94. * is provided primarily so that the type may be set properly for
  95. * IDL <code>out</code> parameters. Generally, setting the type
  96. * is done by the <code>insert_X</code> methods, which will set the type
  97. * to X if it is not already set to X.
  98. *
  99. * @param t the <code>TypeCode</code> object giving
  100. * information for the value in
  101. * this <code>Any</code> object
  102. */
  103. abstract public void type(TypeCode t);
  104. /**
  105. * Checks for equality between this <code>Any</code> object and the
  106. * given <code>Any</code> object. Two <code>Any</code> objects are
  107. * equal if both their values and type codes are equal.
  108. *
  109. * @param a the <code>Any</code> object to test for equality
  110. * @return <code>true</code> if the <code>Any</code> objects are equal;
  111. * <code>false</code> otherwise
  112. * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
  113. * comments for unimplemented features</a>
  114. */
  115. abstract public boolean equal(Any a);
  116. ///////////////////////////////////////////////////////////////////////////
  117. // marshalling/unmarshalling routines
  118. /**
  119. * Reads off (unmarshals) the value of an <code>Any</code> object from
  120. * the given input stream using the given typecode.
  121. *
  122. * @param is the <code>org.omg.CORBA.portable.InputStream</code>
  123. * object from which to read
  124. * the value contained in this <code>Any</code> object
  125. *
  126. * @param t a <code>TypeCode</code> object containing type information
  127. * about the value to be read
  128. *
  129. * @exception MARSHAL when the given <code>TypeCode</code> object is
  130. * not consistent with the value that was contained
  131. * in the input stream
  132. */
  133. abstract public void read_value(InputStream is, TypeCode t)
  134. throws MARSHAL;
  135. /**
  136. * Writes out to the given output stream the typecode and value
  137. * of this <code>Any</code> object.
  138. * <P>
  139. * If this method is called on an <code>Any</code> object that has not
  140. * had a value inserted into its <code>value</code> field, it will throw
  141. * the exception <code>java.lang.NullPointerException</code>.
  142. *
  143. * @param os the <code>org.omg.CORBA.portable.OutputStream</code>
  144. * object into which to marshal the value and typecode
  145. * of this <code>Any</code> object
  146. *
  147. */
  148. abstract public void write_value(OutputStream os);
  149. /**
  150. * Creates an output stream into which this <code>Any</code> object's
  151. * value can be marshalled.
  152. *
  153. * @return the newly-created <code>OutputStream</code>
  154. */
  155. abstract public OutputStream create_output_stream();
  156. /**
  157. * Creates an input stream from which this <code>Any</code> object's value
  158. * can be unmarshalled.
  159. *
  160. * @return the newly-created <code>InputStream</code>
  161. */
  162. abstract public InputStream create_input_stream();
  163. ///////////////////////////////////////////////////////////////////////////
  164. // insertion of streamables
  165. /**
  166. * Inserts the given <code>Streamable</code> object
  167. * into this <code>Any</code> object's <code>value</code> field.
  168. * This method allows the insertion of non-primitive IDL types.
  169. *
  170. * @param s the <code>Streamable</code> object to insert into this
  171. * <code>Any</code> object; may be a non-primitive
  172. * IDL type
  173. */
  174. abstract public void insert_Streamable(Streamable s);
  175. ///////////////////////////////////////////////////////////////////////////
  176. // basic insertion/extraction methods
  177. /**
  178. * Extracts the <code>short</code> in this
  179. * <code>Any</code> object's <code>value</code> field.
  180. *
  181. * @return the <code>short</code> stored in this <code>Any</code> object
  182. * @exception BAD_OPERATION if this <code>Any</code> object
  183. * contains something other than a <code>short</code> or the
  184. * <code>value</code> field has not yet been set
  185. */
  186. abstract public short extract_short() throws BAD_OPERATION;
  187. /**
  188. * Inserts the given <code>short</code>
  189. * into this <code>Any</code> object's <code>value</code> field.
  190. *
  191. * @param s the <code>short</code> to insert into this
  192. * <code>Any</code> object
  193. */
  194. abstract public void insert_short(short s);
  195. /**
  196. * Extracts the <code>int</code> in this
  197. * <code>Any</code> object's <code>value</code> field.
  198. *
  199. * @return the <code>int</code> stored in this <code>Any</code> object
  200. * @exception BAD_OPERATION if this <code>Any</code> object
  201. * contains something other than an <code>int</code> or the
  202. * <code>value</code> field has not yet been set
  203. */
  204. abstract public int extract_long() throws BAD_OPERATION;
  205. /**
  206. * Inserts the given <code>int</code>
  207. * into this <code>Any</code> object's <code>value</code> field.
  208. *
  209. * @param l the <code>int</code> to insert into this
  210. * <code>Any</code> object
  211. */
  212. abstract public void insert_long(int l);
  213. /**
  214. * Extracts the <code>long</code> in this
  215. * <code>Any</code> object's <code>value</code> field.
  216. *
  217. * @return the <code>long</code> stored in this <code>Any</code> object
  218. * @exception BAD_OPERATION if this <code>Any</code> object
  219. * contains something other than a <code>long</code> or the
  220. * <code>value</code> field has not yet been set
  221. */
  222. abstract public long extract_longlong() throws BAD_OPERATION;
  223. /**
  224. * Inserts the given <code>long</code>
  225. * into this <code>Any</code> object's <code>value</code> field.
  226. *
  227. * @param l the <code>long</code> to insert into this
  228. * <code>Any</code> object
  229. */
  230. abstract public void insert_longlong(long l);
  231. /**
  232. * Extracts the <code>short</code> in this
  233. * <code>Any</code> object's <code>value</code> field.
  234. *
  235. * @return the <code>short</code> stored in this <code>Any</code> object
  236. * @exception BAD_OPERATION if this <code>Any</code> object
  237. * contains something other than a <code>short</code> or the
  238. * <code>value</code> field has not yet been set
  239. */
  240. abstract public short extract_ushort() throws BAD_OPERATION;
  241. /**
  242. * Inserts the given <code>short</code>
  243. * into this <code>Any</code> object's <code>value</code> field.
  244. *
  245. * @param s the <code>short</code> to insert into this
  246. * <code>Any</code> object
  247. */
  248. abstract public void insert_ushort(short s);
  249. /**
  250. * Extracts the <code>int</code> in this
  251. * <code>Any</code> object's <code>value</code> field.
  252. *
  253. * @return the <code>int</code> stored in this <code>Any</code> object
  254. * @exception BAD_OPERATION if this <code>Any</code> object
  255. * contains something other than an <code>int</code> or the
  256. * <code>value</code> field has not yet been set
  257. */
  258. abstract public int extract_ulong() throws BAD_OPERATION;
  259. /**
  260. * Inserts the given <code>int</code>
  261. * into this <code>Any</code> object's <code>value</code> field.
  262. *
  263. * @param l the <code>int</code> to insert into this
  264. * <code>Any</code> object
  265. */
  266. abstract public void insert_ulong(int l);
  267. /**
  268. * Extracts the <code>long</code> in this
  269. * <code>Any</code> object's <code>value</code> field.
  270. *
  271. * @return the <code>long</code> stored in this <code>Any</code> object
  272. * @exception BAD_OPERATION if this <code>Any</code> object
  273. * contains something other than a <code>long</code> or the
  274. * <code>value</code> field has not yet been set
  275. */
  276. abstract public long extract_ulonglong() throws BAD_OPERATION;
  277. /**
  278. * Inserts the given <code>long</code>
  279. * into this <code>Any</code> object's <code>value</code> field.
  280. *
  281. * @param l the <code>long</code> to insert into this
  282. * <code>Any</code> object
  283. */
  284. abstract public void insert_ulonglong(long l);
  285. /**
  286. * Extracts the <code>float</code> in this
  287. * <code>Any</code> object's <code>value</code> field.
  288. *
  289. * @return the <code>float</code> stored in this <code>Any</code> object
  290. * @exception BAD_OPERATION if this <code>Any</code> object
  291. * contains something other than a <code>float</code> or the
  292. * <code>value</code> field has not yet been set
  293. */
  294. abstract public float extract_float() throws BAD_OPERATION;
  295. /**
  296. * Inserts the given <code>float</code>
  297. * into this <code>Any</code> object's <code>value</code> field.
  298. *
  299. * @param f the <code>float</code> to insert into this
  300. * <code>Any</code> object
  301. */
  302. abstract public void insert_float(float f);
  303. /**
  304. * Extracts the <code>double</code> in this
  305. * <code>Any</code> object's <code>value</code> field.
  306. *
  307. * @return the <code>double</code> stored in this <code>Any</code> object
  308. * @exception BAD_OPERATION if this <code>Any</code> object
  309. * contains something other than a <code>double</code> or the
  310. * <code>value</code> field has not yet been set
  311. */
  312. abstract public double extract_double() throws BAD_OPERATION;
  313. /**
  314. * Inserts the given <code>double</code>
  315. * into this <code>Any</code> object's <code>value</code> field.
  316. *
  317. * @param d the <code>double</code> to insert into this
  318. * <code>Any</code> object
  319. */
  320. abstract public void insert_double(double d);
  321. /**
  322. * Extracts the <code>boolean</code> in this
  323. * <code>Any</code> object's <code>value</code> field.
  324. *
  325. * @return the <code>boolean</code> stored in this <code>Any</code> object
  326. * @exception BAD_OPERATION if this <code>Any</code> object
  327. * contains something other than a <code>boolean</code> or the
  328. * <code>value</code> field has not yet been set
  329. */
  330. abstract public boolean extract_boolean() throws BAD_OPERATION;
  331. /**
  332. * Inserts the given <code>boolean</code>
  333. * into this <code>Any</code> object's <code>value</code> field.
  334. *
  335. * @param b the <code>boolean</code> to insert into this
  336. * <code>Any</code> object
  337. */
  338. abstract public void insert_boolean(boolean b);
  339. /**
  340. * Extracts the <code>char</code> in this
  341. * <code>Any</code> object's <code>value</code> field.
  342. *
  343. * @return the <code>char</code> stored in this <code>Any</code> object
  344. * @exception BAD_OPERATION if this <code>Any</code> object
  345. * contains something other than a <code>char</code> or the
  346. * <code>value</code> field has not yet been set
  347. */
  348. abstract public char extract_char() throws BAD_OPERATION;
  349. /**
  350. * Inserts the given <code>char</code>
  351. * into this <code>Any</code> object's <code>value</code> field.
  352. *
  353. * @param c the <code>char</code> to insert into this
  354. * <code>Any</code> object
  355. * @exception DATA_CONVERSION if there is a data conversion
  356. * error
  357. */
  358. abstract public void insert_char(char c) throws DATA_CONVERSION;
  359. /**
  360. * Extracts the <code>byte</code> in this
  361. * <code>Any</code> object's <code>value</code> field.
  362. *
  363. * @return the <code>byte</code> stored in this <code>Any</code> object
  364. * @exception BAD_OPERATION if this <code>Any</code> object
  365. * contains something other than a <code>byte</code> or the
  366. * <code>value</code> field has not yet been set
  367. */
  368. abstract public byte extract_octet() throws BAD_OPERATION;
  369. /**
  370. * Inserts the given <code>byte</code>
  371. * into this <code>Any</code> object's <code>value</code> field.
  372. *
  373. * @param b the <code>byte</code> to insert into this
  374. * <code>Any</code> object
  375. */
  376. abstract public void insert_octet(byte b);
  377. /**
  378. * Extracts the <code>char</code> in this
  379. * <code>Any</code> object's <code>value</code> field.
  380. *
  381. * @return the <code>char</code> stored in this <code>Any</code> object
  382. * @exception BAD_OPERATION if this <code>Any</code> object
  383. * contains something other than a <code>char</code> or the
  384. * <code>value</code> field has not yet been set
  385. */
  386. abstract public char extract_wchar() throws BAD_OPERATION;
  387. /**
  388. * Inserts the given <code>char</code>
  389. * into this <code>Any</code> object's <code>value</code> field.
  390. *
  391. * @param c the <code>char</code> to insert into this
  392. * <code>Any</code> object
  393. */
  394. abstract public void insert_wchar(char c);
  395. /**
  396. * Extracts the <code>Any</code> object in this
  397. * <code>Any</code> object's <code>value</code> field.
  398. *
  399. * @return the <code>Any</code> object stored in this <code>Any</code> object
  400. * @exception BAD_OPERATION if this <code>Any</code> object
  401. * contains something other than an <code>Any</code> object or the
  402. * <code>value</code> field has not yet been set
  403. */
  404. abstract public Any extract_any() throws BAD_OPERATION;
  405. /**
  406. * Inserts the given <code>Any</code> object
  407. * into this <code>Any</code> object's <code>value</code> field.
  408. *
  409. * @param a the <code>Any</code> object to insert into this
  410. * <code>Any</code> object
  411. */
  412. abstract public void insert_any(Any a);
  413. /**
  414. * Extracts the <code>String</code> object in this
  415. * <code>Any</code> object's <code>value</code> field.
  416. *
  417. * @return the <code>String</code> object stored in this <code>Any</code> object
  418. * @exception BAD_OPERATION if this <code>Any</code> object
  419. * contains something other than a <code>String</code> object or the
  420. * <code>value</code> field has not yet been set
  421. */
  422. abstract public String extract_string() throws BAD_OPERATION;
  423. /**
  424. * Inserts the given <code>String</code> object
  425. * into this <code>Any</code> object's <code>value</code> field.
  426. *
  427. * @param s the <code>String</code> object to insert into this
  428. * <code>Any</code> object
  429. * @exception DATA_CONVERSION if there is a data conversion error
  430. * @exception MARSHAL if the ORB has a problem marshalling or
  431. * unmarshalling parameters
  432. */
  433. abstract public void insert_string(String s) throws DATA_CONVERSION, MARSHAL;
  434. /**
  435. * Extracts the <code>String</code> object in this
  436. * <code>Any</code> object's <code>value</code> field.
  437. *
  438. * @return the <code>String</code> object stored in this <code>Any</code> object
  439. * @exception BAD_OPERATION if this <code>Any</code> object
  440. * contains something other than a <code>String</code> object or the
  441. * <code>value</code> field has not yet been set
  442. */
  443. abstract public String extract_wstring() throws BAD_OPERATION;
  444. /**
  445. * Inserts the given <code>String</code> object
  446. * into this <code>Any</code> object's <code>value</code> field.
  447. *
  448. * @param s the <code>String</code> object to insert into this
  449. * <code>Any</code> object
  450. * @exception MARSHAL if the ORB has a problem marshalling or
  451. * unmarshalling parameters
  452. */
  453. abstract public void insert_wstring(String s) throws MARSHAL;
  454. /**
  455. * Extracts the <code>org.omg.CORBA.Object</code> in this
  456. * <code>Any</code> object's <code>value</code> field.
  457. *
  458. * @return the <code>org.omg.CORBA.Object</code> stored in
  459. * this <code>Any</code> object
  460. * @exception BAD_OPERATION if this <code>Any</code> object
  461. * contains something other than an
  462. * <code>org.omg.CORBA.Object</code> or the
  463. * <code>value</code> field has not yet been set
  464. */
  465. abstract public org.omg.CORBA.Object extract_Object() throws BAD_OPERATION;
  466. /**
  467. * Inserts the given <code>org.omg.CORBA.Object</code> object
  468. * into this <code>Any</code> object's <code>value</code> field.
  469. *
  470. * @param o the <code>org.omg.CORBA.Object</code> object to insert into this
  471. * <code>Any</code> object
  472. */
  473. abstract public void insert_Object(org.omg.CORBA.Object o);
  474. /**
  475. * Inserts the given <code>org.omg.CORBA.Object</code> object
  476. * into this <code>Any</code> object's <code>value</code> field.
  477. *
  478. * @param o the <code>org.omg.CORBA.Object</code> instance to insert into this
  479. * <code>Any</code> object
  480. * @param t the <code>TypeCode</code> object that is to be inserted into
  481. * this <code>Any</code> object and that describes
  482. * the <code>Object</code> being inserted
  483. * @exception BAD_OPERATION if this method is invalid for this
  484. * <code>Any</code> object
  485. *
  486. */
  487. abstract public void insert_Object(org.omg.CORBA.Object o,
  488. TypeCode t)
  489. throws BAD_OPERATION;
  490. /**
  491. * Extracts the <code>TypeCode</code> object in this
  492. * <code>Any</code> object's <code>value</code> field.
  493. *
  494. * @return the <code>TypeCode</code> object stored in this <code>Any</code> object
  495. * @exception BAD_OPERATION if this <code>Any</code> object
  496. * contains something other than a <code>TypeCode</code> object or the
  497. * <code>value</code> field has not yet been set
  498. */
  499. abstract public TypeCode extract_TypeCode() throws BAD_OPERATION;
  500. /**
  501. * Inserts the given <code>TypeCode</code> object
  502. * into this <code>Any</code> object's <code>value</code> field.
  503. *
  504. * @param t the <code>TypeCode</code> object to insert into this
  505. * <code>Any</code> object
  506. */
  507. abstract public void insert_TypeCode(TypeCode t);
  508. /**
  509. * Extracts the <code>Principal</code> object in this
  510. * <code>Any</code> object's <code>value</code> field.
  511. * Note that the class <code>Principal</code> has been deprecated.
  512. *
  513. * @return the <code>Principal</code> object stored in this <code>Any</code> object
  514. * @exception BAD_OPERATION if this <code>Any</code> object
  515. * contains something other than a
  516. * <code>Principal</code> object or the
  517. * <code>value</code> field has not yet been set
  518. * @deprecated Deprecated by CORBA 2.2.
  519. */
  520. abstract public Principal extract_Principal() throws BAD_OPERATION;
  521. /**
  522. * Inserts the given <code>Principal</code> object
  523. * into this <code>Any</code> object's <code>value</code> field.
  524. * Note that the class <code>Principal</code> has been deprecated.
  525. *
  526. * @param p the <code>Principal</code> object to insert into this
  527. * <code>Any</code> object
  528. * @deprecated Deprecated by CORBA 2.2.
  529. */
  530. abstract public void insert_Principal(Principal p);
  531. /**
  532. * Extracts the <code>java.math.BigDecimal</code> object in this
  533. * <code>Any</code> object's <code>value</code> field.
  534. *
  535. * @return the <code>java.math.BigDecimal</code> object
  536. * stored in this <code>Any</code> object
  537. * @exception BAD_OPERATION if this <code>Any</code> object
  538. * contains something other than a
  539. * <code>java.math.BigDecimal</code> object or the
  540. * <code>value</code> field has not yet been set
  541. */
  542. public java.math.BigDecimal extract_fixed() {
  543. throw new org.omg.CORBA.NO_IMPLEMENT();
  544. }
  545. /**
  546. * Inserts the given <code>java.math.BigDecimal</code> object
  547. * into this <code>Any</code> object's <code>value</code> field.
  548. *
  549. * @param value the <code>java.math.BigDecimal</code> object
  550. * to insert into this <code>Any</code> object
  551. */
  552. public void insert_fixed(java.math.BigDecimal value) {
  553. throw new org.omg.CORBA.NO_IMPLEMENT();
  554. }
  555. /**
  556. * Inserts the given <code>java.math.BigDecimal</code> object
  557. * into this <code>Any</code> object's <code>value</code> field.
  558. *
  559. * @param value the <code>java.math.BigDecimal</code> object
  560. * to insert into this <code>Any</code> object
  561. * @param type the <code>TypeCode</code> object that is to be inserted into
  562. * this <code>Any</code> object's <code>type</code> field
  563. * and that describes the <code>java.math.BigDecimal</code>
  564. * object being inserted
  565. */
  566. public void insert_fixed(java.math.BigDecimal value, org.omg.CORBA.TypeCode type)
  567. {
  568. throw new org.omg.CORBA.NO_IMPLEMENT();
  569. }
  570. // Changes due to orbos/98-01-18: Objects-by-Value
  571. /**
  572. * Extracts the <code>java.io.Serializable</code> object in this
  573. * <code>Any</code> object's <code>value</code> field.
  574. *
  575. * @return the <code>java.io.Serializable</code> object stored in
  576. * this <code>Any</code> object
  577. * @exception BAD_OPERATION if this <code>Any</code> object
  578. * contains something other than a <code>java.io.Serializable</code>
  579. * object or the
  580. * <code>value</code> field has not yet been set
  581. */
  582. public java.io.Serializable extract_Value() throws BAD_OPERATION {
  583. throw new org.omg.CORBA.NO_IMPLEMENT();
  584. }
  585. /**
  586. * Inserts the given <code>java.io.Serializable</code> object
  587. * into this <code>Any</code> object's <code>value</code> field.
  588. *
  589. * @param v the <code>java.io.Serializable</code> object to insert into this
  590. * <code>Any</code> object
  591. */
  592. public void insert_Value(java.io.Serializable v) {
  593. throw new org.omg.CORBA.NO_IMPLEMENT();
  594. }
  595. /**
  596. * Inserts the given <code>java.io.Serializable</code> object
  597. * into this <code>Any</code> object's <code>value</code> field.
  598. *
  599. * @param v the <code>java.io.Serializable</code> object to insert into this
  600. * <code>Any</code> object
  601. * @param t the <code>TypeCode</code> object that is to be inserted into
  602. * this <code>Any</code> object's <code>type</code> field
  603. * and that describes the <code>java.io.Serializable</code>
  604. * object being inserted
  605. * @throws MARSHAL if the ORB has a problem marshalling or
  606. * unmarshalling parameters
  607. */
  608. public void insert_Value(java.io.Serializable v, TypeCode t)
  609. throws MARSHAL
  610. {
  611. throw new org.omg.CORBA.NO_IMPLEMENT();
  612. }
  613. }