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