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.XmlAnyElement;
8   import javax.xml.bind.annotation.XmlElement;
9   import javax.xml.bind.annotation.XmlType;
10  import org.w3c.dom.Element;
11  
12  /**
13   * <p>
14   * Java class for BusinessLocationType complex type.
15   * <p>
16   * The following schema fragment specifies the expected content contained within
17   * this class.
18   * 
19   * <pre>
20   * &lt;complexType name="BusinessLocationType">
21   *   &lt;complexContent>
22   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
23   *       &lt;sequence>
24   *         &lt;element name="id" type="{urn:epcglobal:epcis:xsd:1}BusinessLocationIDType"/>
25   *         &lt;element name="extension" type="{urn:epcglobal:epcis:xsd:1}BusinessLocationExtensionType" minOccurs="0"/>
26   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
27   *       &lt;/sequence>
28   *     &lt;/restriction>
29   *   &lt;/complexContent>
30   * &lt;/complexType>
31   * </pre>
32   */
33  @XmlAccessorType(XmlAccessType.FIELD)
34  @XmlType(name = "BusinessLocationType", namespace = "urn:epcglobal:epcis:xsd:1", propOrder = { "id", "extension", "any" })
35  public class BusinessLocationType {
36  
37      @XmlElement(required = true)
38      protected String id;
39      protected BusinessLocationExtensionType extension;
40      @XmlAnyElement(lax = true)
41      protected List<Object> any;
42  
43      /**
44       * Gets the value of the id property.
45       * 
46       * @return possible object is {@link String }
47       */
48      public String getId() {
49          return id;
50      }
51  
52      /**
53       * Sets the value of the id property.
54       * 
55       * @param value
56       *            allowed object is {@link String }
57       */
58      public void setId(String value) {
59          this.id = value;
60      }
61  
62      /**
63       * Gets the value of the extension property.
64       * 
65       * @return possible object is {@link BusinessLocationExtensionType }
66       */
67      public BusinessLocationExtensionType getExtension() {
68          return extension;
69      }
70  
71      /**
72       * Sets the value of the extension property.
73       * 
74       * @param value
75       *            allowed object is {@link BusinessLocationExtensionType }
76       */
77      public void setExtension(BusinessLocationExtensionType value) {
78          this.extension = value;
79      }
80  
81      /**
82       * Gets the value of the any property.
83       * <p>
84       * This accessor method returns a reference to the live list, not a
85       * snapshot. Therefore any modification you make to the returned list will
86       * be present inside the JAXB object. This is why there is not a
87       * <CODE>set</CODE> method for the any property.
88       * <p>
89       * For example, to add a new item, do as follows:
90       * 
91       * <pre>
92       * getAny().add(newItem);
93       * </pre>
94       * <p>
95       * Objects of the following type(s) are allowed in the list {@link Element }
96       * {@link Object }
97       */
98      public List<Object> getAny() {
99          if (any == null) {
100             any = new ArrayList<Object>();
101         }
102         return this.any;
103     }
104 
105 }