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