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

public final class Enum2xxxxxxxxxxxx
	implements org.omg.CORBA.portable.IDLEntity
{
	/** Serial version UID. */
	private static final long serialVersionUID = 1L;
	private int value = -1;
	public static final int _E2Axxxxxxxxxxxxxxxxxx = 0;
	public static final Enum2xxxxxxxxxxxx E2Axxxxxxxxxxxxxxxxxx = new Enum2xxxxxxxxxxxx(_E2Axxxxxxxxxxxxxxxxxx);
	public static final int _E2Bxxxxxxxx = 1;
	public static final Enum2xxxxxxxxxxxx E2Bxxxxxxxx = new Enum2xxxxxxxxxxxx(_E2Bxxxxxxxx);
	public static final int _E2Cxxxxxx = 2;
	public static final Enum2xxxxxxxxxxxx E2Cxxxxxx = new Enum2xxxxxxxxxxxx(_E2Cxxxxxx);
	public static final int _E2Dxxxxxxxxxxxxx = 3;
	public static final Enum2xxxxxxxxxxxx E2Dxxxxxxxxxxxxx = new Enum2xxxxxxxxxxxx(_E2Dxxxxxxxxxxxxx);
	public int value()
	{
		return value;
	}
	public static Enum2xxxxxxxxxxxx from_int(int value)
	{
		switch (value) {
			case _E2Axxxxxxxxxxxxxxxxxx: return E2Axxxxxxxxxxxxxxxxxx;
			case _E2Bxxxxxxxx: return E2Bxxxxxxxx;
			case _E2Cxxxxxx: return E2Cxxxxxx;
			case _E2Dxxxxxxxxxxxxx: return E2Dxxxxxxxxxxxxx;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _E2Axxxxxxxxxxxxxxxxxx: return "E2Axxxxxxxxxxxxxxxxxx";
			case _E2Bxxxxxxxx: return "E2Bxxxxxxxx";
			case _E2Cxxxxxx: return "E2Cxxxxxx";
			case _E2Dxxxxxxxxxxxxx: return "E2Dxxxxxxxxxxxxx";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected Enum2xxxxxxxxxxxx(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());
	}
}
