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.XmlType;
8   
9   /**
10   * <p>
11   * Java class for EPCListType complex type.
12   * <p>
13   * The following schema fragment specifies the expected content contained within
14   * this class.
15   * 
16   * <pre>
17   * &lt;complexType name="EPCListType">
18   *   &lt;complexContent>
19   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20   *       &lt;sequence>
21   *         &lt;element name="epc" type="{urn:epcglobal:xsd:1}EPC" maxOccurs="unbounded" minOccurs="0"/>
22   *       &lt;/sequence>
23   *     &lt;/restriction>
24   *   &lt;/complexContent>
25   * &lt;/complexType>
26   * </pre>
27   */
28  @XmlAccessorType(XmlAccessType.FIELD)
29  @XmlType(name = "EPCListType", namespace = "urn:epcglobal:epcis:xsd:1", propOrder = { "epc" })
30  public class EPCListType {
31  
32      protected List<EPC> epc;
33  
34      /**
35       * Gets the value of the epc property.
36       * <p>
37       * This accessor method returns a reference to the live list, not a
38       * snapshot. Therefore any modification you make to the returned list will
39       * be present inside the JAXB object. This is why there is not a
40       * <CODE>set</CODE> method for the epc property.
41       * <p>
42       * For example, to add a new item, do as follows:
43       * 
44       * <pre>
45       * getEpc().add(newItem);
46       * </pre>
47       * <p>
48       * Objects of the following type(s) are allowed in the list {@link EPC }
49       */
50      public List<EPC> getEpc() {
51          if (epc == null) {
52              epc = new ArrayList<EPC>();
53          }
54          return this.epc;
55      }
56  
57  }