|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap atg.commerce.catalog.comparison.ProductComparisonList.Entry
public static class ProductComparisonList.Entry
Inner class representing the data stored in the product comparison list.
Nested Class Summary | |
---|---|
static class |
ProductComparisonList.Entry.InventoryData
Inner class to capture and hold inventory data; returns the same readable properties as atg.commerce.inventory.InventoryInfo, but is serializable so it can participate in session failover. |
Constructor Summary | |
---|---|
ProductComparisonList.Entry()
Create a new Entry and store its id in the hashtable so that entry.id works from jhtml pages. |
Method Summary | |
---|---|
protected boolean |
compareItems(RepositoryItem thisValue,
RepositoryItem thatValue)
Compare two repository items for equality, allowing for null values. |
boolean |
equals(java.lang.Object pObj)
Compare two Entries for equality, where equality is defined as both Entries having the same category, product, and sku. |
RepositoryItem |
getCategory()
Get the category for this comparison list entry. |
java.lang.String |
getCategoryLink()
Get the HTML that links to the category page for this comparison list entry. |
int |
getId()
Get an id that uniquely identifies this particular list entry. |
ProductComparisonList.Entry.InventoryData |
getInventoryInfo()
Get the InventoryData object for this comparison list entry. |
ItemPriceInfo |
getPriceInfo()
Get the ItemPriceInfo object for this comparison list entry. |
RepositoryItem |
getProduct()
Get the product for this comparison list entry. |
java.lang.String |
getProductLink()
Get the HTML that links to the product page for this comparison list entry. |
RepositoryItem |
getSku()
Get the SKU for this comparison list entry. |
void |
setCategory(RepositoryItem pCategory)
Set the category for this comparison list entry. |
void |
setCategoryLink(java.lang.String pHTML)
Set the HTML that links to the category page for this comparison list entry. |
void |
setInventoryFrom(InventoryInfo pInfo)
Set the InventoryData object for this comparison list entry using an InventoryInfo object as an exemplar. |
void |
setInventoryInfo(ProductComparisonList.Entry.InventoryData pInfo)
Set the InventoryData object for this comparison list entry. |
void |
setPriceInfo(ItemPriceInfo pPrice)
Set the ItemPriceInfo object for this comparison list entry. |
void |
setProduct(RepositoryItem pProduct)
Set the product for this comparison list entry. |
void |
setProductLink(java.lang.String pHTML)
Set the HTML that links to the product page for this comparison list entry. |
void |
setSku(RepositoryItem pSku)
Set the SKU for this comparison list entry. |
java.lang.String |
toString()
Return a string representation of this Entry for debugging purposes. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
hashCode |
Constructor Detail |
---|
public ProductComparisonList.Entry()
Method Detail |
---|
public RepositoryItem getProduct()
public void setProduct(RepositoryItem pProduct)
public java.lang.String getProductLink()
public void setProductLink(java.lang.String pHTML)
public RepositoryItem getCategory()
public void setCategory(RepositoryItem pCategory)
public java.lang.String getCategoryLink()
public void setCategoryLink(java.lang.String pHTML)
public RepositoryItem getSku()
public void setSku(RepositoryItem pSku)
public void setInventoryFrom(InventoryInfo pInfo)
public void setInventoryInfo(ProductComparisonList.Entry.InventoryData pInfo)
public ProductComparisonList.Entry.InventoryData getInventoryInfo()
public void setPriceInfo(ItemPriceInfo pPrice)
public ItemPriceInfo getPriceInfo()
public int getId()
public boolean equals(java.lang.Object pObj)
equals
in interface java.util.Map
equals
in class java.util.AbstractMap
protected boolean compareItems(RepositoryItem thisValue, RepositoryItem thatValue)
public java.lang.String toString()
toString
in class java.util.AbstractMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |