The Lookup Object

We have a hierarchy of Lookup objects (more to come).

Lookup
+ Lookup int)
+ getType() : int
+ getDate() : Date
+ toString() : String
« abstract »
+ isValid() : boolean
+ makeCopy() : Lookup

Lookups may be by one or more criteria...

« Interface »
LookupBySupplier
+ isPrimary() : boolean
+ getSupplier() : Supplier
+ setPrimary(boolean)
+ setSupplier(Supplier)
« Interface »
LookupByVehicle
+ getVehicle() : Vehicle
+ setVehicle(Vehicle)
« Interface »
LookupByCategory
+ getGroup() : Group
+ getDescription() : Description
+ setGroup(Group)
+ setDescription(Description)
+ isDescLookup() : boolean
+ isDescByGroup() : boolean
+ isOrderByManf() : boolean
+ setDescLookup(boolean)
+ setDescByGroup(boolean)
+ setOrderByManf(boolean)

...depending on what we are looking up.

PartsLookup
+ PartsLookup()
+ getManufacturers() : Manufacturer[]
+ setManufacturers(Manufacturer[])
+ isValid() : boolean
+ makeCopy() : Lookup
+ toString() : String
LaborLookup
+ LaborLookup()
+ isValid() : boolean
+ makeCopy() : Lookup
+ toString() : String
InterLookup
+ InterLookup()
+ getManufacturers() : Manufacturer[]
+ setManufacturers(Manufacturer[])
+ isFromAllMfrs() : boolean
+ setFromAllMfrs(boolean)
+ getPartNumber() : String
+ setPartNumber(String)
+ isValid() : boolean
+ makeCopy() : Lookup
+ toString() : String