_DynValueStub.java 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. /* _DynValueStub.java --
  2. Copyright (C) 2005, 2006 Free Software Foundation, Inc.
  3. This file is part of GNU Classpath.
  4. GNU Classpath is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. GNU Classpath is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNU Classpath; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. 02110-1301 USA.
  16. Linking this library statically or dynamically with other modules is
  17. making a combined work based on this library. Thus, the terms and
  18. conditions of the GNU General Public License cover the whole
  19. combination.
  20. As a special exception, the copyright holders of this library give you
  21. permission to link this library with independent modules to produce an
  22. executable, regardless of the license terms of these independent
  23. modules, and to copy and distribute the resulting executable under
  24. terms of your choice, provided that you also meet, for each linked
  25. independent module, the terms and conditions of the license of that
  26. module. An independent module is a module which is not derived from
  27. or based on this library. If you modify this library, you may extend
  28. this exception to your version of the library, but you are not
  29. obligated to do so. If you do not wish to do so, delete this
  30. exception statement from your version. */
  31. package org.omg.DynamicAny;
  32. import org.omg.CORBA.Any;
  33. import org.omg.CORBA.MARSHAL;
  34. import org.omg.CORBA.TCKind;
  35. import org.omg.CORBA.TypeCode;
  36. import org.omg.CORBA.portable.Delegate;
  37. import org.omg.CORBA.portable.ObjectImpl;
  38. import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  39. import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
  40. import java.io.Serializable;
  41. /**
  42. * Should provide support for remote invocation of methods on DynValue. As
  43. * DynValue can never be remote at least till 1.5 inclusive, this class is
  44. * not in use.
  45. *
  46. * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
  47. */
  48. public class _DynValueStub
  49. extends ObjectImpl
  50. implements DynValue, Serializable
  51. {
  52. /**
  53. * Use serialVersionUID (v1.4) for interoperability.
  54. */
  55. private static final long serialVersionUID = 5815313794012360824L;
  56. /**
  57. * The purpose and value of this field are not documented.
  58. */
  59. @SuppressWarnings("rawtypes") // Needed for API compatibility
  60. public static final Class _opsClass = DynValueOperations.class;
  61. /**
  62. * Create the DynValue stub. To get the stub working,
  63. * you must later set the delegate with
  64. * {@link org.omg.CORBA.portable.ObjectImpl#_set_delegate(Delegate)}.
  65. */
  66. public _DynValueStub()
  67. {
  68. }
  69. /**
  70. * Return the array of repository ids for this object.
  71. */
  72. public String[] _ids()
  73. {
  74. return new String[] { DynValueHelper.id() };
  75. }
  76. /**
  77. * The remote call of DynAny methods is not possible.
  78. *
  79. * @throws MARSHAL, always.
  80. */
  81. public TCKind current_member_kind()
  82. throws TypeMismatch, InvalidValue
  83. {
  84. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  85. }
  86. /**
  87. * The remote call of DynAny methods is not possible.
  88. *
  89. * @throws MARSHAL, always.
  90. */
  91. public String current_member_name()
  92. throws TypeMismatch, InvalidValue
  93. {
  94. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  95. }
  96. /**
  97. * The remote call of DynAny methods is not possible.
  98. *
  99. * @throws MARSHAL, always.
  100. */
  101. public NameValuePair[] get_members()
  102. throws InvalidValue
  103. {
  104. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  105. }
  106. /**
  107. * The remote call of DynAny methods is not possible.
  108. *
  109. * @throws MARSHAL, always.
  110. */
  111. public NameDynAnyPair[] get_members_as_dyn_any()
  112. throws InvalidValue
  113. {
  114. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  115. }
  116. /**
  117. * The remote call of DynAny methods is not possible.
  118. *
  119. * @throws MARSHAL, always.
  120. */
  121. public void set_members(NameValuePair[] a_members)
  122. throws TypeMismatch, InvalidValue
  123. {
  124. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  125. }
  126. /**
  127. * The remote call of DynAny methods is not possible.
  128. *
  129. * @throws MARSHAL, always.
  130. */
  131. public void set_members_as_dyn_any(NameDynAnyPair[] a_members)
  132. throws TypeMismatch, InvalidValue
  133. {
  134. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  135. }
  136. /**
  137. * The remote call of DynAny methods is not possible.
  138. *
  139. * @throws MARSHAL, always.
  140. */
  141. public boolean is_null()
  142. {
  143. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  144. }
  145. /**
  146. * The remote call of DynAny methods is not possible.
  147. *
  148. * @throws MARSHAL, always.
  149. */
  150. public void set_to_null()
  151. {
  152. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  153. }
  154. /**
  155. * The remote call of DynAny methods is not possible.
  156. *
  157. * @throws MARSHAL, always.
  158. */
  159. public void set_to_value()
  160. {
  161. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  162. }
  163. /**
  164. * The remote call of DynAny methods is not possible.
  165. *
  166. * @throws MARSHAL, always.
  167. */
  168. public TypeCode type()
  169. {
  170. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  171. }
  172. /**
  173. * The remote call of DynAny methods is not possible.
  174. *
  175. * @throws MARSHAL, always.
  176. */
  177. public boolean next()
  178. {
  179. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  180. }
  181. /**
  182. * The remote call of DynAny methods is not possible.
  183. *
  184. * @throws MARSHAL, always.
  185. */
  186. public void destroy()
  187. {
  188. }
  189. /**
  190. * The remote call of DynAny methods is not possible.
  191. *
  192. * @throws MARSHAL, always.
  193. */
  194. public DynAny copy()
  195. {
  196. return this;
  197. }
  198. /**
  199. * The remote call of DynAny methods is not possible.
  200. *
  201. * @throws MARSHAL, always.
  202. */
  203. public void rewind()
  204. {
  205. }
  206. /**
  207. * The remote call of DynAny methods is not possible.
  208. *
  209. * @throws MARSHAL, always.
  210. */
  211. public void assign(DynAny _0)
  212. throws TypeMismatch
  213. {
  214. }
  215. /**
  216. * The remote call of DynAny methods is not possible.
  217. *
  218. * @throws MARSHAL, always.
  219. */
  220. public int component_count()
  221. {
  222. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  223. }
  224. /**
  225. * The remote call of DynAny methods is not possible.
  226. *
  227. * @throws MARSHAL, always.
  228. */
  229. public DynAny current_component()
  230. throws TypeMismatch
  231. {
  232. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  233. }
  234. /**
  235. * The remote call of DynAny methods is not possible.
  236. *
  237. * @throws MARSHAL, always.
  238. */
  239. public boolean equal(DynAny _0)
  240. {
  241. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  242. }
  243. /**
  244. * The remote call of DynAny methods is not possible.
  245. *
  246. * @throws MARSHAL, always.
  247. */
  248. public void from_any(Any _0)
  249. throws TypeMismatch, InvalidValue
  250. {
  251. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  252. }
  253. /**
  254. * The remote call of DynAny methods is not possible.
  255. *
  256. * @throws MARSHAL, always.
  257. */
  258. public Any get_any()
  259. throws TypeMismatch, InvalidValue
  260. {
  261. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  262. }
  263. /**
  264. * The remote call of DynAny methods is not possible.
  265. *
  266. * @throws MARSHAL, always.
  267. */
  268. public boolean get_boolean()
  269. throws TypeMismatch, InvalidValue
  270. {
  271. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  272. }
  273. /**
  274. * The remote call of DynAny methods is not possible.
  275. *
  276. * @throws MARSHAL, always.
  277. */
  278. public char get_char()
  279. throws TypeMismatch, InvalidValue
  280. {
  281. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  282. }
  283. /**
  284. * The remote call of DynAny methods is not possible.
  285. *
  286. * @throws MARSHAL, always.
  287. */
  288. public double get_double()
  289. throws TypeMismatch, InvalidValue
  290. {
  291. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  292. }
  293. /**
  294. * The remote call of DynAny methods is not possible.
  295. *
  296. * @throws MARSHAL, always.
  297. */
  298. public DynAny get_dyn_any()
  299. throws TypeMismatch, InvalidValue
  300. {
  301. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  302. }
  303. /**
  304. * The remote call of DynAny methods is not possible.
  305. *
  306. * @throws MARSHAL, always.
  307. */
  308. public float get_float()
  309. throws TypeMismatch, InvalidValue
  310. {
  311. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  312. }
  313. /**
  314. * The remote call of DynAny methods is not possible.
  315. *
  316. * @throws MARSHAL, always.
  317. */
  318. public int get_long()
  319. throws TypeMismatch, InvalidValue
  320. {
  321. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  322. }
  323. /**
  324. * The remote call of DynAny methods is not possible.
  325. *
  326. * @throws MARSHAL, always.
  327. */
  328. public long get_longlong()
  329. throws TypeMismatch, InvalidValue
  330. {
  331. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  332. }
  333. /**
  334. * The remote call of DynAny methods is not possible.
  335. *
  336. * @throws MARSHAL, always.
  337. */
  338. public byte get_octet()
  339. throws TypeMismatch, InvalidValue
  340. {
  341. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  342. }
  343. /**
  344. * The remote call of DynAny methods is not possible.
  345. *
  346. * @throws MARSHAL, always.
  347. */
  348. public org.omg.CORBA.Object get_reference()
  349. throws TypeMismatch, InvalidValue
  350. {
  351. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  352. }
  353. /**
  354. * The remote call of DynAny methods is not possible.
  355. *
  356. * @throws MARSHAL, always.
  357. */
  358. public short get_short()
  359. throws TypeMismatch, InvalidValue
  360. {
  361. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  362. }
  363. /**
  364. * The remote call of DynAny methods is not possible.
  365. *
  366. * @throws MARSHAL, always.
  367. */
  368. public String get_string()
  369. throws TypeMismatch, InvalidValue
  370. {
  371. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  372. }
  373. /**
  374. * The remote call of DynAny methods is not possible.
  375. *
  376. * @throws MARSHAL, always.
  377. */
  378. public TypeCode get_typecode()
  379. throws TypeMismatch, InvalidValue
  380. {
  381. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  382. }
  383. /**
  384. * The remote call of DynAny methods is not possible.
  385. *
  386. * @throws MARSHAL, always.
  387. */
  388. public int get_ulong()
  389. throws TypeMismatch, InvalidValue
  390. {
  391. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  392. }
  393. /**
  394. * The remote call of DynAny methods is not possible.
  395. *
  396. * @throws MARSHAL, always.
  397. */
  398. public long get_ulonglong()
  399. throws TypeMismatch, InvalidValue
  400. {
  401. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  402. }
  403. /**
  404. * The remote call of DynAny methods is not possible.
  405. *
  406. * @throws MARSHAL, always.
  407. */
  408. public short get_ushort()
  409. throws TypeMismatch, InvalidValue
  410. {
  411. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  412. }
  413. /**
  414. * The remote call of DynAny methods is not possible.
  415. *
  416. * @throws MARSHAL, always.
  417. */
  418. public Serializable get_val()
  419. throws TypeMismatch, InvalidValue
  420. {
  421. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  422. }
  423. /**
  424. * The remote call of DynAny methods is not possible.
  425. *
  426. * @throws MARSHAL, always.
  427. */
  428. public char get_wchar()
  429. throws TypeMismatch, InvalidValue
  430. {
  431. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  432. }
  433. /**
  434. * The remote call of DynAny methods is not possible.
  435. *
  436. * @throws MARSHAL, always.
  437. */
  438. public String get_wstring()
  439. throws TypeMismatch, InvalidValue
  440. {
  441. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  442. }
  443. /**
  444. * The remote call of DynAny methods is not possible.
  445. *
  446. * @throws MARSHAL, always.
  447. */
  448. public void insert_any(Any _0)
  449. throws TypeMismatch, InvalidValue
  450. {
  451. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  452. }
  453. /**
  454. * The remote call of DynAny methods is not possible.
  455. *
  456. * @throws MARSHAL, always.
  457. */
  458. public void insert_boolean(boolean _0)
  459. throws TypeMismatch, InvalidValue
  460. {
  461. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  462. }
  463. /**
  464. * The remote call of DynAny methods is not possible.
  465. *
  466. * @throws MARSHAL, always.
  467. */
  468. public void insert_char(char _0)
  469. throws TypeMismatch, InvalidValue
  470. {
  471. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  472. }
  473. /**
  474. * The remote call of DynAny methods is not possible.
  475. *
  476. * @throws MARSHAL, always.
  477. */
  478. public void insert_double(double _0)
  479. throws TypeMismatch, InvalidValue
  480. {
  481. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  482. }
  483. /**
  484. * The remote call of DynAny methods is not possible.
  485. *
  486. * @throws MARSHAL, always.
  487. */
  488. public void insert_dyn_any(DynAny _0)
  489. throws TypeMismatch, InvalidValue
  490. {
  491. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  492. }
  493. /**
  494. * The remote call of DynAny methods is not possible.
  495. *
  496. * @throws MARSHAL, always.
  497. */
  498. public void insert_float(float _0)
  499. throws TypeMismatch, InvalidValue
  500. {
  501. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  502. }
  503. /**
  504. * The remote call of DynAny methods is not possible.
  505. *
  506. * @throws MARSHAL, always.
  507. */
  508. public void insert_long(int _0)
  509. throws TypeMismatch, InvalidValue
  510. {
  511. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  512. }
  513. /**
  514. * The remote call of DynAny methods is not possible.
  515. *
  516. * @throws MARSHAL, always.
  517. */
  518. public void insert_longlong(long _0)
  519. throws TypeMismatch, InvalidValue
  520. {
  521. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  522. }
  523. /**
  524. * The remote call of DynAny methods is not possible.
  525. *
  526. * @throws MARSHAL, always.
  527. */
  528. public void insert_octet(byte _0)
  529. throws TypeMismatch, InvalidValue
  530. {
  531. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  532. }
  533. /**
  534. * The remote call of DynAny methods is not possible.
  535. *
  536. * @throws MARSHAL, always.
  537. */
  538. public void insert_reference(org.omg.CORBA.Object _0)
  539. throws TypeMismatch, InvalidValue
  540. {
  541. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  542. }
  543. /**
  544. * The remote call of DynAny methods is not possible.
  545. *
  546. * @throws MARSHAL, always.
  547. */
  548. public void insert_short(short _0)
  549. throws TypeMismatch, InvalidValue
  550. {
  551. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  552. }
  553. /**
  554. * The remote call of DynAny methods is not possible.
  555. *
  556. * @throws MARSHAL, always.
  557. */
  558. public void insert_string(String _0)
  559. throws TypeMismatch, InvalidValue
  560. {
  561. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  562. }
  563. /**
  564. * The remote call of DynAny methods is not possible.
  565. *
  566. * @throws MARSHAL, always.
  567. */
  568. public void insert_typecode(TypeCode _0)
  569. throws TypeMismatch, InvalidValue
  570. {
  571. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  572. }
  573. /**
  574. * The remote call of DynAny methods is not possible.
  575. *
  576. * @throws MARSHAL, always.
  577. */
  578. public void insert_ulong(int _0)
  579. throws TypeMismatch, InvalidValue
  580. {
  581. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  582. }
  583. /**
  584. * The remote call of DynAny methods is not possible.
  585. *
  586. * @throws MARSHAL, always.
  587. */
  588. public void insert_ulonglong(long _0)
  589. throws TypeMismatch, InvalidValue
  590. {
  591. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  592. }
  593. /**
  594. * The remote call of DynAny methods is not possible.
  595. *
  596. * @throws MARSHAL, always.
  597. */
  598. public void insert_ushort(short _0)
  599. throws TypeMismatch, InvalidValue
  600. {
  601. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  602. }
  603. /**
  604. * The remote call of DynAny methods is not possible.
  605. *
  606. * @throws MARSHAL, always.
  607. */
  608. public void insert_val(Serializable _0)
  609. throws TypeMismatch, InvalidValue
  610. {
  611. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  612. }
  613. /**
  614. * The remote call of DynAny methods is not possible.
  615. *
  616. * @throws MARSHAL, always.
  617. */
  618. public void insert_wchar(char _0)
  619. throws TypeMismatch, InvalidValue
  620. {
  621. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  622. }
  623. /**
  624. * The remote call of DynAny methods is not possible.
  625. *
  626. * @throws MARSHAL, always.
  627. */
  628. public void insert_wstring(String _0)
  629. throws TypeMismatch, InvalidValue
  630. {
  631. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  632. }
  633. /**
  634. * The remote call of DynAny methods is not possible.
  635. *
  636. * @throws MARSHAL, always.
  637. */
  638. public boolean seek(int _0)
  639. {
  640. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  641. }
  642. /**
  643. * The remote call of DynAny methods is not possible.
  644. *
  645. * @throws MARSHAL, always.
  646. */
  647. public Any to_any()
  648. {
  649. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  650. }
  651. }