package test.interop.bug360;
/**
 * Generated from IDL enum "Enum3xxxxxxxxxxxxxxxx".
 *
 * @author JacORB IDL compiler V @project.version@
 * @version generated at 25-Feb-2014 13:44:20
 */

public final class Enum3xxxxxxxxxxxxxxxx
	implements org.omg.CORBA.portable.IDLEntity
{
	/** Serial version UID. */
	private static final long serialVersionUID = 1L;
	private int value = -1;
	public static final int _E3Axxxxxxxxxxxxxxxxxxxxxx = 0;
	public static final Enum3xxxxxxxxxxxxxxxx E3Axxxxxxxxxxxxxxxxxxxxxx = new Enum3xxxxxxxxxxxxxxxx(_E3Axxxxxxxxxxxxxxxxxxxxxx);
	public static final int _E3Bxxxxxxxxxxx = 1;
	public static final Enum3xxxxxxxxxxxxxxxx E3Bxxxxxxxxxxx = new Enum3xxxxxxxxxxxxxxxx(_E3Bxxxxxxxxxxx);
	public static final int _E3Cxxxxxxxxxxx = 2;
	public static final Enum3xxxxxxxxxxxxxxxx E3Cxxxxxxxxxxx = new Enum3xxxxxxxxxxxxxxxx(_E3Cxxxxxxxxxxx);
	public static final int _E3Dxxxxxxxxxxxxxxxxx = 3;
	public static final Enum3xxxxxxxxxxxxxxxx E3Dxxxxxxxxxxxxxxxxx = new Enum3xxxxxxxxxxxxxxxx(_E3Dxxxxxxxxxxxxxxxxx);
	public int value()
	{
		return value;
	}
	public static Enum3xxxxxxxxxxxxxxxx from_int(int value)
	{
		switch (value) {
			case _E3Axxxxxxxxxxxxxxxxxxxxxx: return E3Axxxxxxxxxxxxxxxxxxxxxx;
			case _E3Bxxxxxxxxxxx: return E3Bxxxxxxxxxxx;
			case _E3Cxxxxxxxxxxx: return E3Cxxxxxxxxxxx;
			case _E3Dxxxxxxxxxxxxxxxxx: return E3Dxxxxxxxxxxxxxxxxx;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _E3Axxxxxxxxxxxxxxxxxxxxxx: return "E3Axxxxxxxxxxxxxxxxxxxxxx";
			case _E3Bxxxxxxxxxxx: return "E3Bxxxxxxxxxxx";
			case _E3Cxxxxxxxxxxx: return "E3Cxxxxxxxxxxx";
			case _E3Dxxxxxxxxxxxxxxxxx: return "E3Dxxxxxxxxxxxxxxxxx";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected Enum3xxxxxxxxxxxxxxxx(int i)
	{
		value = i;
	}
	/**
	 * Designate replacement object when deserialized from stream. See
	 * http://www.omg.org/docs/ptc/02-01-03.htm#Issue4271
	 *
	 * @throws java.io.ObjectStreamException
	 */
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
