View Javadoc

1   package org.fosstrak.epcis.model;
2   
3   import java.math.BigInteger;
4   import java.util.ArrayList;
5   import java.util.List;
6   import javax.xml.bind.annotation.XmlAccessType;
7   import javax.xml.bind.annotation.XmlAccessorType;
8   import javax.xml.bind.annotation.XmlElement;
9   import javax.xml.bind.annotation.XmlType;
10  
11  /**
12   * <p>
13   * Java class for Manifest complex type.
14   * <p>
15   * The following schema fragment specifies the expected content contained within
16   * this class.
17   * 
18   * <pre>
19   * &lt;complexType name="Manifest">
20   *   &lt;complexContent>
21   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22   *       &lt;sequence>
23   *         &lt;element name="NumberOfItems" type="{http://www.w3.org/2001/XMLSchema}integer"/>
24   *         &lt;element name="ManifestItem" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}ManifestItem" maxOccurs="unbounded"/>
25   *       &lt;/sequence>
26   *     &lt;/restriction>
27   *   &lt;/complexContent>
28   * &lt;/complexType>
29   * </pre>
30   */
31  @XmlAccessorType(XmlAccessType.FIELD)
32  @XmlType(name = "Manifest", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", propOrder = {
33          "numberOfItems", "manifestItem" })
34  public class Manifest {
35  
36      @XmlElement(name = "NumberOfItems", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true)
37      protected BigInteger numberOfItems;
38      @XmlElement(name = "ManifestItem", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true)
39      protected List<ManifestItem> manifestItem;
40  
41      /**
42       * Gets the value of the numberOfItems property.
43       * 
44       * @return possible object is {@link BigInteger }
45       */
46      public BigInteger getNumberOfItems() {
47          return numberOfItems;
48      }
49  
50      /**
51       * Sets the value of the numberOfItems property.
52       * 
53       * @param value
54       *            allowed object is {@link BigInteger }
55       */
56      public void setNumberOfItems(BigInteger value) {
57          this.numberOfItems = value;
58      }
59  
60      /**
61       * Gets the value of the manifestItem property.
62       * <p>
63       * This accessor method returns a reference to the live list, not a
64       * snapshot. Therefore any modification you make to the returned list will
65       * be present inside the JAXB object. This is why there is not a
66       * <CODE>set</CODE> method for the manifestItem property.
67       * <p>
68       * For example, to add a new item, do as follows:
69       * 
70       * <pre>
71       * getManifestItem().add(newItem);
72       * </pre>
73       * <p>
74       * Objects of the following type(s) are allowed in the list
75       * {@link ManifestItem }
76       */
77      public List<ManifestItem> getManifestItem() {
78          if (manifestItem == null) {
79              manifestItem = new ArrayList<ManifestItem>();
80          }
81          return this.manifestItem;
82      }
83  
84  }