Skip to Main Content
Prefactoring
book

Prefactoring

by Ken Pugh
September 2005
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 28m
English
O'Reilly Media, Inc.
Content preview from Prefactoring

8.12. The Rest of the Classes

To complete the picture, this section describes the remaining classes in the packages that have not been discussed in this chapter. In the com.samscdrental.display.adt package are the two display widgets that are tied to the corresponding ADTs:

    CustomerIDTextField.java
    PhysicalIDTextField.java

The com.samscdrental.display package contains the GUI classes:

    CheckinDialog.java
    CheckoutDialog.java
    DisplayHelper.java
    Main.java
    MainFrame.java

The StringHelper class in com.samscdrental.helper contains string utility functions:

    StringHelper.java

In the com.samscdrental.migration package is the main program for the migration of files into the system:

    MigrateMain.java

The com.samscdrental.model.dto package contains the Data Transfer Objects (DTOs) for the reports:

    CDDiscInventoryDTO.java
    CDDiscInventoryItem.java
    OverdueRentalDTO.java
    RentalContractDTO.java

The classes representing the model of Sam's system are in com.samscdrental.model. These classes, which represent the business model, were discussed in detail in the previous chapters.

    CDCategory.java
    CDCategoryValues.java
    CDDisc.java
    CDRelease.java
    Customer.java
    Rental.java

Lastly, the com.samscdrental.reports package contains the reports produced by the system:

    CDDiscInventoryMain.java
    CDDiscInventoryReportPlainTextFormat.java
    ContractReportPlainTextFormat.java
    OverdueRentalReportPlainTextFormat.java
    ReportPlainTextFormat.java
    Reports.java
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding Unittest.Mock

Understanding Unittest.Mock

Mario Corchero
Java™ Performance

Java™ Performance

Charlie Hunt, Binu John

Publisher Resources

ISBN: 0596008740Supplemental ContentCatalog PageErrata