org.omg.CORBA.OperationMode Maven / Gradle / Ivy
package org.omg.CORBA;
/**
* org/omg/CORBA/OperationMode.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 class OperationMode implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 2;
private static org.omg.CORBA.OperationMode[] __array = new org.omg.CORBA.OperationMode [__size];
public static final int _OP_NORMAL = 0;
public static final org.omg.CORBA.OperationMode OP_NORMAL = new org.omg.CORBA.OperationMode(_OP_NORMAL);
public static final int _OP_ONEWAY = 1;
public static final org.omg.CORBA.OperationMode OP_ONEWAY = new org.omg.CORBA.OperationMode(_OP_ONEWAY);
public int value ()
{
return __value;
}
public static org.omg.CORBA.OperationMode from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected OperationMode (int value)
{
__value = value;
__array[__value] = this;
}
} // class OperationMode