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

public final class Enum1
	implements org.omg.CORBA.portable.IDLEntity
{
	/** Serial version UID. */
	private static final long serialVersionUID = 1L;
	private int value = -1;
	public static final int _E1Axxxxxxxxxxxxxxxxxxxxx = 0;
	public static final Enum1 E1Axxxxxxxxxxxxxxxxxxxxx = new Enum1(_E1Axxxxxxxxxxxxxxxxxxxxx);
	public static final int _E1B = 1;
	public static final Enum1 E1B = new Enum1(_E1B);
	public static final int _E1C = 2;
	public static final Enum1 E1C = new Enum1(_E1C);
	public static final int _E1D = 3;
	public static final Enum1 E1D = new Enum1(_E1D);
	public static final int _E1E = 4;
	public static final Enum1 E1E = new Enum1(_E1E);
	public static final int _E1F = 5;
	public static final Enum1 E1F = new Enum1(_E1F);
	public static final int _E1G = 6;
	public static final Enum1 E1G = new Enum1(_E1G);
	public static final int _E1H = 7;
	public static final Enum1 E1H = new Enum1(_E1H);
	public static final int _E1I = 8;
	public static final Enum1 E1I = new Enum1(_E1I);
	public static final int _E1JX = 9;
	public static final Enum1 E1JX = new Enum1(_E1JX);
	public static final int _E1KX = 10;
	public static final Enum1 E1KX = new Enum1(_E1KX);
	public static final int _E1LX = 11;
	public static final Enum1 E1LX = new Enum1(_E1LX);
	public static final int _E1MX = 12;
	public static final Enum1 E1MX = new Enum1(_E1MX);
	public static final int _E1Lastxxxxxxxxxxxxx = 13;
	public static final Enum1 E1Lastxxxxxxxxxxxxx = new Enum1(_E1Lastxxxxxxxxxxxxx);
	public int value()
	{
		return value;
	}
	public static Enum1 from_int(int value)
	{
		switch (value) {
			case _E1Axxxxxxxxxxxxxxxxxxxxx: return E1Axxxxxxxxxxxxxxxxxxxxx;
			case _E1B: return E1B;
			case _E1C: return E1C;
			case _E1D: return E1D;
			case _E1E: return E1E;
			case _E1F: return E1F;
			case _E1G: return E1G;
			case _E1H: return E1H;
			case _E1I: return E1I;
			case _E1JX: return E1JX;
			case _E1KX: return E1KX;
			case _E1LX: return E1LX;
			case _E1MX: return E1MX;
			case _E1Lastxxxxxxxxxxxxx: return E1Lastxxxxxxxxxxxxx;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _E1Axxxxxxxxxxxxxxxxxxxxx: return "E1Axxxxxxxxxxxxxxxxxxxxx";
			case _E1B: return "E1B";
			case _E1C: return "E1C";
			case _E1D: return "E1D";
			case _E1E: return "E1E";
			case _E1F: return "E1F";
			case _E1G: return "E1G";
			case _E1H: return "E1H";
			case _E1I: return "E1I";
			case _E1JX: return "E1JX";
			case _E1KX: return "E1KX";
			case _E1LX: return "E1LX";
			case _E1MX: return "E1MX";
			case _E1Lastxxxxxxxxxxxxx: return "E1Lastxxxxxxxxxxxxx";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected Enum1(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());
	}
}
