
fr.esrf.Tango.DispLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaTangoIDL Show documentation
Show all versions of JavaTangoIDL Show documentation
Java Tango IDL (compiled with jacorb IDL compiler, http://www.jacorb.org)
package fr.esrf.Tango;
/**
* Generated from IDL enum "DispLevel".
*
* @author JacORB IDL compiler V 3.8
* @version generated at Sep 13, 2018 7:12:39 PM
*/
public class DispLevel
implements org.omg.CORBA.portable.IDLEntity
{
/** Serial version UID. */
private static final long serialVersionUID = 1L;
private int value = -1;
public static final int _OPERATOR = 0;
public static final DispLevel OPERATOR = new DispLevel(_OPERATOR);
public static final int _EXPERT = 1;
public static final DispLevel EXPERT = new DispLevel(_EXPERT);
public static final int _DL_UNKNOWN = 2;
public static final DispLevel DL_UNKNOWN = new DispLevel(_DL_UNKNOWN);
public int value()
{
return value;
}
public static DispLevel from_int(int value)
{
switch (value) {
case _OPERATOR: return OPERATOR;
case _EXPERT: return EXPERT;
case _DL_UNKNOWN: return DL_UNKNOWN;
default: throw new org.omg.CORBA.BAD_PARAM();
}
}
public String toString()
{
switch (value) {
case _OPERATOR: return "OPERATOR";
case _EXPERT: return "EXPERT";
case _DL_UNKNOWN: return "DL_UNKNOWN";
default: throw new org.omg.CORBA.BAD_PARAM();
}
}
protected DispLevel(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