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

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

There is a newer version: 4.2.5
Show newest version
package org.omg.CORBA;


/**
* org/omg/CORBA/ContainerPOA.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
*/


// orbos 98-01-18: Objects By Value -- end
public abstract class ContainerPOA extends org.omg.PortableServer.Servant
 implements org.omg.CORBA.ContainerOperations, org.omg.CORBA.portable.InvokeHandler
{

  // Constructors

  private static java.util.Hashtable _methods = new java.util.Hashtable ();
  static
  {
    _methods.put ("lookup", new java.lang.Integer (0));
    _methods.put ("contents", new java.lang.Integer (1));
    _methods.put ("lookup_name", new java.lang.Integer (2));
    _methods.put ("describe_contents", new java.lang.Integer (3));
    _methods.put ("create_module", new java.lang.Integer (4));
    _methods.put ("create_constant", new java.lang.Integer (5));
    _methods.put ("create_struct", new java.lang.Integer (6));
    _methods.put ("create_union", new java.lang.Integer (7));
    _methods.put ("create_enum", new java.lang.Integer (8));
    _methods.put ("create_alias", new java.lang.Integer (9));
    _methods.put ("create_exception", new java.lang.Integer (10));
    _methods.put ("create_interface", new java.lang.Integer (11));
    _methods.put ("create_value", new java.lang.Integer (12));
    _methods.put ("create_value_box", new java.lang.Integer (13));
    _methods.put ("create_native", new java.lang.Integer (14));
    _methods.put ("_get_def_kind", new java.lang.Integer (15));
    _methods.put ("destroy", new java.lang.Integer (16));
  }

  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 ())
    {

  // read interface
       case 0:  // org/omg/CORBA/Container/lookup
       {
         String search_name = org.omg.CORBA.ScopedNameHelper.read (in);
         org.omg.CORBA.Contained $result = null;
         $result = this.lookup (search_name);
         out = $rh.createReply();
         org.omg.CORBA.ContainedHelper.write (out, $result);
         break;
       }

       case 1:  // org/omg/CORBA/Container/contents
       {
         org.omg.CORBA.DefinitionKind limit_type = org.omg.CORBA.DefinitionKindHelper.read (in);
         boolean exclude_inherited = in.read_boolean ();
         org.omg.CORBA.Contained $result[] = null;
         $result = this.contents (limit_type, exclude_inherited);
         out = $rh.createReply();
         org.omg.CORBA.ContainedSeqHelper.write (out, $result);
         break;
       }

       case 2:  // org/omg/CORBA/Container/lookup_name
       {
         String search_name = org.omg.CORBA.IdentifierHelper.read (in);
         int levels_to_search = in.read_long ();
         org.omg.CORBA.DefinitionKind limit_type = org.omg.CORBA.DefinitionKindHelper.read (in);
         boolean exclude_inherited = in.read_boolean ();
         org.omg.CORBA.Contained $result[] = null;
         $result = this.lookup_name (search_name, levels_to_search, limit_type, exclude_inherited);
         out = $rh.createReply();
         org.omg.CORBA.ContainedSeqHelper.write (out, $result);
         break;
       }

       case 3:  // org/omg/CORBA/Container/describe_contents
       {
         org.omg.CORBA.DefinitionKind limit_type = org.omg.CORBA.DefinitionKindHelper.read (in);
         boolean exclude_inherited = in.read_boolean ();
         int max_returned_objs = in.read_long ();
         org.omg.CORBA.ContainerPackage.Description $result[] = null;
         $result = this.describe_contents (limit_type, exclude_inherited, max_returned_objs);
         out = $rh.createReply();
         org.omg.CORBA.ContainerPackage.DescriptionSeqHelper.write (out, $result);
         break;
       }


  // write interface
       case 4:  // org/omg/CORBA/Container/create_module
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.ModuleDef $result = null;
         $result = this.create_module (id, name, version);
         out = $rh.createReply();
         org.omg.CORBA.ModuleDefHelper.write (out, $result);
         break;
       }

       case 5:  // org/omg/CORBA/Container/create_constant
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.IDLType type = org.omg.CORBA.IDLTypeHelper.read (in);
         org.omg.CORBA.Any value = in.read_any ();
         org.omg.CORBA.ConstantDef $result = null;
         $result = this.create_constant (id, name, version, type, value);
         out = $rh.createReply();
         org.omg.CORBA.ConstantDefHelper.write (out, $result);
         break;
       }

       case 6:  // org/omg/CORBA/Container/create_struct
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.StructMember members[] = org.omg.CORBA.StructMemberSeqHelper.read (in);
         org.omg.CORBA.StructDef $result = null;
         $result = this.create_struct (id, name, version, members);
         out = $rh.createReply();
         org.omg.CORBA.StructDefHelper.write (out, $result);
         break;
       }

       case 7:  // org/omg/CORBA/Container/create_union
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.IDLType discriminator_type = org.omg.CORBA.IDLTypeHelper.read (in);
         org.omg.CORBA.UnionMember members[] = org.omg.CORBA.UnionMemberSeqHelper.read (in);
         org.omg.CORBA.UnionDef $result = null;
         $result = this.create_union (id, name, version, discriminator_type, members);
         out = $rh.createReply();
         org.omg.CORBA.UnionDefHelper.write (out, $result);
         break;
       }

       case 8:  // org/omg/CORBA/Container/create_enum
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         String members[] = org.omg.CORBA.EnumMemberSeqHelper.read (in);
         org.omg.CORBA.EnumDef $result = null;
         $result = this.create_enum (id, name, version, members);
         out = $rh.createReply();
         org.omg.CORBA.EnumDefHelper.write (out, $result);
         break;
       }

       case 9:  // org/omg/CORBA/Container/create_alias
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.IDLType original_type = org.omg.CORBA.IDLTypeHelper.read (in);
         org.omg.CORBA.AliasDef $result = null;
         $result = this.create_alias (id, name, version, original_type);
         out = $rh.createReply();
         org.omg.CORBA.AliasDefHelper.write (out, $result);
         break;
       }

       case 10:  // org/omg/CORBA/Container/create_exception
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.StructMember members[] = org.omg.CORBA.StructMemberSeqHelper.read (in);
         org.omg.CORBA.ExceptionDef $result = null;
         $result = this.create_exception (id, name, version, members);
         out = $rh.createReply();
         org.omg.CORBA.ExceptionDefHelper.write (out, $result);
         break;
       }

       case 11:  // org/omg/CORBA/Container/create_interface
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         boolean is_abstract = in.read_boolean ();
         org.omg.CORBA.InterfaceDef base_interfaces[] = org.omg.CORBA.InterfaceDefSeqHelper.read (in);
         org.omg.CORBA.InterfaceDef $result = null;
         $result = this.create_interface (id, name, version, is_abstract, base_interfaces);
         out = $rh.createReply();
         org.omg.CORBA.InterfaceDefHelper.write (out, $result);
         break;
       }


  // orbos 98-01-18: Objects By Value
       case 12:  // org/omg/CORBA/Container/create_value
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         boolean is_custom = in.read_boolean ();
         boolean is_abstract = in.read_boolean ();
         byte flags = in.read_octet ();
         org.omg.CORBA.ValueDef base_value = org.omg.CORBA.ValueDefHelper.read (in);
         boolean has_safe_base = in.read_boolean ();
         org.omg.CORBA.ValueDef abstract_base_values[] = org.omg.CORBA.ValueDefSeqHelper.read (in);
         org.omg.CORBA.InterfaceDef supported_interfaces[] = org.omg.CORBA.InterfaceDefSeqHelper.read (in);
         org.omg.CORBA.Initializer initializers[] = org.omg.CORBA.InitializerSeqHelper.read (in);
         org.omg.CORBA.ValueDef $result = null;
         $result = this.create_value (id, name, version, is_custom, is_abstract, flags, base_value, has_safe_base, abstract_base_values, supported_interfaces, initializers);
         out = $rh.createReply();
         org.omg.CORBA.ValueDefHelper.write (out, $result);
         break;
       }


  // orbos 98-01-18: Objects By Value
       case 13:  // org/omg/CORBA/Container/create_value_box
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.IDLType original_type_def = org.omg.CORBA.IDLTypeHelper.read (in);
         org.omg.CORBA.ValueBoxDef $result = null;
         $result = this.create_value_box (id, name, version, original_type_def);
         out = $rh.createReply();
         org.omg.CORBA.ValueBoxDefHelper.write (out, $result);
         break;
       }

       case 14:  // org/omg/CORBA/Container/create_native
       {
         String id = org.omg.CORBA.RepositoryIdHelper.read (in);
         String name = org.omg.CORBA.IdentifierHelper.read (in);
         String version = org.omg.CORBA.VersionSpecHelper.read (in);
         org.omg.CORBA.NativeDef $result = null;
         $result = this.create_native (id, name, version);
         out = $rh.createReply();
         org.omg.CORBA.NativeDefHelper.write (out, $result);
         break;
       }


  // read interface
       case 15:  // 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 16:  // 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/Container:1.0", 
    "IDL:CORBA/IRObject:1.0"};

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

  public Container _this() 
  {
    return ContainerHelper.narrow(
    super._this_object());
  }

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


} // class ContainerPOA




© 2015 - 2024 Weber Informatics LLC | Privacy Policy