IDL Constructed Types   «Prev 

Enums Forecast Type Weather

 //enum.idl
// Enum example - Weather Service
IDL enum ForecastType is mapped to a corresponding Java class

 package Module4;
public final class ForecastType implements org.omg.CORBA.portable.IDLEntity
The enum label hot is mapped to a corresponding public static int value

//enum.idl
The 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.