atg.commerce.pricing
Class QualifiedItem

java.lang.Object
  extended by atg.commerce.pricing.QualifiedItem
All Implemented Interfaces:
java.lang.Cloneable

public class QualifiedItem
extends java.lang.Object
implements java.lang.Cloneable

Holds information about a CommerceItem that has qualified for a discount.

Properties:


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
QualifiedItem(CommerceItem pItem)
           
 
Method Summary
 java.lang.Object clone()
           
 DiscountStructure getDiscount()
          Get property Discount
 CommerceItem getItem()
          Get the CommerceItem which qualified.
 java.util.Map<java.lang.Integer,java.lang.Long> getIteratorIndexMap()
          Get property IteratorIndexMap
 java.util.Map getQualifyingDetailsMap()
          a map of DetailedItemPriceInfo objects to the number of times that details qualified
 java.util.UUID getTargetSetUUID()
          Get property TargetSetUUID
 void setDiscount(DiscountStructure pDiscount)
          Set property Discount
 void setItem(CommerceItem pItem)
          Set the CommerceItem which qualified.
 void setIteratorIndexMap(java.util.Map<java.lang.Integer,java.lang.Long> pIteratorIndexMap)
          Set property IteratorIndexMap.
 void setQualifyingDetailsMap(java.util.Map pQualifyingDetailsMap)
          a map of DetailedItemPriceInfo objects to the number of times that details qualified
 void setTargetSetUUID(java.util.UUID pTargetSetUUID)
          Set property TargetSetUUID.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

QualifiedItem

public QualifiedItem(CommerceItem pItem)
Method Detail

setItem

public void setItem(CommerceItem pItem)
Set the CommerceItem which qualified.

Parameters:
pItem - new value to set

getItem

public CommerceItem getItem()
Get the CommerceItem which qualified.

Returns:
Item

setQualifyingDetailsMap

public void setQualifyingDetailsMap(java.util.Map pQualifyingDetailsMap)
a map of DetailedItemPriceInfo objects to the number of times that details qualified

Parameters:
pQualifyingDetailsMap - new value to set

getQualifyingDetailsMap

public java.util.Map getQualifyingDetailsMap()
a map of DetailedItemPriceInfo objects to the number of times that details qualified

Returns:
property QualifyingDetailsMap

setDiscount

public void setDiscount(DiscountStructure pDiscount)
Set property Discount

Parameters:
pDiscount - new value to set

getDiscount

public DiscountStructure getDiscount()
Get property Discount

Returns:
DiscountStructure

setIteratorIndexMap

public void setIteratorIndexMap(java.util.Map<java.lang.Integer,java.lang.Long> pIteratorIndexMap)
Set property IteratorIndexMap.

Parameters:
pIteratorIndexMap - a map of iterator index (key) mapped to the number of matching quantity (value)

getIteratorIndexMap

public java.util.Map<java.lang.Integer,java.lang.Long> getIteratorIndexMap()
Get property IteratorIndexMap

Returns:
a map holding the matching iterator index (key) and the matching quantity (value)

setTargetSetUUID

public void setTargetSetUUID(java.util.UUID pTargetSetUUID)
Set property TargetSetUUID.

Parameters:
pTargetSetUUID - a UUID for the target set this qualified item was created within

getTargetSetUUID

public java.util.UUID getTargetSetUUID()
Get property TargetSetUUID

Returns:
a UUID for the target set this qualified item was created within

toString

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

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object