//enum.idl // Enum example - Weather ServiceIDL enum ForecastType is mapped to a corresponding Java class
package Module4; public final class ForecastType implements org.omg.CORBA.portable.IDLEntityThe enum label hot is mapped to a corresponding public static int value
//enum.idlThe enum label cold is mapped to a corresponding public static int value and public static object. Converting from the int to the object is supported by the from_int() method.