Class ListingArchive

java.lang.Object
  extended by ListingArchive

public class ListingArchive
extends java.lang.Object

the auction listing archive class. NOTE: The purpose of this code is to illustrate implementation starting from UML class and sequence diagrams. It may be incomplete and may not compile.


Field Summary
protected  java.util.List<AuctionListing> list
          collection of AuctionListing objects.
 
Constructor Summary
ListingArchive()
          constructs the ListingArchive
 
Method Summary
 void addListing(AuctionListing al)
          save a listing to the archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected java.util.List<AuctionListing> list
collection of AuctionListing objects. List is an interface type. It is protected to give access to subclasses to add functionality (such as browsing the archive).

Constructor Detail

ListingArchive

public ListingArchive()
constructs the ListingArchive

Method Detail

addListing

public void addListing(AuctionListing al)
save a listing to the archive. Derived from the "Complete Auction" use case.

Parameters:
al - the auction listing