com.endeca.mobile.services.cart.models
Class CartItem

java.lang.Object
  extended by com.endeca.mobile.services.cart.models.Model
      extended by com.endeca.mobile.services.cart.models.CartItem
All Implemented Interfaces:
java.io.Serializable

public class CartItem
extends Model

See Also:
Serialized Form

Constructor Summary
CartItem()
           
 
Method Summary
 java.util.List<TextFieldModel> getGiftMessageFields()
          The List of TextFieldModel objects.
 GiftWrap getGiftWrap()
          The GiftWrap object, if gift wrap has been applied.
 java.util.List<GiftWrapOption> getGiftWrapOptions()
          The List of potential GiftWrapOption objects.
 AbstractRecord getProduct()
          The product.
 int getQuantity()
          The quantity of the product.
 int getQuantityMaximum()
          The maximum sellable quantity
 boolean isGiftWrappable()
          Whether or not the item can be gift wrapped.
 boolean isQuantityEditable()
          Whether or not the quantity of the product can be edited.
 void setGiftMessageFields(java.util.List<TextFieldModel> giftMessageFields)
           
 void setGiftWrap(GiftWrap giftWrap)
           
 void setGiftWrapOptions(java.util.List<GiftWrapOption> giftWrapOptions)
           
 void setGiftWrappable(boolean giftWrappable)
           
 void setProduct(AbstractRecord product)
           
 void setQuantity(int quantity)
           
 void setQuantityEditable(boolean quantityEditable)
           
 void setQuantityMaximum(int quantityMaximum)
           
 
Methods inherited from class com.endeca.mobile.services.cart.models.Model
containsProperty, getId, getProperties, getProperty, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, putProperty, setId, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CartItem

public CartItem()
Method Detail

getQuantity

public int getQuantity()
The quantity of the product.


setQuantity

public void setQuantity(int quantity)

getQuantityMaximum

public int getQuantityMaximum()
The maximum sellable quantity


setQuantityMaximum

public void setQuantityMaximum(int quantityMaximum)

isQuantityEditable

public boolean isQuantityEditable()
Whether or not the quantity of the product can be edited.


setQuantityEditable

public void setQuantityEditable(boolean quantityEditable)

getProduct

public AbstractRecord getProduct()
The product.


setProduct

public void setProduct(AbstractRecord product)

isGiftWrappable

public boolean isGiftWrappable()
Whether or not the item can be gift wrapped. This flag is often relevant in systems where you do not wish to calculate the giftWrapOptions for all the items in the shopping cart up front.


setGiftWrappable

public void setGiftWrappable(boolean giftWrappable)

getGiftWrap

public GiftWrap getGiftWrap()
The GiftWrap object, if gift wrap has been applied.


setGiftWrap

public void setGiftWrap(GiftWrap giftWrap)

getGiftWrapOptions

public java.util.List<GiftWrapOption> getGiftWrapOptions()
The List of potential GiftWrapOption objects.


setGiftWrapOptions

public void setGiftWrapOptions(java.util.List<GiftWrapOption> giftWrapOptions)

getGiftMessageFields

public java.util.List<TextFieldModel> getGiftMessageFields()
The List of TextFieldModel objects.


setGiftMessageFields

public void setGiftMessageFields(java.util.List<TextFieldModel> giftMessageFields)