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

public final class Enum4xxxxxxxxxxxxx
	implements org.omg.CORBA.portable.IDLEntity
{
	/** Serial version UID. */
	private static final long serialVersionUID = 1L;
	private int value = -1;
	public static final int _E4Axxxxxxxxxxxxxxxxxxx = 0;
	public static final Enum4xxxxxxxxxxxxx E4Axxxxxxxxxxxxxxxxxxx = new Enum4xxxxxxxxxxxxx(_E4Axxxxxxxxxxxxxxxxxxx);
	public static final int _E4Bxxxxxxx = 1;
	public static final Enum4xxxxxxxxxxxxx E4Bxxxxxxx = new Enum4xxxxxxxxxxxxx(_E4Bxxxxxxx);
	public static final int _E4Cxxxxxxxxxxx = 2;
	public static final Enum4xxxxxxxxxxxxx E4Cxxxxxxxxxxx = new Enum4xxxxxxxxxxxxx(_E4Cxxxxxxxxxxx);
	public static final int _E4Dxxxxxxxx = 3;
	public static final Enum4xxxxxxxxxxxxx E4Dxxxxxxxx = new Enum4xxxxxxxxxxxxx(_E4Dxxxxxxxx);
	public static final int _E4Exxxxxxxxxxxxxx = 4;
	public static final Enum4xxxxxxxxxxxxx E4Exxxxxxxxxxxxxx = new Enum4xxxxxxxxxxxxx(_E4Exxxxxxxxxxxxxx);
	public int value()
	{
		return value;
	}
	public static Enum4xxxxxxxxxxxxx from_int(int value)
	{
		switch (value) {
			case _E4Axxxxxxxxxxxxxxxxxxx: return E4Axxxxxxxxxxxxxxxxxxx;
			case _E4Bxxxxxxx: return E4Bxxxxxxx;
			case _E4Cxxxxxxxxxxx: return E4Cxxxxxxxxxxx;
			case _E4Dxxxxxxxx: return E4Dxxxxxxxx;
			case _E4Exxxxxxxxxxxxxx: return E4Exxxxxxxxxxxxxx;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _E4Axxxxxxxxxxxxxxxxxxx: return "E4Axxxxxxxxxxxxxxxxxxx";
			case _E4Bxxxxxxx: return "E4Bxxxxxxx";
			case _E4Cxxxxxxxxxxx: return "E4Cxxxxxxxxxxx";
			case _E4Dxxxxxxxx: return "E4Dxxxxxxxx";
			case _E4Exxxxxxxxxxxxxx: return "E4Exxxxxxxxxxxxxx";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected Enum4xxxxxxxxxxxxx(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());
	}
}
