OOPortal OOPortal


IDL Constructed Types   «Prev 

Enums Forecast Type Weather

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

The enum label hot is mapped to a corresponding public static int value
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

The enum label cold is mapped to a corresponding public static int value and public static object
//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.