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 * Transaction Event describes the association or disassociation of physical
15 * objects to one or more business transactions.
16 * <p>
17 * Java class for TransactionEventType complex type.
18 * <p>
19 * The following schema fragment specifies the expected content contained within
20 * this class.
21 *
22 * <pre>
23 * <complexType name="TransactionEventType">
24 * <complexContent>
25 * <extension base="{urn:epcglobal:epcis:xsd:1}EPCISEventType">
26 * <sequence>
27 * <element name="bizTransactionList" type="{urn:epcglobal:epcis:xsd:1}BusinessTransactionListType"/>
28 * <element name="parentID" type="{urn:epcglobal:epcis:xsd:1}ParentIDType" minOccurs="0"/>
29 * <element name="epcList" type="{urn:epcglobal:epcis:xsd:1}EPCListType"/>
30 * <element name="action" type="{urn:epcglobal:epcis:xsd:1}ActionType"/>
31 * <element name="bizStep" type="{urn:epcglobal:epcis:xsd:1}BusinessStepIDType" minOccurs="0"/>
32 * <element name="disposition" type="{urn:epcglobal:epcis:xsd:1}DispositionIDType" minOccurs="0"/>
33 * <element name="readPoint" type="{urn:epcglobal:epcis:xsd:1}ReadPointType" minOccurs="0"/>
34 * <element name="bizLocation" type="{urn:epcglobal:epcis:xsd:1}BusinessLocationType" minOccurs="0"/>
35 * <element name="extension" type="{urn:epcglobal:epcis:xsd:1}TransactionEventExtensionType" minOccurs="0"/>
36 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
37 * </sequence>
38 * <anyAttribute processContents='lax'/>
39 * </extension>
40 * </complexContent>
41 * </complexType>
42 * </pre>
43 */
44 //added by nkef
45 @XmlRootElement(name = "TransactionEvent", namespace = "")
46
47 @XmlAccessorType(XmlAccessType.FIELD)
48 @XmlType(name = "TransactionEventType", namespace = "urn:epcglobal:epcis:xsd:1", propOrder = {
49 "bizTransactionList", "parentID", "epcList", "action", "bizStep", "disposition", "readPoint", "bizLocation",
50 "extension", "any" })
51 public class TransactionEventType extends EPCISEventType {
52
53 @XmlElement(required = true)
54 protected BusinessTransactionListType bizTransactionList;
55 protected String parentID;
56 @XmlElement(required = true)
57 protected EPCListType epcList;
58 @XmlElement(required = true)
59 protected ActionType action;
60 protected String bizStep;
61 protected String disposition;
62 protected ReadPointType readPoint;
63 protected BusinessLocationType bizLocation;
64 protected TransactionEventExtensionType extension;
65 @XmlAnyElement(lax = true)
66 protected List<Object> any;
67
68 /**
69 * Gets the value of the bizTransactionList property.
70 *
71 * @return possible object is {@link BusinessTransactionListType }
72 */
73 public BusinessTransactionListType getBizTransactionList() {
74 return bizTransactionList;
75 }
76
77 /**
78 * Sets the value of the bizTransactionList property.
79 *
80 * @param value
81 * allowed object is {@link BusinessTransactionListType }
82 */
83 public void setBizTransactionList(BusinessTransactionListType value) {
84 this.bizTransactionList = value;
85 }
86
87 /**
88 * Gets the value of the parentID property.
89 *
90 * @return possible object is {@link String }
91 */
92 public String getParentID() {
93 return parentID;
94 }
95
96 /**
97 * Sets the value of the parentID property.
98 *
99 * @param value
100 * allowed object is {@link String }
101 */
102 public void setParentID(String value) {
103 this.parentID = value;
104 }
105
106 /**
107 * Gets the value of the epcList property.
108 *
109 * @return possible object is {@link EPCListType }
110 */
111 public EPCListType getEpcList() {
112 return epcList;
113 }
114
115 /**
116 * Sets the value of the epcList property.
117 *
118 * @param value
119 * allowed object is {@link EPCListType }
120 */
121 public void setEpcList(EPCListType value) {
122 this.epcList = value;
123 }
124
125 /**
126 * Gets the value of the action property.
127 *
128 * @return possible object is {@link ActionType }
129 */
130 public ActionType getAction() {
131 return action;
132 }
133
134 /**
135 * Sets the value of the action property.
136 *
137 * @param value
138 * allowed object is {@link ActionType }
139 */
140 public void setAction(ActionType value) {
141 this.action = value;
142 }
143
144 /**
145 * Gets the value of the bizStep property.
146 *
147 * @return possible object is {@link String }
148 */
149 public String getBizStep() {
150 return bizStep;
151 }
152
153 /**
154 * Sets the value of the bizStep property.
155 *
156 * @param value
157 * allowed object is {@link String }
158 */
159 public void setBizStep(String value) {
160 this.bizStep = value;
161 }
162
163 /**
164 * Gets the value of the disposition property.
165 *
166 * @return possible object is {@link String }
167 */
168 public String getDisposition() {
169 return disposition;
170 }
171
172 /**
173 * Sets the value of the disposition property.
174 *
175 * @param value
176 * allowed object is {@link String }
177 */
178 public void setDisposition(String value) {
179 this.disposition = value;
180 }
181
182 /**
183 * Gets the value of the readPoint property.
184 *
185 * @return possible object is {@link ReadPointType }
186 */
187 public ReadPointType getReadPoint() {
188 return readPoint;
189 }
190
191 /**
192 * Sets the value of the readPoint property.
193 *
194 * @param value
195 * allowed object is {@link ReadPointType }
196 */
197 public void setReadPoint(ReadPointType value) {
198 this.readPoint = value;
199 }
200
201 /**
202 * Gets the value of the bizLocation property.
203 *
204 * @return possible object is {@link BusinessLocationType }
205 */
206 public BusinessLocationType getBizLocation() {
207 return bizLocation;
208 }
209
210 /**
211 * Sets the value of the bizLocation property.
212 *
213 * @param value
214 * allowed object is {@link BusinessLocationType }
215 */
216 public void setBizLocation(BusinessLocationType value) {
217 this.bizLocation = value;
218 }
219
220 /**
221 * Gets the value of the extension property.
222 *
223 * @return possible object is {@link TransactionEventExtensionType }
224 */
225 public TransactionEventExtensionType getExtension() {
226 return extension;
227 }
228
229 /**
230 * Sets the value of the extension property.
231 *
232 * @param value
233 * allowed object is {@link TransactionEventExtensionType }
234 */
235 public void setExtension(TransactionEventExtensionType value) {
236 this.extension = value;
237 }
238
239 /**
240 * Gets the value of the any property.
241 * <p>
242 * This accessor method returns a reference to the live list, not a
243 * snapshot. Therefore any modification you make to the returned list will
244 * be present inside the JAXB object. This is why there is not a
245 * <CODE>set</CODE> method for the any property.
246 * <p>
247 * For example, to add a new item, do as follows:
248 *
249 * <pre>
250 * getAny().add(newItem);
251 * </pre>
252 * <p>
253 * Objects of the following type(s) are allowed in the list {@link Element }
254 * {@link Object }
255 */
256 public List<Object> getAny() {
257 if (any == null) {
258 any = new ArrayList<Object>();
259 }
260 return this.any;
261 }
262
263 }