View Javadoc

1   package org.fosstrak.epcis.model;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import javax.xml.bind.annotation.XmlAccessType;
6   import javax.xml.bind.annotation.XmlAccessorType;
7   import javax.xml.bind.annotation.XmlAnyElement;
8   import javax.xml.bind.annotation.XmlElement;
9   import javax.xml.bind.annotation.XmlRootElement;
10  import javax.xml.bind.annotation.XmlType;
11  import org.w3c.dom.Element;
12  
13  /**
14   * Quantity Event captures an event that takes place with respect to a specified
15   * quantity of object class.
16   * <p>
17   * Java class for QuantityEventType complex type.
18   * <p>
19   * The following schema fragment specifies the expected content contained within
20   * this class.
21   * 
22   * <pre>
23   * &lt;complexType name="QuantityEventType">
24   *   &lt;complexContent>
25   *     &lt;extension base="{urn:epcglobal:epcis:xsd:1}EPCISEventType">
26   *       &lt;sequence>
27   *         &lt;element name="epcClass" type="{urn:epcglobal:epcis:xsd:1}EPCClassType"/>
28   *         &lt;element name="quantity" type="{http://www.w3.org/2001/XMLSchema}int"/>
29   *         &lt;element name="bizStep" type="{urn:epcglobal:epcis:xsd:1}BusinessStepIDType" minOccurs="0"/>
30   *         &lt;element name="disposition" type="{urn:epcglobal:epcis:xsd:1}DispositionIDType" minOccurs="0"/>
31   *         &lt;element name="readPoint" type="{urn:epcglobal:epcis:xsd:1}ReadPointType" minOccurs="0"/>
32   *         &lt;element name="bizLocation" type="{urn:epcglobal:epcis:xsd:1}BusinessLocationType" minOccurs="0"/>
33   *         &lt;element name="bizTransactionList" type="{urn:epcglobal:epcis:xsd:1}BusinessTransactionListType" minOccurs="0"/>
34   *         &lt;element name="extension" type="{urn:epcglobal:epcis:xsd:1}QuantityEventExtensionType" minOccurs="0"/>
35   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
36   *       &lt;/sequence>
37   *       &lt;anyAttribute processContents='lax'/>
38   *     &lt;/extension>
39   *   &lt;/complexContent>
40   * &lt;/complexType>
41   * </pre>
42   */
43  
44  //added by nkef
45  @XmlRootElement(name = "QuantityEvent", namespace = "")
46  
47  @XmlAccessorType(XmlAccessType.FIELD)
48  @XmlType(name = "QuantityEventType", namespace = "urn:epcglobal:epcis:xsd:1", propOrder = {
49          "epcClass", "quantity", "bizStep", "disposition", "readPoint", "bizLocation", "bizTransactionList",
50          "extension", "any" })
51  public class QuantityEventType extends EPCISEventType {
52  
53      @XmlElement(required = true)
54      protected String epcClass;
55      protected int quantity;
56      protected String bizStep;
57      protected String disposition;
58      protected ReadPointType readPoint;
59      protected BusinessLocationType bizLocation;
60      protected BusinessTransactionListType bizTransactionList;
61      protected QuantityEventExtensionType extension;
62      @XmlAnyElement(lax = true)
63      protected List<Object> any;
64  
65      /**
66       * Gets the value of the epcClass property.
67       * 
68       * @return possible object is {@link String }
69       */
70      public String getEpcClass() {
71          return epcClass;
72      }
73  
74      /**
75       * Sets the value of the epcClass property.
76       * 
77       * @param value
78       *            allowed object is {@link String }
79       */
80      public void setEpcClass(String value) {
81          this.epcClass = value;
82      }
83  
84      /**
85       * Gets the value of the quantity property.
86       */
87      public int getQuantity() {
88          return quantity;
89      }
90  
91      /**
92       * Sets the value of the quantity property.
93       */
94      public void setQuantity(int value) {
95          this.quantity = value;
96      }
97  
98      /**
99       * Gets the value of the bizStep property.
100      * 
101      * @return possible object is {@link String }
102      */
103     public String getBizStep() {
104         return bizStep;
105     }
106 
107     /**
108      * Sets the value of the bizStep property.
109      * 
110      * @param value
111      *            allowed object is {@link String }
112      */
113     public void setBizStep(String value) {
114         this.bizStep = value;
115     }
116 
117     /**
118      * Gets the value of the disposition property.
119      * 
120      * @return possible object is {@link String }
121      */
122     public String getDisposition() {
123         return disposition;
124     }
125 
126     /**
127      * Sets the value of the disposition property.
128      * 
129      * @param value
130      *            allowed object is {@link String }
131      */
132     public void setDisposition(String value) {
133         this.disposition = value;
134     }
135 
136     /**
137      * Gets the value of the readPoint property.
138      * 
139      * @return possible object is {@link ReadPointType }
140      */
141     public ReadPointType getReadPoint() {
142         return readPoint;
143     }
144 
145     /**
146      * Sets the value of the readPoint property.
147      * 
148      * @param value
149      *            allowed object is {@link ReadPointType }
150      */
151     public void setReadPoint(ReadPointType value) {
152         this.readPoint = value;
153     }
154 
155     /**
156      * Gets the value of the bizLocation property.
157      * 
158      * @return possible object is {@link BusinessLocationType }
159      */
160     public BusinessLocationType getBizLocation() {
161         return bizLocation;
162     }
163 
164     /**
165      * Sets the value of the bizLocation property.
166      * 
167      * @param value
168      *            allowed object is {@link BusinessLocationType }
169      */
170     public void setBizLocation(BusinessLocationType value) {
171         this.bizLocation = value;
172     }
173 
174     /**
175      * Gets the value of the bizTransactionList property.
176      * 
177      * @return possible object is {@link BusinessTransactionListType }
178      */
179     public BusinessTransactionListType getBizTransactionList() {
180         return bizTransactionList;
181     }
182 
183     /**
184      * Sets the value of the bizTransactionList property.
185      * 
186      * @param value
187      *            allowed object is {@link BusinessTransactionListType }
188      */
189     public void setBizTransactionList(BusinessTransactionListType value) {
190         this.bizTransactionList = value;
191     }
192 
193     /**
194      * Gets the value of the extension property.
195      * 
196      * @return possible object is {@link QuantityEventExtensionType }
197      */
198     public QuantityEventExtensionType getExtension() {
199         return extension;
200     }
201 
202     /**
203      * Sets the value of the extension property.
204      * 
205      * @param value
206      *            allowed object is {@link QuantityEventExtensionType }
207      */
208     public void setExtension(QuantityEventExtensionType value) {
209         this.extension = value;
210     }
211 
212     /**
213      * Gets the value of the any property.
214      * <p>
215      * This accessor method returns a reference to the live list, not a
216      * snapshot. Therefore any modification you make to the returned list will
217      * be present inside the JAXB object. This is why there is not a
218      * <CODE>set</CODE> method for the any property.
219      * <p>
220      * For example, to add a new item, do as follows:
221      * 
222      * <pre>
223      * getAny().add(newItem);
224      * </pre>
225      * <p>
226      * Objects of the following type(s) are allowed in the list {@link Element }
227      * {@link Object }
228      */
229     public List<Object> getAny() {
230         if (any == null) {
231             any = new ArrayList<Object>();
232         }
233         return this.any;
234     }
235 
236 }