View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.2-b01-fcs 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2007.04.05 at 10:47:13 AM CEST 
6   //
7   
8   
9   package com.amazon.webservices.awsecommerceservice._2007_04_04;
10  
11  import java.util.ArrayList;
12  import java.util.List;
13  import javax.xml.bind.annotation.XmlAccessType;
14  import javax.xml.bind.annotation.XmlAccessorType;
15  import javax.xml.bind.annotation.XmlElement;
16  import javax.xml.bind.annotation.XmlRootElement;
17  import javax.xml.bind.annotation.XmlType;
18  
19  
20  /**
21   * <p>Java class for anonymous complex type.
22   * 
23   * <p>The following schema fragment specifies the expected content contained within this class.
24   * 
25   * <pre>
26   * &lt;complexType>
27   *   &lt;complexContent>
28   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29   *       &lt;sequence>
30   *         &lt;element name="SubTotal" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price" minOccurs="0"/>
31   *         &lt;element name="CartItem" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}CartItem" maxOccurs="unbounded"/>
32   *       &lt;/sequence>
33   *     &lt;/restriction>
34   *   &lt;/complexContent>
35   * &lt;/complexType>
36   * </pre>
37   * 
38   * 
39   */
40  @XmlAccessorType(XmlAccessType.FIELD)
41  @XmlType(name = "", propOrder = {
42      "subTotal",
43      "cartItem"
44  })
45  @XmlRootElement(name = "CartItems")
46  public class CartItems {
47  
48      @XmlElement(name = "SubTotal")
49      protected Price subTotal;
50      @XmlElement(name = "CartItem", required = true)
51      protected List<CartItem> cartItem;
52  
53      /**
54       * Gets the value of the subTotal property.
55       * 
56       * @return
57       *     possible object is
58       *     {@link Price }
59       *     
60       */
61      public Price getSubTotal() {
62          return subTotal;
63      }
64  
65      /**
66       * Sets the value of the subTotal property.
67       * 
68       * @param value
69       *     allowed object is
70       *     {@link Price }
71       *     
72       */
73      public void setSubTotal(Price value) {
74          this.subTotal = value;
75      }
76  
77      /**
78       * Gets the value of the cartItem property.
79       * 
80       * <p>
81       * This accessor method returns a reference to the live list,
82       * not a snapshot. Therefore any modification you make to the
83       * returned list will be present inside the JAXB object.
84       * This is why there is not a <CODE>set</CODE> method for the cartItem property.
85       * 
86       * <p>
87       * For example, to add a new item, do as follows:
88       * <pre>
89       *    getCartItem().add(newItem);
90       * </pre>
91       * 
92       * 
93       * <p>
94       * Objects of the following type(s) are allowed in the list
95       * {@link CartItem }
96       * 
97       * 
98       */
99      public List<CartItem> getCartItem() {
100         if (cartItem == null) {
101             cartItem = new ArrayList<CartItem>();
102         }
103         return this.cartItem;
104     }
105 
106 }