All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.esrf.Tango.AttrQuality Maven / Gradle / Ivy

The newest version!
package fr.esrf.Tango;
/**
 * Generated from IDL enum "AttrQuality".
 *
 * @author JacORB IDL compiler V 3.8
 * @version generated at Oct 21, 2017 6:12:33 PM
 */

public class AttrQuality
	implements org.omg.CORBA.portable.IDLEntity
{
	/** Serial version UID. */
	private static final long serialVersionUID = 1L;
	private int value = -1;
	public static final int _ATTR_VALID = 0;
	public static final AttrQuality ATTR_VALID = new AttrQuality(_ATTR_VALID);
	public static final int _ATTR_INVALID = 1;
	public static final AttrQuality ATTR_INVALID = new AttrQuality(_ATTR_INVALID);
	public static final int _ATTR_ALARM = 2;
	public static final AttrQuality ATTR_ALARM = new AttrQuality(_ATTR_ALARM);
	public static final int _ATTR_CHANGING = 3;
	public static final AttrQuality ATTR_CHANGING = new AttrQuality(_ATTR_CHANGING);
	public static final int _ATTR_WARNING = 4;
	public static final AttrQuality ATTR_WARNING = new AttrQuality(_ATTR_WARNING);
	public int value()
	{
		return value;
	}
	public static AttrQuality from_int(int value)
	{
		switch (value) {
			case _ATTR_VALID: return ATTR_VALID;
			case _ATTR_INVALID: return ATTR_INVALID;
			case _ATTR_ALARM: return ATTR_ALARM;
			case _ATTR_CHANGING: return ATTR_CHANGING;
			case _ATTR_WARNING: return ATTR_WARNING;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _ATTR_VALID: return "ATTR_VALID";
			case _ATTR_INVALID: return "ATTR_INVALID";
			case _ATTR_ALARM: return "ATTR_ALARM";
			case _ATTR_CHANGING: return "ATTR_CHANGING";
			case _ATTR_WARNING: return "ATTR_WARNING";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected AttrQuality(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());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy