OOPortal OOPortal


Java Programming  «Prev 

Mapped Constant and Typedef code using Corba


The IDL compiler does not generate the cllient code
All elements defined in a module are in the same package. The IDL compiler does not generate the client code, so it can be placed in any package specified by the implementer.
The interface definition results in a class for the interface containing all the elements defined in the IDL interface
The interface definition results in a class for the interface containing all the elements defined in the IDL interface. The Java interface extends from the common object reference interface org.omg.CORBA.Object.

The constant gets its own class in the modules package with the name of the constant as the name of the class
The constant gets its own class in the package of the module with the name of the constant as the name of the class. The constant value is assigned to a static variable named value.

Constants defined in interfaces are declared as static variables in the Java interface already generated for the IDL interface.
Constants defined in interfaces are declared as static variables in the Java interface already generated for the IDL interface