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