| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.promotion.GiftWithPurchaseSelectionChoice
public class GiftWithPurchaseSelectionChoice
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_VERSIONClass 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 | removeSku(RepositoryItem pSku)Removes a SKU from the collection for this selection choice. | 
|  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 | 
|---|
public static final java.lang.String CLASS_VERSION
protected RepositoryItem mProduct
protected java.util.Collection<RepositoryItem> mSkus
| Constructor Detail | 
|---|
public GiftWithPurchaseSelectionChoice()
| Method Detail | 
|---|
public RepositoryItem getProduct()
public void setProduct(RepositoryItem pProduct)
pProduct - RepositoryItempublic java.util.Collection<RepositoryItem> getSkus()
public void addSku(RepositoryItem pSku)
pSku - RepositoryItempublic void removeSku(RepositoryItem pSku)
pSku - RepositoryItempublic void addAllSkus(java.util.Collection<RepositoryItem> pSkus)
pSkus - Collection of RepositoryItempublic int getSkuCount()
public java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||