Source for org.omg.DynamicAny._DynUnionStub

   1: /* _DynUnionStub.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 DynUnion. As
  54:  * DynUnion 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 _DynUnionStub
  60:   extends ObjectImpl
  61:   implements DynUnion, Serializable
  62: {
  63:   /**
  64:    * Use serialVersionUID for interoperability.
  65:    */
  66:   private static final long serialVersionUID = -8921031953572009897L;
  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 = DynUnionOperations.class;
  73: 
  74:   /**
  75:    * Create the DynUnion stub. To get the stub working,
  76:    * you must later set the delegate with
  77:    * {@link ObjectImpl#_set_delegate(Delegate)}.
  78:    */
  79:   public _DynUnionStub()
  80:   {
  81:   }
  82: 
  83:   /**
  84:    * Return the array of repository ids for this object.
  85:    */
  86:   public String[] _ids()
  87:   {
  88:     return new String[] { DynUnionHelper.id() };
  89:   }
  90: 
  91:   /**
  92:    * The remote call of DynAny methods is not possible.
  93:    *
  94:    * @throws MARSHAL, always.
  95:    */
  96:   public DynAny member()
  97:                 throws 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 TCKind discriminator_kind()
 108:   {
 109:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 110:   }
 111: 
 112:   /**
 113:    * The remote call of DynAny methods is not possible.
 114:    *
 115:    * @throws MARSHAL, always.
 116:    */
 117:   public DynAny get_discriminator()
 118:   {
 119:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 120:   }
 121: 
 122:   /**
 123:    * The remote call of DynAny methods is not possible.
 124:    *
 125:    * @throws MARSHAL, always.
 126:    */
 127:   public boolean has_no_active_member()
 128:   {
 129:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 130:   }
 131: 
 132:   /**
 133:    * The remote call of DynAny methods is not possible.
 134:    *
 135:    * @throws MARSHAL, always.
 136:    */
 137:   public TCKind member_kind()
 138:                      throws InvalidValue
 139:   {
 140:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 141:   }
 142: 
 143:   /**
 144:    * The remote call of DynAny methods is not possible.
 145:    *
 146:    * @throws MARSHAL, always.
 147:    */
 148:   public String member_name()
 149:                      throws InvalidValue
 150:   {
 151:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 152:   }
 153: 
 154:   /**
 155:    * The remote call of DynAny methods is not possible.
 156:    *
 157:    * @throws MARSHAL, always.
 158:    */
 159:   public void set_discriminator(DynAny _0)
 160:                          throws TypeMismatch
 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 void set_to_default_member()
 171:                              throws TypeMismatch
 172:   {
 173:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 174:   }
 175: 
 176:   /**
 177:    * The remote call of DynAny methods is not possible.
 178:    *
 179:    * @throws MARSHAL, always.
 180:    */
 181:   public void set_to_no_active_member()
 182:                                throws TypeMismatch
 183:   {
 184:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 185:   }
 186: 
 187:   /**
 188:    * The remote call of DynAny methods is not possible.
 189:    *
 190:    * @throws MARSHAL, always.
 191:    */
 192:   public TypeCode type()
 193:   {
 194:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 195:   }
 196: 
 197:   /**
 198:    * The remote call of DynAny methods is not possible.
 199:    *
 200:    * @throws MARSHAL, always.
 201:    */
 202:   public boolean next()
 203:   {
 204:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 205:   }
 206: 
 207:   /**
 208:    * The remote call of DynAny methods is not possible.
 209:    *
 210:    * @throws MARSHAL, always.
 211:    */
 212:   public void destroy()
 213:   {
 214:   }
 215: 
 216:   /**
 217:    * The remote call of DynAny methods is not possible.
 218:    *
 219:    * @throws MARSHAL, always.
 220:    */
 221:   public DynAny copy()
 222:   {
 223:     return this;
 224:   }
 225: 
 226:   /**
 227:    * The remote call of DynAny methods is not possible.
 228:    *
 229:    * @throws MARSHAL, always.
 230:    */
 231:   public void rewind()
 232:   {
 233:   }
 234: 
 235:   /**
 236:    * The remote call of DynAny methods is not possible.
 237:    *
 238:    * @throws MARSHAL, always.
 239:    */
 240:   public void assign(DynAny _0)
 241:               throws TypeMismatch
 242:   {
 243:   }
 244: 
 245:   /**
 246:    * The remote call of DynAny methods is not possible.
 247:    *
 248:    * @throws MARSHAL, always.
 249:    */
 250:   public int component_count()
 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 DynAny current_component()
 261:                            throws TypeMismatch
 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 equal(DynAny _0)
 272:   {
 273:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 274:   }
 275: 
 276:   /**
 277:    * The remote call of DynAny methods is not possible.
 278:    *
 279:    * @throws MARSHAL, always.
 280:    */
 281:   public void from_any(Any _0)
 282:                 throws TypeMismatch, InvalidValue
 283:   {
 284:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 285:   }
 286: 
 287:   /**
 288:    * The remote call of DynAny methods is not possible.
 289:    *
 290:    * @throws MARSHAL, always.
 291:    */
 292:   public Any get_any()
 293:               throws TypeMismatch, InvalidValue
 294:   {
 295:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 296:   }
 297: 
 298:   /**
 299:    * The remote call of DynAny methods is not possible.
 300:    *
 301:    * @throws MARSHAL, always.
 302:    */
 303:   public boolean get_boolean()
 304:                       throws TypeMismatch, InvalidValue
 305:   {
 306:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 307:   }
 308: 
 309:   /**
 310:    * The remote call of DynAny methods is not possible.
 311:    *
 312:    * @throws MARSHAL, always.
 313:    */
 314:   public char get_char()
 315:                 throws TypeMismatch, InvalidValue
 316:   {
 317:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 318:   }
 319: 
 320:   /**
 321:    * The remote call of DynAny methods is not possible.
 322:    *
 323:    * @throws MARSHAL, always.
 324:    */
 325:   public double get_double()
 326:                     throws TypeMismatch, InvalidValue
 327:   {
 328:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 329:   }
 330: 
 331:   /**
 332:    * The remote call of DynAny methods is not possible.
 333:    *
 334:    * @throws MARSHAL, always.
 335:    */
 336:   public DynAny get_dyn_any()
 337:                      throws TypeMismatch, InvalidValue
 338:   {
 339:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 340:   }
 341: 
 342:   /**
 343:    * The remote call of DynAny methods is not possible.
 344:    *
 345:    * @throws MARSHAL, always.
 346:    */
 347:   public float get_float()
 348:                   throws TypeMismatch, InvalidValue
 349:   {
 350:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 351:   }
 352: 
 353:   /**
 354:    * The remote call of DynAny methods is not possible.
 355:    *
 356:    * @throws MARSHAL, always.
 357:    */
 358:   public int get_long()
 359:                throws TypeMismatch, InvalidValue
 360:   {
 361:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 362:   }
 363: 
 364:   /**
 365:    * The remote call of DynAny methods is not possible.
 366:    *
 367:    * @throws MARSHAL, always.
 368:    */
 369:   public long get_longlong()
 370:                     throws TypeMismatch, InvalidValue
 371:   {
 372:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 373:   }
 374: 
 375:   /**
 376:    * The remote call of DynAny methods is not possible.
 377:    *
 378:    * @throws MARSHAL, always.
 379:    */
 380:   public byte get_octet()
 381:                  throws TypeMismatch, InvalidValue
 382:   {
 383:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 384:   }
 385: 
 386:   /**
 387:    * The remote call of DynAny methods is not possible.
 388:    *
 389:    * @throws MARSHAL, always.
 390:    */
 391:   public org.omg.CORBA.Object get_reference()
 392:                                      throws TypeMismatch, InvalidValue
 393:   {
 394:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 395:   }
 396: 
 397:   /**
 398:    * The remote call of DynAny methods is not possible.
 399:    *
 400:    * @throws MARSHAL, always.
 401:    */
 402:   public short get_short()
 403:                   throws TypeMismatch, InvalidValue
 404:   {
 405:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 406:   }
 407: 
 408:   /**
 409:    * The remote call of DynAny methods is not possible.
 410:    *
 411:    * @throws MARSHAL, always.
 412:    */
 413:   public String get_string()
 414:                     throws TypeMismatch, InvalidValue
 415:   {
 416:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 417:   }
 418: 
 419:   /**
 420:    * The remote call of DynAny methods is not possible.
 421:    *
 422:    * @throws MARSHAL, always.
 423:    */
 424:   public TypeCode get_typecode()
 425:                         throws TypeMismatch, InvalidValue
 426:   {
 427:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 428:   }
 429: 
 430:   /**
 431:    * The remote call of DynAny methods is not possible.
 432:    *
 433:    * @throws MARSHAL, always.
 434:    */
 435:   public int get_ulong()
 436:                 throws TypeMismatch, InvalidValue
 437:   {
 438:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 439:   }
 440: 
 441:   /**
 442:    * The remote call of DynAny methods is not possible.
 443:    *
 444:    * @throws MARSHAL, always.
 445:    */
 446:   public long get_ulonglong()
 447:                      throws TypeMismatch, InvalidValue
 448:   {
 449:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 450:   }
 451: 
 452:   /**
 453:    * The remote call of DynAny methods is not possible.
 454:    *
 455:    * @throws MARSHAL, always.
 456:    */
 457:   public short get_ushort()
 458:                    throws TypeMismatch, InvalidValue
 459:   {
 460:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 461:   }
 462: 
 463:   /**
 464:    * The remote call of DynAny methods is not possible.
 465:    *
 466:    * @throws MARSHAL, always.
 467:    */
 468:   public Serializable get_val()
 469:                        throws TypeMismatch, InvalidValue
 470:   {
 471:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 472:   }
 473: 
 474:   /**
 475:    * The remote call of DynAny methods is not possible.
 476:    *
 477:    * @throws MARSHAL, always.
 478:    */
 479:   public char get_wchar()
 480:                  throws TypeMismatch, InvalidValue
 481:   {
 482:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 483:   }
 484: 
 485:   /**
 486:    * The remote call of DynAny methods is not possible.
 487:    *
 488:    * @throws MARSHAL, always.
 489:    */
 490:   public String get_wstring()
 491:                      throws TypeMismatch, InvalidValue
 492:   {
 493:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 494:   }
 495: 
 496:   /**
 497:    * The remote call of DynAny methods is not possible.
 498:    *
 499:    * @throws MARSHAL, always.
 500:    */
 501:   public void insert_any(Any _0)
 502:                   throws TypeMismatch, InvalidValue
 503:   {
 504:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 505:   }
 506: 
 507:   /**
 508:    * The remote call of DynAny methods is not possible.
 509:    *
 510:    * @throws MARSHAL, always.
 511:    */
 512:   public void insert_boolean(boolean _0)
 513:                       throws TypeMismatch, InvalidValue
 514:   {
 515:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 516:   }
 517: 
 518:   /**
 519:    * The remote call of DynAny methods is not possible.
 520:    *
 521:    * @throws MARSHAL, always.
 522:    */
 523:   public void insert_char(char _0)
 524:                    throws TypeMismatch, InvalidValue
 525:   {
 526:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 527:   }
 528: 
 529:   /**
 530:    * The remote call of DynAny methods is not possible.
 531:    *
 532:    * @throws MARSHAL, always.
 533:    */
 534:   public void insert_double(double _0)
 535:                      throws TypeMismatch, InvalidValue
 536:   {
 537:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 538:   }
 539: 
 540:   /**
 541:    * The remote call of DynAny methods is not possible.
 542:    *
 543:    * @throws MARSHAL, always.
 544:    */
 545:   public void insert_dyn_any(DynAny _0)
 546:                       throws TypeMismatch, InvalidValue
 547:   {
 548:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 549:   }
 550: 
 551:   /**
 552:    * The remote call of DynAny methods is not possible.
 553:    *
 554:    * @throws MARSHAL, always.
 555:    */
 556:   public void insert_float(float _0)
 557:                     throws TypeMismatch, InvalidValue
 558:   {
 559:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 560:   }
 561: 
 562:   /**
 563:    * The remote call of DynAny methods is not possible.
 564:    *
 565:    * @throws MARSHAL, always.
 566:    */
 567:   public void insert_long(int _0)
 568:                    throws TypeMismatch, InvalidValue
 569:   {
 570:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 571:   }
 572: 
 573:   /**
 574:    * The remote call of DynAny methods is not possible.
 575:    *
 576:    * @throws MARSHAL, always.
 577:    */
 578:   public void insert_longlong(long _0)
 579:                        throws TypeMismatch, InvalidValue
 580:   {
 581:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 582:   }
 583: 
 584:   /**
 585:    * The remote call of DynAny methods is not possible.
 586:    *
 587:    * @throws MARSHAL, always.
 588:    */
 589:   public void insert_octet(byte _0)
 590:                     throws TypeMismatch, InvalidValue
 591:   {
 592:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 593:   }
 594: 
 595:   /**
 596:    * The remote call of DynAny methods is not possible.
 597:    *
 598:    * @throws MARSHAL, always.
 599:    */
 600:   public void insert_reference(org.omg.CORBA.Object _0)
 601:                         throws TypeMismatch, InvalidValue
 602:   {
 603:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 604:   }
 605: 
 606:   /**
 607:    * The remote call of DynAny methods is not possible.
 608:    *
 609:    * @throws MARSHAL, always.
 610:    */
 611:   public void insert_short(short _0)
 612:                     throws TypeMismatch, InvalidValue
 613:   {
 614:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 615:   }
 616: 
 617:   /**
 618:    * The remote call of DynAny methods is not possible.
 619:    *
 620:    * @throws MARSHAL, always.
 621:    */
 622:   public void insert_string(String _0)
 623:                      throws TypeMismatch, InvalidValue
 624:   {
 625:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 626:   }
 627: 
 628:   /**
 629:    * The remote call of DynAny methods is not possible.
 630:    *
 631:    * @throws MARSHAL, always.
 632:    */
 633:   public void insert_typecode(TypeCode _0)
 634:                        throws TypeMismatch, InvalidValue
 635:   {
 636:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 637:   }
 638: 
 639:   /**
 640:    * The remote call of DynAny methods is not possible.
 641:    *
 642:    * @throws MARSHAL, always.
 643:    */
 644:   public void insert_ulong(int _0)
 645:                     throws TypeMismatch, InvalidValue
 646:   {
 647:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 648:   }
 649: 
 650:   /**
 651:    * The remote call of DynAny methods is not possible.
 652:    *
 653:    * @throws MARSHAL, always.
 654:    */
 655:   public void insert_ulonglong(long _0)
 656:                         throws TypeMismatch, InvalidValue
 657:   {
 658:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 659:   }
 660: 
 661:   /**
 662:    * The remote call of DynAny methods is not possible.
 663:    *
 664:    * @throws MARSHAL, always.
 665:    */
 666:   public void insert_ushort(short _0)
 667:                      throws TypeMismatch, InvalidValue
 668:   {
 669:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 670:   }
 671: 
 672:   /**
 673:    * The remote call of DynAny methods is not possible.
 674:    *
 675:    * @throws MARSHAL, always.
 676:    */
 677:   public void insert_val(Serializable _0)
 678:                   throws TypeMismatch, InvalidValue
 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 void insert_wchar(char _0)
 689:                     throws TypeMismatch, InvalidValue
 690:   {
 691:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 692:   }
 693: 
 694:   /**
 695:    * The remote call of DynAny methods is not possible.
 696:    *
 697:    * @throws MARSHAL, always.
 698:    */
 699:   public void insert_wstring(String _0)
 700:                       throws TypeMismatch, InvalidValue
 701:   {
 702:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 703:   }
 704: 
 705:   /**
 706:    * The remote call of DynAny methods is not possible.
 707:    *
 708:    * @throws MARSHAL, always.
 709:    */
 710:   public boolean seek(int _0)
 711:   {
 712:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 713:   }
 714: 
 715:   /**
 716:    * The remote call of DynAny methods is not possible.
 717:    *
 718:    * @throws MARSHAL, always.
 719:    */
 720:   public Any to_any()
 721:   {
 722:     throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE);
 723:   }
 724: 
 725: }