OOPortal OOPortal


IDL Constructed Types   «Prev 

Sequences Interface Weather Service

The IDL interface using bounded and unbounded sequences is mapped to its Java operations
// sequence.idl
// Sequence example - Weather Service
module Module4{ 
  // Bounded sequence of 7 strings
The IDL interface using bounded and unbounded sequences is mapped to its Java operations interface using corresponding Java Arrays.

The operation returning the bounded sequence is mapped to a method returning the corresponding array type
The operation returning the bounded sequence is mapped to a method returning the corresponding array type

The operation returning the unbounded sequence is mapped to a method returning the corresponding array type
package Module4;
public interface WeatherServiceOperations{
 public java.lang.String[] getForecastsForWeek(java.lang.String city);
 public java.lang.String[] getCurrentForecasts(java.lang.String city);
}
The operation returning the unbounded sequence is mapped to a method returning the corresponding array type