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