Creating getter and setter operations
The Generate getter and setter functionality provides an easy way to create corresponding access methods for the attributes of a class.

The functionality opens the Generate getter and setter dialog for selecting the attributes and setting some additional parameters for generating the access methods.

Figure 138 shows the Generate getter and setter dialog for the Order item class. The prefix get has been entered for the getters and set for the setters. The two prefixes get and set appear by default when the dialog is opened. The two attributes item and number have been selected for generation. Clicking OK starts the generation process.
Figure 139 shows the class with the generated access methods.
