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="TransactionItemId" type="{http://www.w3.org/2001/XMLSchema}string"/>
31   *         &lt;element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}string"/>
32   *         &lt;element name="UnitPrice" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price"/>
33   *         &lt;element name="TotalPrice" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price"/>
34   *         &lt;element name="ASIN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
35   *         &lt;element name="ChildTransactionItems" minOccurs="0">
36   *           &lt;complexType>
37   *             &lt;complexContent>
38   *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39   *                 &lt;sequence>
40   *                   &lt;element ref="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}TransactionItem" maxOccurs="unbounded"/>
41   *                 &lt;/sequence>
42   *               &lt;/restriction>
43   *             &lt;/complexContent>
44   *           &lt;/complexType>
45   *         &lt;/element>
46   *       &lt;/sequence>
47   *     &lt;/restriction>
48   *   &lt;/complexContent>
49   * &lt;/complexType>
50   * </pre>
51   * 
52   * 
53   */
54  @XmlAccessorType(XmlAccessType.FIELD)
55  @XmlType(name = "", propOrder = {
56      "transactionItemId",
57      "quantity",
58      "unitPrice",
59      "totalPrice",
60      "asin",
61      "childTransactionItems"
62  })
63  @XmlRootElement(name = "TransactionItem")
64  public class TransactionItem {
65  
66      @XmlElement(name = "TransactionItemId", required = true)
67      protected String transactionItemId;
68      @XmlElement(name = "Quantity", required = true)
69      protected String quantity;
70      @XmlElement(name = "UnitPrice", required = true)
71      protected Price unitPrice;
72      @XmlElement(name = "TotalPrice", required = true)
73      protected Price totalPrice;
74      @XmlElement(name = "ASIN")
75      protected String asin;
76      @XmlElement(name = "ChildTransactionItems")
77      protected TransactionItem.ChildTransactionItems childTransactionItems;
78  
79      /**
80       * Gets the value of the transactionItemId property.
81       * 
82       * @return
83       *     possible object is
84       *     {@link String }
85       *     
86       */
87      public String getTransactionItemId() {
88          return transactionItemId;
89      }
90  
91      /**
92       * Sets the value of the transactionItemId property.
93       * 
94       * @param value
95       *     allowed object is
96       *     {@link String }
97       *     
98       */
99      public void setTransactionItemId(String value) {
100         this.transactionItemId = value;
101     }
102 
103     /**
104      * Gets the value of the quantity property.
105      * 
106      * @return
107      *     possible object is
108      *     {@link String }
109      *     
110      */
111     public String getQuantity() {
112         return quantity;
113     }
114 
115     /**
116      * Sets the value of the quantity property.
117      * 
118      * @param value
119      *     allowed object is
120      *     {@link String }
121      *     
122      */
123     public void setQuantity(String value) {
124         this.quantity = value;
125     }
126 
127     /**
128      * Gets the value of the unitPrice property.
129      * 
130      * @return
131      *     possible object is
132      *     {@link Price }
133      *     
134      */
135     public Price getUnitPrice() {
136         return unitPrice;
137     }
138 
139     /**
140      * Sets the value of the unitPrice property.
141      * 
142      * @param value
143      *     allowed object is
144      *     {@link Price }
145      *     
146      */
147     public void setUnitPrice(Price value) {
148         this.unitPrice = value;
149     }
150 
151     /**
152      * Gets the value of the totalPrice property.
153      * 
154      * @return
155      *     possible object is
156      *     {@link Price }
157      *     
158      */
159     public Price getTotalPrice() {
160         return totalPrice;
161     }
162 
163     /**
164      * Sets the value of the totalPrice property.
165      * 
166      * @param value
167      *     allowed object is
168      *     {@link Price }
169      *     
170      */
171     public void setTotalPrice(Price value) {
172         this.totalPrice = value;
173     }
174 
175     /**
176      * Gets the value of the asin property.
177      * 
178      * @return
179      *     possible object is
180      *     {@link String }
181      *     
182      */
183     public String getASIN() {
184         return asin;
185     }
186 
187     /**
188      * Sets the value of the asin property.
189      * 
190      * @param value
191      *     allowed object is
192      *     {@link String }
193      *     
194      */
195     public void setASIN(String value) {
196         this.asin = value;
197     }
198 
199     /**
200      * Gets the value of the childTransactionItems property.
201      * 
202      * @return
203      *     possible object is
204      *     {@link TransactionItem.ChildTransactionItems }
205      *     
206      */
207     public TransactionItem.ChildTransactionItems getChildTransactionItems() {
208         return childTransactionItems;
209     }
210 
211     /**
212      * Sets the value of the childTransactionItems property.
213      * 
214      * @param value
215      *     allowed object is
216      *     {@link TransactionItem.ChildTransactionItems }
217      *     
218      */
219     public void setChildTransactionItems(TransactionItem.ChildTransactionItems value) {
220         this.childTransactionItems = value;
221     }
222 
223 
224     /**
225      * <p>Java class for anonymous complex type.
226      * 
227      * <p>The following schema fragment specifies the expected content contained within this class.
228      * 
229      * <pre>
230      * &lt;complexType>
231      *   &lt;complexContent>
232      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
233      *       &lt;sequence>
234      *         &lt;element ref="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}TransactionItem" maxOccurs="unbounded"/>
235      *       &lt;/sequence>
236      *     &lt;/restriction>
237      *   &lt;/complexContent>
238      * &lt;/complexType>
239      * </pre>
240      * 
241      * 
242      */
243     @XmlAccessorType(XmlAccessType.FIELD)
244     @XmlType(name = "", propOrder = {
245         "transactionItem"
246     })
247     public static class ChildTransactionItems {
248 
249         @XmlElement(name = "TransactionItem", required = true)
250         protected List<TransactionItem> transactionItem;
251 
252         /**
253          * Gets the value of the transactionItem property.
254          * 
255          * <p>
256          * This accessor method returns a reference to the live list,
257          * not a snapshot. Therefore any modification you make to the
258          * returned list will be present inside the JAXB object.
259          * This is why there is not a <CODE>set</CODE> method for the transactionItem property.
260          * 
261          * <p>
262          * For example, to add a new item, do as follows:
263          * <pre>
264          *    getTransactionItem().add(newItem);
265          * </pre>
266          * 
267          * 
268          * <p>
269          * Objects of the following type(s) are allowed in the list
270          * {@link TransactionItem }
271          * 
272          * 
273          */
274         public List<TransactionItem> getTransactionItem() {
275             if (transactionItem == null) {
276                 transactionItem = new ArrayList<TransactionItem>();
277             }
278             return this.transactionItem;
279         }
280 
281     }
282 
283 }