001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-hudson-3037-ea3
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2006.10.31 at 03:24:08 PM PST
006: //
007:
008: package org.geotools.po;
009:
010: import java.math.BigDecimal;
011: import java.math.BigInteger;
012: import java.util.ArrayList;
013: import java.util.List;
014: import javax.xml.bind.annotation.AccessType;
015: import javax.xml.bind.annotation.XmlAccessorType;
016: import javax.xml.bind.annotation.XmlAttribute;
017: import javax.xml.bind.annotation.XmlElement;
018: import javax.xml.bind.annotation.XmlType;
019: import javax.xml.datatype.XMLGregorianCalendar;
020: import org.geotools.po.Items;
021: import org.geotools.po.Items.Item;
022:
023: /**
024: * <p>Java class for Items complex type.
025: *
026: * <p>The following schema fragment specifies the expected content contained within this class.
027: *
028: * <pre>
029: * <complexType name="Items">
030: * <complexContent>
031: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
032: * <sequence>
033: * <element name="item" maxOccurs="unbounded" minOccurs="0">
034: * <complexType>
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
039: * <element name="quantity">
040: * <simpleType>
041: * <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
042: * <maxExclusive value="100"/>
043: * </restriction>
044: * </simpleType>
045: * </element>
046: * <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
047: * <element ref="{http://www.geotools.org/po}comment" minOccurs="0"/>
048: * <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
049: * </sequence>
050: * <attribute name="partNum" use="required" type="{http://www.geotools.org/po}SKU" />
051: * </restriction>
052: * </complexContent>
053: * </complexType>
054: * </element>
055: * </sequence>
056: * </restriction>
057: * </complexContent>
058: * </complexType>
059: * </pre>
060: *
061: *
062: */
063: @XmlAccessorType(AccessType.FIELD)
064: @XmlType(name="Items",propOrder={"item"})
065: public class Items {
066:
067: protected List<Item> item;
068:
069: /**
070: * Gets the value of the item property.
071: *
072: * <p>
073: * This accessor method returns a reference to the live list,
074: * not a snapshot. Therefore any modification you make to the
075: * returned list will be present inside the JAXB object.
076: * This is why there is not a <CODE>set</CODE> method for the item property.
077: *
078: * <p>
079: * For example, to add a new item, do as follows:
080: * <pre>
081: * getItem().add(newItem);
082: * </pre>
083: *
084: *
085: * <p>
086: * Objects of the following type(s) are allowed in the list
087: * {@link Item }
088: *
089: *
090: */
091: public List<Item> getItem() {
092: if (item == null) {
093: item = new ArrayList<Item>();
094: }
095: return this .item;
096: }
097:
098: /**
099: * <p>Java class for anonymous complex type.
100: *
101: * <p>The following schema fragment specifies the expected content contained within this class.
102: *
103: * <pre>
104: * <complexType>
105: * <complexContent>
106: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
107: * <sequence>
108: * <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
109: * <element name="quantity">
110: * <simpleType>
111: * <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
112: * <maxExclusive value="100"/>
113: * </restriction>
114: * </simpleType>
115: * </element>
116: * <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
117: * <element ref="{http://www.geotools.org/po}comment" minOccurs="0"/>
118: * <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
119: * </sequence>
120: * <attribute name="partNum" use="required" type="{http://www.geotools.org/po}SKU" />
121: * </restriction>
122: * </complexContent>
123: * </complexType>
124: * </pre>
125: *
126: *
127: */
128: @XmlAccessorType(AccessType.FIELD)
129: @XmlType(name="",propOrder={"productName","quantity","usPrice","comment","shipDate"})
130: public static class Item {
131:
132: protected String productName;
133: protected BigInteger quantity;
134: @XmlElement(name="USPrice")
135: protected BigDecimal usPrice;
136: @XmlElement(namespace="http://www.geotools.org/po")
137: protected String comment;
138: protected XMLGregorianCalendar shipDate;
139: @XmlAttribute(required=true)
140: protected String partNum;
141:
142: /**
143: * Gets the value of the productName property.
144: *
145: * @return
146: * possible object is
147: * {@link String }
148: *
149: */
150: public String getProductName() {
151: return productName;
152: }
153:
154: /**
155: * Sets the value of the productName property.
156: *
157: * @param value
158: * allowed object is
159: * {@link String }
160: *
161: */
162: public void setProductName(String value) {
163: this .productName = value;
164: }
165:
166: /**
167: * Gets the value of the quantity property.
168: *
169: * @return
170: * possible object is
171: * {@link BigInteger }
172: *
173: */
174: public BigInteger getQuantity() {
175: return quantity;
176: }
177:
178: /**
179: * Sets the value of the quantity property.
180: *
181: * @param value
182: * allowed object is
183: * {@link BigInteger }
184: *
185: */
186: public void setQuantity(BigInteger value) {
187: this .quantity = value;
188: }
189:
190: /**
191: * Gets the value of the usPrice property.
192: *
193: * @return
194: * possible object is
195: * {@link BigDecimal }
196: *
197: */
198: public BigDecimal getUSPrice() {
199: return usPrice;
200: }
201:
202: /**
203: * Sets the value of the usPrice property.
204: *
205: * @param value
206: * allowed object is
207: * {@link BigDecimal }
208: *
209: */
210: public void setUSPrice(BigDecimal value) {
211: this .usPrice = value;
212: }
213:
214: /**
215: * Gets the value of the comment property.
216: *
217: * @return
218: * possible object is
219: * {@link String }
220: *
221: */
222: public String getComment() {
223: return comment;
224: }
225:
226: /**
227: * Sets the value of the comment property.
228: *
229: * @param value
230: * allowed object is
231: * {@link String }
232: *
233: */
234: public void setComment(String value) {
235: this .comment = value;
236: }
237:
238: /**
239: * Gets the value of the shipDate property.
240: *
241: * @return
242: * possible object is
243: * {@link XMLGregorianCalendar }
244: *
245: */
246: public XMLGregorianCalendar getShipDate() {
247: return shipDate;
248: }
249:
250: /**
251: * Sets the value of the shipDate property.
252: *
253: * @param value
254: * allowed object is
255: * {@link XMLGregorianCalendar }
256: *
257: */
258: public void setShipDate(XMLGregorianCalendar value) {
259: this .shipDate = value;
260: }
261:
262: /**
263: * Gets the value of the partNum property.
264: *
265: * @return
266: * possible object is
267: * {@link String }
268: *
269: */
270: public String getPartNum() {
271: return partNum;
272: }
273:
274: /**
275: * Sets the value of the partNum property.
276: *
277: * @param value
278: * allowed object is
279: * {@link String }
280: *
281: */
282: public void setPartNum(String value) {
283: this.partNum = value;
284: }
285:
286: }
287:
288: }
|