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

org.omg.SendingContext._CodeBaseStub Maven / Gradle / Ivy

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


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


// services in the future
public class _CodeBaseStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.SendingContext.CodeBase
{


  // Operation to obtain the IR from the sending context
  public org.omg.CORBA.Repository get_ir ()
  {
            org.omg.CORBA.portable.InputStream $in = null;
            try {
                org.omg.CORBA.portable.OutputStream $out = _request ("get_ir", true);
                $in = _invoke ($out);
                org.omg.CORBA.Repository $result = org.omg.CORBA.RepositoryHelper.read ($in);
                return $result;
            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
                $in = $ex.getInputStream ();
                String _id = $ex.getId ();
                throw new org.omg.CORBA.MARSHAL (_id);
            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
                return get_ir (        );
            } finally {
                _releaseReply ($in);
            }
  } // get_ir


  // Operations to obtain a location of the implementation code
  public String implementation (String x)
  {
            org.omg.CORBA.portable.InputStream $in = null;
            try {
                org.omg.CORBA.portable.OutputStream $out = _request ("implementation", true);
                org.omg.CORBA.RepositoryIdHelper.write ($out, x);
                $in = _invoke ($out);
                String $result = org.omg.SendingContext.CodeBasePackage.URLHelper.read ($in);
                return $result;
            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
                $in = $ex.getInputStream ();
                String _id = $ex.getId ();
                throw new org.omg.CORBA.MARSHAL (_id);
            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
                return implementation (x        );
            } finally {
                _releaseReply ($in);
            }
  } // implementation

  public String implementationx (String x)
  {
            org.omg.CORBA.portable.InputStream $in = null;
            try {
                org.omg.CORBA.portable.OutputStream $out = _request ("implementationx", true);
                org.omg.CORBA.RepositoryIdHelper.write ($out, x);
                $in = _invoke ($out);
                String $result = org.omg.SendingContext.CodeBasePackage.URLHelper.read ($in);
                return $result;
            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
                $in = $ex.getInputStream ();
                String _id = $ex.getId ();
                throw new org.omg.CORBA.MARSHAL (_id);
            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
                return implementationx (x        );
            } finally {
                _releaseReply ($in);
            }
  } // implementationx

  public String[] implementations (String[] x)
  {
            org.omg.CORBA.portable.InputStream $in = null;
            try {
                org.omg.CORBA.portable.OutputStream $out = _request ("implementations", true);
                org.omg.CORBA.RepositoryIdSeqHelper.write ($out, x);
                $in = _invoke ($out);
                String $result[] = org.omg.SendingContext.CodeBasePackage.URLSeqHelper.read ($in);
                return $result;
            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
                $in = $ex.getInputStream ();
                String _id = $ex.getId ();
                throw new org.omg.CORBA.MARSHAL (_id);
            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
                return implementations (x        );
            } finally {
                _releaseReply ($in);
            }
  } // implementations


  // the same information
  public org.omg.CORBA.ValueDefPackage.FullValueDescription meta (String x)
  {
            org.omg.CORBA.portable.InputStream $in = null;
            try {
                org.omg.CORBA.portable.OutputStream $out = _request ("meta", true);
                org.omg.CORBA.RepositoryIdHelper.write ($out, x);
                $in = _invoke ($out);
                org.omg.CORBA.ValueDefPackage.FullValueDescription $result = org.omg.CORBA.ValueDefPackage.FullValueDescriptionHelper.read ($in);
                return $result;
            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
                $in = $ex.getInputStream ();
                String _id = $ex.getId ();
                throw new org.omg.CORBA.MARSHAL (_id);
            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
                return meta (x        );
            } finally {
                _releaseReply ($in);
            }
  } // meta

  public org.omg.CORBA.ValueDefPackage.FullValueDescription[] metas (String[] x)
  {
            org.omg.CORBA.portable.InputStream $in = null;
            try {
                org.omg.CORBA.portable.OutputStream $out = _request ("metas", true);
                org.omg.CORBA.RepositoryIdSeqHelper.write ($out, x);
                $in = _invoke ($out);
                org.omg.CORBA.ValueDefPackage.FullValueDescription $result[] = org.omg.SendingContext.CodeBasePackage.ValueDescSeqHelper.read ($in);
                return $result;
            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
                $in = $ex.getInputStream ();
                String _id = $ex.getId ();
                throw new org.omg.CORBA.MARSHAL (_id);
            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
                return metas (x        );
            } finally {
                _releaseReply ($in);
            }
  } // metas


  // information
  public String[] bases (String x)
  {
            org.omg.CORBA.portable.InputStream $in = null;
            try {
                org.omg.CORBA.portable.OutputStream $out = _request ("bases", true);
                org.omg.CORBA.RepositoryIdHelper.write ($out, x);
                $in = _invoke ($out);
                String $result[] = org.omg.CORBA.RepositoryIdSeqHelper.read ($in);
                return $result;
            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
                $in = $ex.getInputStream ();
                String _id = $ex.getId ();
                throw new org.omg.CORBA.MARSHAL (_id);
            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
                return bases (x        );
            } finally {
                _releaseReply ($in);
            }
  } // bases

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

  public String[] _ids ()
  {
    return (String[])__ids.clone ();
  }

  private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  {
     String str = s.readUTF ();
     String[] args = null;
     java.util.Properties props = null;
     org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
   try {
     org.omg.CORBA.Object obj = orb.string_to_object (str);
     org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
     _set_delegate (delegate);
   } finally {
     orb.destroy() ;
   }
  }

  private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  {
     String[] args = null;
     java.util.Properties props = null;
     org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
   try {
     String str = orb.object_to_string (this);
     s.writeUTF (str);
   } finally {
     orb.destroy() ;
   }
  }
} // class _CodeBaseStub




© 2015 - 2024 Weber Informatics LLC | Privacy Policy