_DynArrayStub.java 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. /* _DynArrayStub.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 java.io.Serializable;
  33. import org.omg.CORBA.Any;
  34. import org.omg.CORBA.MARSHAL;
  35. import org.omg.CORBA.TypeCode;
  36. import org.omg.CORBA.portable.ObjectImpl;
  37. import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  38. import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
  39. /**
  40. * Should provide support for remote invocation of methods on DynArray. As
  41. * DynArray can never be remote at least till 1.5 inclusive, this class is
  42. * not in use.
  43. *
  44. * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
  45. */
  46. public class _DynArrayStub
  47. extends ObjectImpl
  48. implements DynArray, Serializable
  49. {
  50. /**
  51. * Use serialVersionUID for interoperability.
  52. */
  53. private static final long serialVersionUID = -6302474930370950228L;
  54. /**
  55. * The purpose and value of this field are not documented.
  56. */
  57. @SuppressWarnings("rawtypes") // Needed for API compatibility
  58. public static final Class _opsClass = DynArrayOperations.class;
  59. /**
  60. * Create the DynArray stub.
  61. */
  62. public _DynArrayStub()
  63. {
  64. }
  65. /**
  66. * Return the array of repository ids for this object.
  67. */
  68. public String[] _ids()
  69. {
  70. return new String[] { DynArrayHelper.id() };
  71. }
  72. /**
  73. * The remote call of DynArray methods is not possible.
  74. *
  75. * @throws MARSHAL, always.
  76. */
  77. public Any[] get_elements()
  78. {
  79. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  80. }
  81. /**
  82. * The remote call of DynArray methods is not possible.
  83. *
  84. * @throws MARSHAL, always.
  85. */
  86. public DynAny[] get_elements_as_dyn_any()
  87. {
  88. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  89. }
  90. /**
  91. * The remote call of DynArray methods is not possible.
  92. *
  93. * @throws MARSHAL, always.
  94. */
  95. public void set_elements(Any[] _0)
  96. throws TypeMismatch, InvalidValue
  97. {
  98. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  99. }
  100. /**
  101. * The remote call of DynArray methods is not possible.
  102. *
  103. * @throws MARSHAL, always.
  104. */
  105. public void set_elements_as_dyn_any(DynAny[] _0)
  106. throws TypeMismatch, InvalidValue
  107. {
  108. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  109. }
  110. /**
  111. * The remote call of DynAny methods is not possible.
  112. *
  113. * @throws MARSHAL, always.
  114. */
  115. public TypeCode type()
  116. {
  117. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  118. }
  119. /**
  120. * The remote call of DynAny methods is not possible.
  121. *
  122. * @throws MARSHAL, always.
  123. */
  124. public boolean next()
  125. {
  126. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  127. }
  128. /**
  129. * The remote call of DynAny methods is not possible.
  130. *
  131. * @throws MARSHAL, always.
  132. */
  133. public void destroy()
  134. {
  135. }
  136. /**
  137. * The remote call of DynAny methods is not possible.
  138. *
  139. * @throws MARSHAL, always.
  140. */
  141. public DynAny copy()
  142. {
  143. return this;
  144. }
  145. /**
  146. * The remote call of DynAny methods is not possible.
  147. *
  148. * @throws MARSHAL, always.
  149. */
  150. public void rewind()
  151. {
  152. }
  153. /**
  154. * The remote call of DynAny methods is not possible.
  155. *
  156. * @throws MARSHAL, always.
  157. */
  158. public void assign(DynAny _0)
  159. throws TypeMismatch
  160. {
  161. }
  162. /**
  163. * The remote call of DynAny methods is not possible.
  164. *
  165. * @throws MARSHAL, always.
  166. */
  167. public int component_count()
  168. {
  169. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  170. }
  171. /**
  172. * The remote call of DynAny methods is not possible.
  173. *
  174. * @throws MARSHAL, always.
  175. */
  176. public DynAny current_component()
  177. throws TypeMismatch
  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 boolean equal(DynAny _0)
  187. {
  188. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  189. }
  190. /**
  191. * The remote call of DynAny methods is not possible.
  192. *
  193. * @throws MARSHAL, always.
  194. */
  195. public void from_any(Any _0)
  196. throws TypeMismatch, InvalidValue
  197. {
  198. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  199. }
  200. /**
  201. * The remote call of DynAny methods is not possible.
  202. *
  203. * @throws MARSHAL, always.
  204. */
  205. public Any get_any()
  206. throws TypeMismatch, InvalidValue
  207. {
  208. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  209. }
  210. /**
  211. * The remote call of DynAny methods is not possible.
  212. *
  213. * @throws MARSHAL, always.
  214. */
  215. public boolean get_boolean()
  216. throws TypeMismatch, InvalidValue
  217. {
  218. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  219. }
  220. /**
  221. * The remote call of DynAny methods is not possible.
  222. *
  223. * @throws MARSHAL, always.
  224. */
  225. public char get_char()
  226. throws TypeMismatch, InvalidValue
  227. {
  228. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  229. }
  230. /**
  231. * The remote call of DynAny methods is not possible.
  232. *
  233. * @throws MARSHAL, always.
  234. */
  235. public double get_double()
  236. throws TypeMismatch, InvalidValue
  237. {
  238. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  239. }
  240. /**
  241. * The remote call of DynAny methods is not possible.
  242. *
  243. * @throws MARSHAL, always.
  244. */
  245. public DynAny get_dyn_any()
  246. throws TypeMismatch, InvalidValue
  247. {
  248. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  249. }
  250. /**
  251. * The remote call of DynAny methods is not possible.
  252. *
  253. * @throws MARSHAL, always.
  254. */
  255. public float get_float()
  256. throws TypeMismatch, InvalidValue
  257. {
  258. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  259. }
  260. /**
  261. * The remote call of DynAny methods is not possible.
  262. *
  263. * @throws MARSHAL, always.
  264. */
  265. public int get_long()
  266. throws TypeMismatch, InvalidValue
  267. {
  268. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  269. }
  270. /**
  271. * The remote call of DynAny methods is not possible.
  272. *
  273. * @throws MARSHAL, always.
  274. */
  275. public long get_longlong()
  276. throws TypeMismatch, InvalidValue
  277. {
  278. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  279. }
  280. /**
  281. * The remote call of DynAny methods is not possible.
  282. *
  283. * @throws MARSHAL, always.
  284. */
  285. public byte get_octet()
  286. throws TypeMismatch, InvalidValue
  287. {
  288. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  289. }
  290. /**
  291. * The remote call of DynAny methods is not possible.
  292. *
  293. * @throws MARSHAL, always.
  294. */
  295. public org.omg.CORBA.Object get_reference()
  296. throws TypeMismatch, InvalidValue
  297. {
  298. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  299. }
  300. /**
  301. * The remote call of DynAny methods is not possible.
  302. *
  303. * @throws MARSHAL, always.
  304. */
  305. public short get_short()
  306. throws TypeMismatch, InvalidValue
  307. {
  308. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  309. }
  310. /**
  311. * The remote call of DynAny methods is not possible.
  312. *
  313. * @throws MARSHAL, always.
  314. */
  315. public String get_string()
  316. throws TypeMismatch, InvalidValue
  317. {
  318. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  319. }
  320. /**
  321. * The remote call of DynAny methods is not possible.
  322. *
  323. * @throws MARSHAL, always.
  324. */
  325. public TypeCode get_typecode()
  326. throws TypeMismatch, InvalidValue
  327. {
  328. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  329. }
  330. /**
  331. * The remote call of DynAny methods is not possible.
  332. *
  333. * @throws MARSHAL, always.
  334. */
  335. public int get_ulong()
  336. throws TypeMismatch, InvalidValue
  337. {
  338. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  339. }
  340. /**
  341. * The remote call of DynAny methods is not possible.
  342. *
  343. * @throws MARSHAL, always.
  344. */
  345. public long get_ulonglong()
  346. throws TypeMismatch, InvalidValue
  347. {
  348. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  349. }
  350. /**
  351. * The remote call of DynAny methods is not possible.
  352. *
  353. * @throws MARSHAL, always.
  354. */
  355. public short get_ushort()
  356. throws TypeMismatch, InvalidValue
  357. {
  358. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  359. }
  360. /**
  361. * The remote call of DynAny methods is not possible.
  362. *
  363. * @throws MARSHAL, always.
  364. */
  365. public Serializable get_val()
  366. throws TypeMismatch, InvalidValue
  367. {
  368. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  369. }
  370. /**
  371. * The remote call of DynAny methods is not possible.
  372. *
  373. * @throws MARSHAL, always.
  374. */
  375. public char get_wchar()
  376. throws TypeMismatch, InvalidValue
  377. {
  378. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  379. }
  380. /**
  381. * The remote call of DynAny methods is not possible.
  382. *
  383. * @throws MARSHAL, always.
  384. */
  385. public String get_wstring()
  386. throws TypeMismatch, InvalidValue
  387. {
  388. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  389. }
  390. /**
  391. * The remote call of DynAny methods is not possible.
  392. *
  393. * @throws MARSHAL, always.
  394. */
  395. public void insert_any(Any _0)
  396. throws TypeMismatch, InvalidValue
  397. {
  398. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  399. }
  400. /**
  401. * The remote call of DynAny methods is not possible.
  402. *
  403. * @throws MARSHAL, always.
  404. */
  405. public void insert_boolean(boolean _0)
  406. throws TypeMismatch, InvalidValue
  407. {
  408. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  409. }
  410. /**
  411. * The remote call of DynAny methods is not possible.
  412. *
  413. * @throws MARSHAL, always.
  414. */
  415. public void insert_char(char _0)
  416. throws TypeMismatch, InvalidValue
  417. {
  418. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  419. }
  420. /**
  421. * The remote call of DynAny methods is not possible.
  422. *
  423. * @throws MARSHAL, always.
  424. */
  425. public void insert_double(double _0)
  426. throws TypeMismatch, InvalidValue
  427. {
  428. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  429. }
  430. /**
  431. * The remote call of DynAny methods is not possible.
  432. *
  433. * @throws MARSHAL, always.
  434. */
  435. public void insert_dyn_any(DynAny _0)
  436. throws TypeMismatch, InvalidValue
  437. {
  438. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  439. }
  440. /**
  441. * The remote call of DynAny methods is not possible.
  442. *
  443. * @throws MARSHAL, always.
  444. */
  445. public void insert_float(float _0)
  446. throws TypeMismatch, InvalidValue
  447. {
  448. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  449. }
  450. /**
  451. * The remote call of DynAny methods is not possible.
  452. *
  453. * @throws MARSHAL, always.
  454. */
  455. public void insert_long(int _0)
  456. throws TypeMismatch, InvalidValue
  457. {
  458. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  459. }
  460. /**
  461. * The remote call of DynAny methods is not possible.
  462. *
  463. * @throws MARSHAL, always.
  464. */
  465. public void insert_longlong(long _0)
  466. throws TypeMismatch, InvalidValue
  467. {
  468. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  469. }
  470. /**
  471. * The remote call of DynAny methods is not possible.
  472. *
  473. * @throws MARSHAL, always.
  474. */
  475. public void insert_octet(byte _0)
  476. throws TypeMismatch, InvalidValue
  477. {
  478. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  479. }
  480. /**
  481. * The remote call of DynAny methods is not possible.
  482. *
  483. * @throws MARSHAL, always.
  484. */
  485. public void insert_reference(org.omg.CORBA.Object _0)
  486. throws TypeMismatch, InvalidValue
  487. {
  488. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  489. }
  490. /**
  491. * The remote call of DynAny methods is not possible.
  492. *
  493. * @throws MARSHAL, always.
  494. */
  495. public void insert_short(short _0)
  496. throws TypeMismatch, InvalidValue
  497. {
  498. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  499. }
  500. /**
  501. * The remote call of DynAny methods is not possible.
  502. *
  503. * @throws MARSHAL, always.
  504. */
  505. public void insert_string(String _0)
  506. throws TypeMismatch, InvalidValue
  507. {
  508. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  509. }
  510. /**
  511. * The remote call of DynAny methods is not possible.
  512. *
  513. * @throws MARSHAL, always.
  514. */
  515. public void insert_typecode(TypeCode _0)
  516. throws TypeMismatch, InvalidValue
  517. {
  518. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  519. }
  520. /**
  521. * The remote call of DynAny methods is not possible.
  522. *
  523. * @throws MARSHAL, always.
  524. */
  525. public void insert_ulong(int _0)
  526. throws TypeMismatch, InvalidValue
  527. {
  528. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  529. }
  530. /**
  531. * The remote call of DynAny methods is not possible.
  532. *
  533. * @throws MARSHAL, always.
  534. */
  535. public void insert_ulonglong(long _0)
  536. throws TypeMismatch, InvalidValue
  537. {
  538. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  539. }
  540. /**
  541. * The remote call of DynAny methods is not possible.
  542. *
  543. * @throws MARSHAL, always.
  544. */
  545. public void insert_ushort(short _0)
  546. throws TypeMismatch, InvalidValue
  547. {
  548. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  549. }
  550. /**
  551. * The remote call of DynAny methods is not possible.
  552. *
  553. * @throws MARSHAL, always.
  554. */
  555. public void insert_val(Serializable _0)
  556. throws TypeMismatch, InvalidValue
  557. {
  558. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  559. }
  560. /**
  561. * The remote call of DynAny methods is not possible.
  562. *
  563. * @throws MARSHAL, always.
  564. */
  565. public void insert_wchar(char _0)
  566. throws TypeMismatch, InvalidValue
  567. {
  568. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  569. }
  570. /**
  571. * The remote call of DynAny methods is not possible.
  572. *
  573. * @throws MARSHAL, always.
  574. */
  575. public void insert_wstring(String _0)
  576. throws TypeMismatch, InvalidValue
  577. {
  578. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  579. }
  580. /**
  581. * The remote call of DynAny methods is not possible.
  582. *
  583. * @throws MARSHAL, always.
  584. */
  585. public boolean seek(int _0)
  586. {
  587. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  588. }
  589. /**
  590. * The remote call of DynAny methods is not possible.
  591. *
  592. * @throws MARSHAL, always.
  593. */
  594. public Any to_any()
  595. {
  596. throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
  597. }
  598. }