September 2005
Intermediate to advanced
240 pages
6h 28m
English
The classes in the model are in this package. The code is shown for CDDisc.
public class CDCategory
implements java.io.Serializable
{
public CDCategory( )
public CDCategory( int value )
public String toString( )
public static CDCategory parseString( String aString ) throws
CDCategoryFormatDeviation
public boolean equals( CDCategory aCDCategory )
public boolean equals( Object obj )
}
public class CDCategoryValues
{
int getBaseRentalPeriodDays( CDCategory cdCategory )
Dollar getRentalFee( CDCategory cdCategory )
}
public class CDDisc
implements java.io.Serializable
{
public CDDisc( CDRelease aCDRelease, PhysicalID aPhysicalID )
public Rental getRental( )
public CDRelease getCdRelease( )
public PhysicalID getPhysicalID( )
public boolean isRented( )
public RentalContractDTO startRental( Customer aCustomer ) throws
CheckOutDeviation
public void endRental( ) throws CheckInDeviation, LateReturnDeviation
}
public class CDRelease
implements java.io.Serializable
{
public CDCategory getCdCategory( )
public Name getTitle( )
public UPCCode getUPCCode( )
public CDRelease( CDCategory aCDCategory, Name aTitle, UPCCode aUPCCode )
int getBaseRentalPeriodDays( )
Dollar getRentalFee( )
}
public class Customer implements java.io.Serializable { public CustomerID getCustomerID( ) public Name getName( ) public Customer( Name aName, CustomerID ...