Source for org.omg.DynamicAny._DynEnumStub

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