com.bea.alcs.connect.shoppingcart.data
Class CartItemsDto

java.lang.Object
  extended by com.bea.alcs.connect.shoppingcart.data.CartItemsDto
All Implemented Interfaces:
Dto, Validatable

public class CartItemsDto
extends java.lang.Object
implements Dto

Represents a collection of items in a shopping cart.


Constructor Summary
CartItemsDto()
          Empty constructor.
CartItemsDto(java.util.List<? extends CartItem> privateCartItems)
          Creates a CartItems object that contains a list of cart items, but first converts the given list of private cart item domain objects into public cart item objects.
 
Method Summary
 java.util.List<CartItemDto> getCartItemList()
          Gets the value of the cartItem property.
 boolean isSetCartItemList()
          Determines whether the CartItem collection has been set.
 void setCartItemList(java.util.List<CartItemDto> cartItemList)
          Sets the value of the cartItem property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CartItemsDto

public CartItemsDto()
Empty constructor.


CartItemsDto

public CartItemsDto(java.util.List<? extends CartItem> privateCartItems)
Creates a CartItems object that contains a list of cart items, but first converts the given list of private cart item domain objects into public cart item objects.

Parameters:
privateCartItems - cart items that are part of the private domain
Method Detail

getCartItemList

public java.util.List<CartItemDto> getCartItemList()
Gets the value of the cartItem property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the cartItem property.

For example, to add a new item, do as follows:

    getCartItem().add(newItem);
 

Objects of the following type(s) are allowed in the list CartItem

Returns:
collection of items in the cart

setCartItemList

public void setCartItemList(java.util.List<CartItemDto> cartItemList)
Sets the value of the cartItem property.

Parameters:
cartItemList - Objects of the following type(s) are allowed in the list: CartItem

isSetCartItemList

public boolean isSetCartItemList()
Determines whether the CartItem collection has been set.

Returns:
true if there are items in the cart, false if not.