Code Generation Online Flight Ticket Reservation System

To generate the code for classes
Procedure:1. Open the class diagram in design model.
2. Goto tools menu and select options and then select notation tab and set the default language, Java
3.To generate a code click the appropriate class, then select tools menu then go to java1 J2EE then go to generate code.
4. In order to view the code select the class by right clicking and choose edit code.
Code Generation

//Source file: C:\\Java\\jdk1.5.0\\bin\\js\\analysisModel\\flightDetails.java
package analysisModel;
public class flightDetails
{
public store theStore;

/**
* @roseuid 3DAFAE61006D
*/
public flightDetails()
{

}

/**
* @roseuid 3DAFAADC007D
*/
public void add()
{
}
/**
* @roseuid 3DAFAAF5007D
*/
public void update()
{
}
}
Result:
Thus the code was generated for the classes successfully For Online Airway Ticket Reservation.

Post a Comment

0 Comments