/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
- //
- // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
- // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
- // Any modifications to this file will be lost upon recompilation of the source schema.
- // Generated on: 2011.08.30 at 03:04:17 PM CDT
- //
- package org.jboss.as.test.integration.jaxb.bindings;
- import java.math.BigDecimal;
- import java.util.ArrayList;
- import java.util.List;
- import javax.xml.bind.annotation.XmlAccessType;
- import javax.xml.bind.annotation.XmlAccessorType;
- import javax.xml.bind.annotation.XmlAttribute;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlSchemaType;
- import javax.xml.bind.annotation.XmlType;
- import javax.xml.datatype.XMLGregorianCalendar;
- /**
- * <p>Java class for Items complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Items">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="item" maxOccurs="unbounded" minOccurs="0">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="quantity">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
- * <maxExclusive value="100"/>
- * </restriction>
- * </simpleType>
- * </element>
- * <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
- * <element ref="{}comment" minOccurs="0"/>
- * <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
- * </sequence>
- * <attribute name="partNum" use="required" type="{}SKU" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "Items", propOrder = {
- "item"
- })
- public class Items {
- protected List<Items.Item> item;
- /**
- * Gets the value of the item property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the item property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getItem().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Items.Item }
- *
- *
- */
- public List<Items.Item> getItem() {
- if (item == null) {
- item = new ArrayList<Items.Item>();
- }
- return this.item;
- }
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="quantity">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
- * <maxExclusive value="100"/>
- * </restriction>
- * </simpleType>
- * </element>
- * <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
- * <element ref="{}comment" minOccurs="0"/>
- * <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
- * </sequence>
- * <attribute name="partNum" use="required" type="{}SKU" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "productName",
- "quantity",
- "usPrice",
- "comment",
- "shipDate"
- })
- public static class Item {
- @XmlElement(required = true)
- protected String productName;
- protected int quantity;
- @XmlElement(name = "USPrice", required = true)
- protected BigDecimal usPrice;
- protected String comment;
- @XmlSchemaType(name = "date")
- protected XMLGregorianCalendar shipDate;
- @XmlAttribute(required = true)
- protected String partNum;
- /**
- * Gets the value of the productName property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getProductName() {
- return productName;
- }
- /**
- * Sets the value of the productName property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setProductName(String value) {
- this.productName = value;
- }
- /**
- * Gets the value of the quantity property.
- *
- */
- public int getQuantity() {
- return quantity;
- }
- /**
- * Sets the value of the quantity property.
- *
- */
- public void setQuantity(int value) {
- this.quantity = value;
- }
- /**
- * Gets the value of the usPrice property.
- *
- * @return
- * possible object is
- * {@link BigDecimal }
- *
- */
- public BigDecimal getUSPrice() {
- return usPrice;
- }
- /**
- * Sets the value of the usPrice property.
- *
- * @param value
- * allowed object is
- * {@link BigDecimal }
- *
- */
- public void setUSPrice(BigDecimal value) {
- this.usPrice = value;
- }
- /**
- * Gets the value of the comment property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getComment() {
- return comment;
- }
- /**
- * Sets the value of the comment property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setComment(String value) {
- this.comment = value;
- }
- /**
- * Gets the value of the shipDate property.
- *
- * @return
- * possible object is
- * {@link XMLGregorianCalendar }
- *
- */
- public XMLGregorianCalendar getShipDate() {
- return shipDate;
- }
- /**
- * Sets the value of the shipDate property.
- *
- * @param value
- * allowed object is
- * {@link XMLGregorianCalendar }
- *
- */
- public void setShipDate(XMLGregorianCalendar value) {
- this.shipDate = value;
- }
- /**
- * Gets the value of the partNum property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getPartNum() {
- return partNum;
- }
- /**
- * Sets the value of the partNum property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setPartNum(String value) {
- this.partNum = value;
- }
- }
- }