All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.CORBA.StringDefPOA Maven / Gradle / Ivy

package org.omg.CORBA;


/**
* org/omg/CORBA/StringDefPOA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /home/jenkins/agent/workspace/orb-release-build/omgapi/src/main/idl/ir.idl
* Sunday, February 14, 2021 7:42:42 PM GMT
*/

public abstract class StringDefPOA extends org.omg.PortableServer.Servant
 implements org.omg.CORBA.StringDefOperations, org.omg.CORBA.portable.InvokeHandler
{

  // Constructors

  private static java.util.Hashtable _methods = new java.util.Hashtable ();
  static
  {
    _methods.put ("_get_bound", new java.lang.Integer (0));
    _methods.put ("_set_bound", new java.lang.Integer (1));
    _methods.put ("_get_type", new java.lang.Integer (2));
    _methods.put ("_get_def_kind", new java.lang.Integer (3));
    _methods.put ("destroy", new java.lang.Integer (4));
  }

  public org.omg.CORBA.portable.OutputStream _invoke (String $method,
                                org.omg.CORBA.portable.InputStream in,
                                org.omg.CORBA.portable.ResponseHandler $rh)
  {
    org.omg.CORBA.portable.OutputStream out = null;
    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
    if (__method == null)
      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue ())
    {
       case 0:  // org/omg/CORBA/StringDef/_get_bound
       {
         int $result = (int)0;
         $result = this.bound ();
         out = $rh.createReply();
         out.write_ulong ($result);
         break;
       }

       case 1:  // org/omg/CORBA/StringDef/_set_bound
       {
         int newBound = in.read_ulong ();
         this.bound (newBound);
         out = $rh.createReply();
         break;
       }

       case 2:  // org/omg/CORBA/IDLType/_get_type
       {
         org.omg.CORBA.TypeCode $result = null;
         $result = this.type ();
         out = $rh.createReply();
         out.write_TypeCode ($result);
         break;
       }


  // read interface
       case 3:  // org/omg/CORBA/IRObject/_get_def_kind
       {
         org.omg.CORBA.DefinitionKind $result = null;
         $result = this.def_kind ();
         out = $rh.createReply();
         org.omg.CORBA.DefinitionKindHelper.write (out, $result);
         break;
       }


  // write interface
       case 4:  // org/omg/CORBA/IRObject/destroy
       {
         this.destroy ();
         out = $rh.createReply();
         break;
       }

       default:
         throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
    }

    return out;
  } // _invoke

  // Type-specific CORBA::Object operations
  private static String[] __ids = {
    "IDL:omg.org/CORBA/StringDef:1.0", 
    "IDL:CORBA/IDLType:1.0", 
    "IDL:CORBA/IRObject:1.0"};

  public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
  {
    return (String[])__ids.clone ();
  }

  public StringDef _this() 
  {
    return StringDefHelper.narrow(
    super._this_object());
  }

  public StringDef _this(org.omg.CORBA.ORB orb) 
  {
    return StringDefHelper.narrow(
    super._this_object(orb));
  }


} // class StringDefPOA




© 2015 - 2024 Weber Informatics LLC | Privacy Policy