home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / TRIAL / JBUILDER / JVISBRKR.Z / _ClientCallbackImplBase.java next >
Encoding:
Java Source  |  1998-05-08  |  3.1 KB  |  78 lines

  1. /*
  2.  * Copyright (c) 1997-1998 Borland International, Inc. All Rights Reserved.
  3.  * 
  4.  * This SOURCE CODE FILE, which has been provided by Borland as part
  5.  * of a Borland product for use ONLY by licensed users of the product,
  6.  * includes CONFIDENTIAL and PROPRIETARY information of Borland.  
  7.  *
  8.  * USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS 
  9.  * OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
  10.  * THE PRODUCT.
  11.  *
  12.  * IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD BORLAND, ITS RELATED
  13.  * COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY CLAIMS
  14.  * OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR DISTRIBUTION
  15.  * OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES ARISING OUT OF
  16.  * OR RESULTING FROM THE USE, MODIFICATION, OR DISTRIBUTION OF PROGRAMS
  17.  * OR FILES CREATED FROM, BASED ON, AND/OR DERIVED FROM THIS SOURCE
  18.  * CODE FILE.
  19.  */
  20. package borland.reference.creditapproval.CORBAInterface;
  21. /**
  22. <p>
  23. <ul>
  24. <li> <b>Java Class</b> borland.reference.creditapproval.CORBAInterface._ClientCallbackImplBase
  25. <li> <b>Source File</b> borland/reference/creditapproval/CORBAInterface/_ClientCallbackImplBase.java
  26. <li> <b>IDL Source File</b> C:/JBuilder/samples/borland/reference/creditapproval/CreditApproval.idl
  27. <li> <b>IDL Absolute Name</b> ::borland::reference::creditapproval::CORBAInterface::ClientCallback
  28. <li> <b>Repository Identifier</b> IDL:borland/reference/creditapproval/CORBAInterface/ClientCallback:1.0
  29. </ul>
  30. <b>IDL definition:</b>
  31. <pre>
  32.     interface ClientCallback {
  33.       void updateStatusText(
  34.         in string newStatus
  35.       );
  36.     };
  37. </pre>
  38. </p>
  39. */
  40. abstract public class _ClientCallbackImplBase extends org.omg.CORBA.portable.Skeleton implements borland.reference.creditapproval.CORBAInterface.ClientCallback {
  41.   protected _ClientCallbackImplBase(java.lang.String name) {
  42.     super(name);
  43.   }
  44.   protected _ClientCallbackImplBase() {
  45.   }
  46.   public java.lang.String[] _ids() {
  47.     return __ids;
  48.   }
  49.   private static java.lang.String[] __ids = {
  50.     "IDL:borland/reference/creditapproval/CORBAInterface/ClientCallback:1.0"
  51.   };
  52.   public org.omg.CORBA.portable.MethodPointer[] _methods() {
  53.     org.omg.CORBA.portable.MethodPointer[] methods = {
  54.       new org.omg.CORBA.portable.MethodPointer("updateStatusText", 0, 0),
  55.     };
  56.     return methods;
  57.   }
  58.   public boolean _execute(org.omg.CORBA.portable.MethodPointer method, org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.OutputStream output) {
  59.     switch(method.interface_id) {
  60.     case 0: {
  61.       return borland.reference.creditapproval.CORBAInterface._ClientCallbackImplBase._execute(this, method.method_id, input, output); 
  62.     }
  63.     }
  64.     throw new org.omg.CORBA.MARSHAL();
  65.   }
  66.   public static boolean _execute(borland.reference.creditapproval.CORBAInterface.ClientCallback _self, int _method_id, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.OutputStream _output) {
  67.     switch(_method_id) {
  68.     case 0: {
  69.       java.lang.String newStatus;
  70.       newStatus = _input.read_string();
  71.       _self.updateStatusText(newStatus);
  72.       return false;
  73.     }
  74.     }
  75.     throw new org.omg.CORBA.MARSHAL();
  76.   }
  77. }
  78.