PageRenderTime 58ms CodeModel.GetById 26ms app.highlight 26ms RepoModel.GetById 2ms app.codeStats 0ms

/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 * &lt;complexType name="Items">
 30 *   &lt;complexContent>
 31 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 32 *       &lt;sequence>
 33 *         &lt;element name="item" maxOccurs="unbounded" minOccurs="0">
 34 *           &lt;complexType>
 35 *             &lt;complexContent>
 36 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 37 *                 &lt;sequence>
 38 *                   &lt;element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 39 *                   &lt;element name="quantity">
 40 *                     &lt;simpleType>
 41 *                       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
 42 *                         &lt;maxExclusive value="100"/>
 43 *                       &lt;/restriction>
 44 *                     &lt;/simpleType>
 45 *                   &lt;/element>
 46 *                   &lt;element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 47 *                   &lt;element ref="{}comment" minOccurs="0"/>
 48 *                   &lt;element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 49 *                 &lt;/sequence>
 50 *                 &lt;attribute name="partNum" use="required" type="{}SKU" />
 51 *               &lt;/restriction>
 52 *             &lt;/complexContent>
 53 *           &lt;/complexType>
 54 *         &lt;/element>
 55 *       &lt;/sequence>
 56 *     &lt;/restriction>
 57 *   &lt;/complexContent>
 58 * &lt;/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     * &lt;complexType>
108     *   &lt;complexContent>
109     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
110     *       &lt;sequence>
111     *         &lt;element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
112     *         &lt;element name="quantity">
113     *           &lt;simpleType>
114     *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
115     *               &lt;maxExclusive value="100"/>
116     *             &lt;/restriction>
117     *           &lt;/simpleType>
118     *         &lt;/element>
119     *         &lt;element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
120     *         &lt;element ref="{}comment" minOccurs="0"/>
121     *         &lt;element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
122     *       &lt;/sequence>
123     *       &lt;attribute name="partNum" use="required" type="{}SKU" />
124     *     &lt;/restriction>
125     *   &lt;/complexContent>
126     * &lt;/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}