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