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