View Javadoc

1   package org.fosstrak.epcis.model;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import javax.xml.bind.JAXBElement;
6   import javax.xml.bind.annotation.XmlAccessType;
7   import javax.xml.bind.annotation.XmlAccessorType;
8   import javax.xml.bind.annotation.XmlAnyElement;
9   import javax.xml.bind.annotation.XmlElementRef;
10  import javax.xml.bind.annotation.XmlElementRefs;
11  import javax.xml.bind.annotation.XmlType;
12  import org.w3c.dom.Element;
13  
14  /**
15   * <p>
16   * Java class for EventListType complex type.
17   * <p>
18   * The following schema fragment specifies the expected content contained within
19   * this class.
20   * 
21   * <pre>
22   * &lt;complexType name="EventListType">
23   *   &lt;complexContent>
24   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25   *       &lt;choice maxOccurs="unbounded" minOccurs="0">
26   *         &lt;element name="ObjectEvent" type="{urn:epcglobal:epcis:xsd:1}ObjectEventType" maxOccurs="unbounded" minOccurs="0"/>
27   *         &lt;element name="AggregationEvent" type="{urn:epcglobal:epcis:xsd:1}AggregationEventType" maxOccurs="unbounded" minOccurs="0"/>
28   *         &lt;element name="QuantityEvent" type="{urn:epcglobal:epcis:xsd:1}QuantityEventType" maxOccurs="unbounded" minOccurs="0"/>
29   *         &lt;element name="TransactionEvent" type="{urn:epcglobal:epcis:xsd:1}TransactionEventType" maxOccurs="unbounded" minOccurs="0"/>
30   *         &lt;element name="extension" type="{urn:epcglobal:epcis:xsd:1}EPCISEventListExtensionType"/>
31   *         &lt;any processContents='lax' namespace='##other'/>
32   *       &lt;/choice>
33   *     &lt;/restriction>
34   *   &lt;/complexContent>
35   * &lt;/complexType>
36   * </pre>
37   */
38  @XmlAccessorType(XmlAccessType.FIELD)
39  @XmlType(name = "EventListType", namespace = "urn:epcglobal:epcis:xsd:1", propOrder = { "objectEventOrAggregationEventOrQuantityEvent" })
40  public class EventListType {
41  
42      @XmlElementRefs( {
43              @XmlElementRef(name = "ObjectEvent", type = JAXBElement.class),
44              @XmlElementRef(name = "extension", type = JAXBElement.class),
45              @XmlElementRef(name = "TransactionEvent", type = JAXBElement.class),
46              @XmlElementRef(name = "QuantityEvent", type = JAXBElement.class),
47              @XmlElementRef(name = "AggregationEvent", type = JAXBElement.class) })
48      @XmlAnyElement(lax = true)
49      protected List<Object> objectEventOrAggregationEventOrQuantityEvent;
50  
51      /**
52       * Gets the value of the objectEventOrAggregationEventOrQuantityEvent
53       * property.
54       * <p>
55       * This accessor method returns a reference to the live list, not a
56       * snapshot. Therefore any modification you make to the returned list will
57       * be present inside the JAXB object. This is why there is not a
58       * <CODE>set</CODE> method for the
59       * objectEventOrAggregationEventOrQuantityEvent property.
60       * <p>
61       * For example, to add a new item, do as follows:
62       * 
63       * <pre>
64       * getObjectEventOrAggregationEventOrQuantityEvent().add(newItem);
65       * </pre>
66       * <p>
67       * Objects of the following type(s) are allowed in the list
68       * {@link JAXBElement }{@code <}{@link ObjectEventType }{@code >}
69       * {@link JAXBElement }{@code <}{@link EPCISEventListExtensionType }{@code >}
70       * {@link JAXBElement }{@code <}{@link TransactionEventType }{@code >}
71       * {@link Object } {@link JAXBElement }{@code <}{@link QuantityEventType }
72       * {@code >} {@link JAXBElement }{@code <}{@link AggregationEventType }{@code
73       * >} {@link Element }
74       */
75      public List<Object> getObjectEventOrAggregationEventOrQuantityEvent() {
76          if (objectEventOrAggregationEventOrQuantityEvent == null) {
77              objectEventOrAggregationEventOrQuantityEvent = new ArrayList<Object>();
78          }
79          return this.objectEventOrAggregationEventOrQuantityEvent;
80      }
81  
82  }