package org.omg.CosTransactions;

/**
 * Vote Type Class generated by the Idl2Java Compiler 3.1 of Jonathan
 */




public final class Vote implements org.omg.CORBA.portable.IDLEntity {
	private static int ENUMSIZE= 3;
	private static Vote[] element = new Vote[ENUMSIZE];
	public static final int  _VoteCommit = 0;
	public static final Vote  VoteCommit = new Vote(_VoteCommit);
	public static final int  _VoteRollback = 1;
	public static final Vote  VoteRollback = new Vote(_VoteRollback);
	public static final int  _VoteReadOnly = 2;
	public static final Vote  VoteReadOnly = new Vote(_VoteReadOnly);

	private int _value;
	private Vote(int val) { _value=val; element[_value]=this; }
	public int value() { return _value; }
	public static Vote from_int(int val) {
		if (val>=0 && val<ENUMSIZE)
			return element[val];
		else return null;
	}
}
