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

public final class Enum5xxxxxxxx
	implements org.omg.CORBA.portable.IDLEntity
{
	/** Serial version UID. */
	private static final long serialVersionUID = 1L;
	private int value = -1;
	public static final int _E5Axxxxxxxxxxxxxx = 0;
	public static final Enum5xxxxxxxx E5Axxxxxxxxxxxxxx = new Enum5xxxxxxxx(_E5Axxxxxxxxxxxxxx);
	public static final int _E5Bxxxxxxxx = 1;
	public static final Enum5xxxxxxxx E5Bxxxxxxxx = new Enum5xxxxxxxx(_E5Bxxxxxxxx);
	public static final int _E5Cxxxxxxxxx = 2;
	public static final Enum5xxxxxxxx E5Cxxxxxxxxx = new Enum5xxxxxxxx(_E5Cxxxxxxxxx);
	public static final int _E5Dxxxxxxx = 3;
	public static final Enum5xxxxxxxx E5Dxxxxxxx = new Enum5xxxxxxxx(_E5Dxxxxxxx);
	public static final int _E5Exxx = 4;
	public static final Enum5xxxxxxxx E5Exxx = new Enum5xxxxxxxx(_E5Exxx);
	public static final int _E5Fxxxxx = 5;
	public static final Enum5xxxxxxxx E5Fxxxxx = new Enum5xxxxxxxx(_E5Fxxxxx);
	public static final int _E5Gxxxxxxx = 6;
	public static final Enum5xxxxxxxx E5Gxxxxxxx = new Enum5xxxxxxxx(_E5Gxxxxxxx);
	public static final int _E5Hxxxxxxxxx = 7;
	public static final Enum5xxxxxxxx E5Hxxxxxxxxx = new Enum5xxxxxxxx(_E5Hxxxxxxxxx);
	public int value()
	{
		return value;
	}
	public static Enum5xxxxxxxx from_int(int value)
	{
		switch (value) {
			case _E5Axxxxxxxxxxxxxx: return E5Axxxxxxxxxxxxxx;
			case _E5Bxxxxxxxx: return E5Bxxxxxxxx;
			case _E5Cxxxxxxxxx: return E5Cxxxxxxxxx;
			case _E5Dxxxxxxx: return E5Dxxxxxxx;
			case _E5Exxx: return E5Exxx;
			case _E5Fxxxxx: return E5Fxxxxx;
			case _E5Gxxxxxxx: return E5Gxxxxxxx;
			case _E5Hxxxxxxxxx: return E5Hxxxxxxxxx;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _E5Axxxxxxxxxxxxxx: return "E5Axxxxxxxxxxxxxx";
			case _E5Bxxxxxxxx: return "E5Bxxxxxxxx";
			case _E5Cxxxxxxxxx: return "E5Cxxxxxxxxx";
			case _E5Dxxxxxxx: return "E5Dxxxxxxx";
			case _E5Exxx: return "E5Exxx";
			case _E5Fxxxxx: return "E5Fxxxxx";
			case _E5Gxxxxxxx: return "E5Gxxxxxxx";
			case _E5Hxxxxxxxxx: return "E5Hxxxxxxxxx";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected Enum5xxxxxxxx(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());
	}
}
