IDL Constructed Types   «Prev 

Enums Forecast Type Weather

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

2)
 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

3)
//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.