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