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="Error" maxOccurs="unbounded">
31   *           &lt;complexType>
32   *             &lt;complexContent>
33   *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
34   *                 &lt;sequence>
35   *                   &lt;element name="Code" type="{http://www.w3.org/2001/XMLSchema}string"/>
36   *                   &lt;element name="Message" type="{http://www.w3.org/2001/XMLSchema}string"/>
37   *                 &lt;/sequence>
38   *               &lt;/restriction>
39   *             &lt;/complexContent>
40   *           &lt;/complexType>
41   *         &lt;/element>
42   *       &lt;/sequence>
43   *     &lt;/restriction>
44   *   &lt;/complexContent>
45   * &lt;/complexType>
46   * </pre>
47   * 
48   * 
49   */
50  @XmlAccessorType(XmlAccessType.FIELD)
51  @XmlType(name = "", propOrder = {
52      "error"
53  })
54  @XmlRootElement(name = "Errors")
55  public class Errors {
56  
57      @XmlElement(name = "Error", required = true)
58      protected List<Errors.Error> error;
59  
60      /**
61       * Gets the value of the error property.
62       * 
63       * <p>
64       * This accessor method returns a reference to the live list,
65       * not a snapshot. Therefore any modification you make to the
66       * returned list will be present inside the JAXB object.
67       * This is why there is not a <CODE>set</CODE> method for the error property.
68       * 
69       * <p>
70       * For example, to add a new item, do as follows:
71       * <pre>
72       *    getError().add(newItem);
73       * </pre>
74       * 
75       * 
76       * <p>
77       * Objects of the following type(s) are allowed in the list
78       * {@link Errors.Error }
79       * 
80       * 
81       */
82      public List<Errors.Error> getError() {
83          if (error == null) {
84              error = new ArrayList<Errors.Error>();
85          }
86          return this.error;
87      }
88  
89  
90      /**
91       * <p>Java class for anonymous complex type.
92       * 
93       * <p>The following schema fragment specifies the expected content contained within this class.
94       * 
95       * <pre>
96       * &lt;complexType>
97       *   &lt;complexContent>
98       *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
99       *       &lt;sequence>
100      *         &lt;element name="Code" type="{http://www.w3.org/2001/XMLSchema}string"/>
101      *         &lt;element name="Message" type="{http://www.w3.org/2001/XMLSchema}string"/>
102      *       &lt;/sequence>
103      *     &lt;/restriction>
104      *   &lt;/complexContent>
105      * &lt;/complexType>
106      * </pre>
107      * 
108      * 
109      */
110     @XmlAccessorType(XmlAccessType.FIELD)
111     @XmlType(name = "", propOrder = {
112         "code",
113         "message"
114     })
115     public static class Error {
116 
117         @XmlElement(name = "Code", required = true)
118         protected String code;
119         @XmlElement(name = "Message", required = true)
120         protected String message;
121 
122         /**
123          * Gets the value of the code property.
124          * 
125          * @return
126          *     possible object is
127          *     {@link String }
128          *     
129          */
130         public String getCode() {
131             return code;
132         }
133 
134         /**
135          * Sets the value of the code property.
136          * 
137          * @param value
138          *     allowed object is
139          *     {@link String }
140          *     
141          */
142         public void setCode(String value) {
143             this.code = value;
144         }
145 
146         /**
147          * Gets the value of the message property.
148          * 
149          * @return
150          *     possible object is
151          *     {@link String }
152          *     
153          */
154         public String getMessage() {
155             return message;
156         }
157 
158         /**
159          * Sets the value of the message property.
160          * 
161          * @param value
162          *     allowed object is
163          *     {@link String }
164          *     
165          */
166         public void setMessage(String value) {
167             this.message = value;
168         }
169 
170     }
171 
172 }