atg.commerce.promotion
Class GiftWithPurchaseSelectionChoice

java.lang.Object
  extended by atg.commerce.promotion.GiftWithPurchaseSelectionChoice

public class GiftWithPurchaseSelectionChoice
extends java.lang.Object

Bean class to hold gift with purchase promotion selection choices.
Holds a product and the child sku items available for selection.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  RepositoryItem mProduct
           
protected  java.util.Collection<RepositoryItem> mSkus
           
 
Constructor Summary
GiftWithPurchaseSelectionChoice()
           
 
Method Summary
 void addAllSkus(java.util.Collection<RepositoryItem> pSkus)
          Adds a collection of SKUs for this selection choice
 void addSku(RepositoryItem pSku)
          Adds a SKU to the collection for this selection choice.
 RepositoryItem getProduct()
          Getter for the product item
 int getSkuCount()
          Gets a count of the SKUs available for selection.
 java.util.Collection<RepositoryItem> getSkus()
          Getter for the collection of child sku items.
 void setProduct(RepositoryItem pProduct)
          Setter for the product item
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values

mProduct

protected RepositoryItem mProduct

mSkus

protected java.util.Collection<RepositoryItem> mSkus
Constructor Detail

GiftWithPurchaseSelectionChoice

public GiftWithPurchaseSelectionChoice()
Method Detail

getProduct

public RepositoryItem getProduct()
Getter for the product item

Returns:
RepositoryItem

setProduct

public void setProduct(RepositoryItem pProduct)
Setter for the product item

Parameters:
pProduct - RepositoryItem

getSkus

public java.util.Collection<RepositoryItem> getSkus()
Getter for the collection of child sku items.

Returns:
Collection of RepositoryItem

addSku

public void addSku(RepositoryItem pSku)
Adds a SKU to the collection for this selection choice.

Parameters:
pSku - RepositoryItem

addAllSkus

public void addAllSkus(java.util.Collection<RepositoryItem> pSkus)
Adds a collection of SKUs for this selection choice

Parameters:
pSkus - Collection of RepositoryItem

getSkuCount

public int getSkuCount()
Gets a count of the SKUs available for selection.

Returns:
int count

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object