org.omg.CORBA.WstringDefPOA Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openjdk-orb Show documentation
Show all versions of openjdk-orb Show documentation
JBoss repackaging of the OpenJDK ORB
The newest version!
package org.omg.CORBA;
/**
* org/omg/CORBA/WstringDefPOA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /home/tomek/workspace/openjdk-orb/src/share/classes/org/omg/CORBA/ir.idl
* Wednesday, February 1, 2023 4:15:32 PM CET
*/
public abstract class WstringDefPOA extends org.omg.PortableServer.Servant
implements org.omg.CORBA.WstringDefOperations, 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/WstringDef/_get_bound
{
int $result = (int)0;
$result = this.bound ();
out = $rh.createReply();
out.write_ulong ($result);
break;
}
case 1: // org/omg/CORBA/WstringDef/_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/WstringDef:1.0",
"IDL:omg.org/CORBA/IDLType:1.0",
"IDL:omg.org/CORBA/IRObject:1.0"};
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
{
return (String[])__ids.clone ();
}
public WstringDef _this()
{
return WstringDefHelper.narrow(
super._this_object());
}
public WstringDef _this(org.omg.CORBA.ORB orb)
{
return WstringDefHelper.narrow(
super._this_object(orb));
}
} // class WstringDefPOA