/jboss-as-7.1.1.Final/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jaxb/bindings/Items.java
Java | 290 lines | 80 code | 24 blank | 186 comment | 2 complexity | 836443d08129b01ce0a7ca00da598ce8 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
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: 2011.08.30 at 03:04:17 PM CDT
6//
7
8
9package org.jboss.as.test.integration.jaxb.bindings;
10
11import java.math.BigDecimal;
12import java.util.ArrayList;
13import java.util.List;
14import javax.xml.bind.annotation.XmlAccessType;
15import javax.xml.bind.annotation.XmlAccessorType;
16import javax.xml.bind.annotation.XmlAttribute;
17import javax.xml.bind.annotation.XmlElement;
18import javax.xml.bind.annotation.XmlSchemaType;
19import javax.xml.bind.annotation.XmlType;
20import javax.xml.datatype.XMLGregorianCalendar;
21
22
23/**
24 * <p>Java class for Items complex type.
25 *
26 * <p>The following schema fragment specifies the expected content contained within this class.
27 *
28 * <pre>
29 * <complexType name="Items">
30 * <complexContent>
31 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
32 * <sequence>
33 * <element name="item" maxOccurs="unbounded" minOccurs="0">
34 * <complexType>
35 * <complexContent>
36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37 * <sequence>
38 * <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
39 * <element name="quantity">
40 * <simpleType>
41 * <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
42 * <maxExclusive value="100"/>
43 * </restriction>
44 * </simpleType>
45 * </element>
46 * <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
47 * <element ref="{}comment" minOccurs="0"/>
48 * <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
49 * </sequence>
50 * <attribute name="partNum" use="required" type="{}SKU" />
51 * </restriction>
52 * </complexContent>
53 * </complexType>
54 * </element>
55 * </sequence>
56 * </restriction>
57 * </complexContent>
58 * </complexType>
59 * </pre>
60 *
61 *
62 */
63@XmlAccessorType(XmlAccessType.FIELD)
64@XmlType(name = "Items", propOrder = {
65 "item"
66})
67public class Items {
68
69 protected List<Items.Item> item;
70
71 /**
72 * Gets the value of the item property.
73 *
74 * <p>
75 * This accessor method returns a reference to the live list,
76 * not a snapshot. Therefore any modification you make to the
77 * returned list will be present inside the JAXB object.
78 * This is why there is not a <CODE>set</CODE> method for the item property.
79 *
80 * <p>
81 * For example, to add a new item, do as follows:
82 * <pre>
83 * getItem().add(newItem);
84 * </pre>
85 *
86 *
87 * <p>
88 * Objects of the following type(s) are allowed in the list
89 * {@link Items.Item }
90 *
91 *
92 */
93 public List<Items.Item> getItem() {
94 if (item == null) {
95 item = new ArrayList<Items.Item>();
96 }
97 return this.item;
98 }
99
100
101 /**
102 * <p>Java class for anonymous complex type.
103 *
104 * <p>The following schema fragment specifies the expected content contained within this class.
105 *
106 * <pre>
107 * <complexType>
108 * <complexContent>
109 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
110 * <sequence>
111 * <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
112 * <element name="quantity">
113 * <simpleType>
114 * <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
115 * <maxExclusive value="100"/>
116 * </restriction>
117 * </simpleType>
118 * </element>
119 * <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
120 * <element ref="{}comment" minOccurs="0"/>
121 * <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
122 * </sequence>
123 * <attribute name="partNum" use="required" type="{}SKU" />
124 * </restriction>
125 * </complexContent>
126 * </complexType>
127 * </pre>
128 *
129 *
130 */
131 @XmlAccessorType(XmlAccessType.FIELD)
132 @XmlType(name = "", propOrder = {
133 "productName",
134 "quantity",
135 "usPrice",
136 "comment",
137 "shipDate"
138 })
139 public static class Item {
140
141 @XmlElement(required = true)
142 protected String productName;
143 protected int quantity;
144 @XmlElement(name = "USPrice", required = true)
145 protected BigDecimal usPrice;
146 protected String comment;
147 @XmlSchemaType(name = "date")
148 protected XMLGregorianCalendar shipDate;
149 @XmlAttribute(required = true)
150 protected String partNum;
151
152 /**
153 * Gets the value of the productName property.
154 *
155 * @return
156 * possible object is
157 * {@link String }
158 *
159 */
160 public String getProductName() {
161 return productName;
162 }
163
164 /**
165 * Sets the value of the productName property.
166 *
167 * @param value
168 * allowed object is
169 * {@link String }
170 *
171 */
172 public void setProductName(String value) {
173 this.productName = value;
174 }
175
176 /**
177 * Gets the value of the quantity property.
178 *
179 */
180 public int getQuantity() {
181 return quantity;
182 }
183
184 /**
185 * Sets the value of the quantity property.
186 *
187 */
188 public void setQuantity(int value) {
189 this.quantity = value;
190 }
191
192 /**
193 * Gets the value of the usPrice property.
194 *
195 * @return
196 * possible object is
197 * {@link BigDecimal }
198 *
199 */
200 public BigDecimal getUSPrice() {
201 return usPrice;
202 }
203
204 /**
205 * Sets the value of the usPrice property.
206 *
207 * @param value
208 * allowed object is
209 * {@link BigDecimal }
210 *
211 */
212 public void setUSPrice(BigDecimal value) {
213 this.usPrice = value;
214 }
215
216 /**
217 * Gets the value of the comment property.
218 *
219 * @return
220 * possible object is
221 * {@link String }
222 *
223 */
224 public String getComment() {
225 return comment;
226 }
227
228 /**
229 * Sets the value of the comment property.
230 *
231 * @param value
232 * allowed object is
233 * {@link String }
234 *
235 */
236 public void setComment(String value) {
237 this.comment = value;
238 }
239
240 /**
241 * Gets the value of the shipDate property.
242 *
243 * @return
244 * possible object is
245 * {@link XMLGregorianCalendar }
246 *
247 */
248 public XMLGregorianCalendar getShipDate() {
249 return shipDate;
250 }
251
252 /**
253 * Sets the value of the shipDate property.
254 *
255 * @param value
256 * allowed object is
257 * {@link XMLGregorianCalendar }
258 *
259 */
260 public void setShipDate(XMLGregorianCalendar value) {
261 this.shipDate = value;
262 }
263
264 /**
265 * Gets the value of the partNum property.
266 *
267 * @return
268 * possible object is
269 * {@link String }
270 *
271 */
272 public String getPartNum() {
273 return partNum;
274 }
275
276 /**
277 * Sets the value of the partNum property.
278 *
279 * @param value
280 * allowed object is
281 * {@link String }
282 *
283 */
284 public void setPartNum(String value) {
285 this.partNum = value;
286 }
287
288 }
289
290}