com.worldpac.catalog
Class Product

java.lang.Object
  |
  +--com.worldpac.catalog.Product

public class Product
extends java.lang.Object

Specific vehicle-to-product application. One or more Products may be represented by a Part, depending on vehicle manufacture or the location on the vehicle of the part to be replaced. One or more ProductQuotes may be issued for the Product, representing different manufacturer brands.


Field Summary
 java.lang.String adjustedYears
           
 java.lang.String appCategory
          Part category to which this Product applies.
 java.lang.String appChassis
          Chassis range to which this Product applies.
 java.lang.String appEngines
          Engine range to which this Product applies.
 java.lang.String applicationID
          Worldpac application identifier.
 java.lang.String appModelID
          Worldpac vehicle model identifier to which this Product applies.
 java.lang.String appTransmissions
          Transmission range to which this Product applies.
 java.lang.String appTransmissionType
          Transmission type to which this Product applies.
 java.lang.String appYears
          Year range to which this Product applies.
 java.lang.String categoryID
          Worldpac part category identifier of the part category ususally associated with the product.
 java.lang.String description
          Text description of the product.
 boolean fromCTR0114
           
 java.lang.String id
          Worldpac product identifier.
 java.lang.String makeID
          Worldpac vehicle make identifier of the vehicle make ususally associated with the product.
 int quantityPerCar
          Quantity of this product normally found on the vehicle.
 java.lang.String secondaryDescriptionWithBreaks
          Secondary text description of the product, with HTML <br> formatting.
 java.lang.String secondaryDescriptionWithSpaces
          Secondary text description of the product, without HTML <br> formatting.
 
Constructor Summary
Product(java.lang.String id)
          Create a dummy vehicle-to-product application from a Worldpac product identifier.
 
Method Summary
static java.lang.String adjustYearRange(java.lang.String modelRange, java.lang.String appYearFrom, java.lang.String appYearTo)
           
 java.lang.String getTertiaryDescription()
          Get tertiary text description.
 boolean hasImage()
          Product images are available.
 java.lang.String hiresURL()
          Product hi-res image URL.
 java.lang.String imageURL()
          Product image URL.
 boolean isYearMonthFromServer()
           
 java.lang.String thumbnailURL()
          Product thumbnail image URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationID

public java.lang.String applicationID
Worldpac application identifier. This is the unique identifier for a Product object.


id

public java.lang.String id
Worldpac product identifier. This identifier may be the same as those for other Product objects that represent different vehicle-to-product applications for the same physical product.


description

public java.lang.String description
Text description of the product.


secondaryDescriptionWithSpaces

public java.lang.String secondaryDescriptionWithSpaces
Secondary text description of the product, without HTML <br> formatting.


secondaryDescriptionWithBreaks

public java.lang.String secondaryDescriptionWithBreaks
Secondary text description of the product, with HTML <br> formatting.


appModelID

public java.lang.String appModelID
Worldpac vehicle model identifier to which this Product applies.


appCategory

public java.lang.String appCategory
Part category to which this Product applies.


appTransmissionType

public java.lang.String appTransmissionType
Transmission type to which this Product applies.


appYears

public java.lang.String appYears
Year range to which this Product applies.


appEngines

public java.lang.String appEngines
Engine range to which this Product applies.


appChassis

public java.lang.String appChassis
Chassis range to which this Product applies.


appTransmissions

public java.lang.String appTransmissions
Transmission range to which this Product applies.


quantityPerCar

public int quantityPerCar
Quantity of this product normally found on the vehicle.


makeID

public java.lang.String makeID
Worldpac vehicle make identifier of the vehicle make ususally associated with the product. This may differ from the make of the vehicle for this application.


categoryID

public java.lang.String categoryID
Worldpac part category identifier of the part category ususally associated with the product. This may differ from the part category for this application.


fromCTR0114

public boolean fromCTR0114

adjustedYears

public java.lang.String adjustedYears
Constructor Detail

Product

public Product(java.lang.String id)
Create a dummy vehicle-to-product application from a Worldpac product identifier. This is necessary when quotes are to be retrieved without knowing the vehicle.

Method Detail

getTertiaryDescription

public java.lang.String getTertiaryDescription()
Get tertiary text description.

Returns:
Tertiary text description of the product, with HTML <br> formatting.

hasImage

public boolean hasImage()
Product images are available.

Returns:
True if product images are available, false otherwise.

thumbnailURL

public java.lang.String thumbnailURL()
Product thumbnail image URL. The dimensions of a thumbnail image are 110x83.

Returns:
URL of the thumbnail image.

imageURL

public java.lang.String imageURL()
Product image URL. The dimensions of a product image are 640x480.

Returns:
URL of the image.

hiresURL

public java.lang.String hiresURL()
Product hi-res image URL. The dimensions of a hi-res product image are 1024x768.

Returns:
URL of the hi-res image.

isYearMonthFromServer

public boolean isYearMonthFromServer()

adjustYearRange

public static java.lang.String adjustYearRange(java.lang.String modelRange,
                                               java.lang.String appYearFrom,
                                               java.lang.String appYearTo)