View Javadoc

1   package org.fosstrak.epcis.model;
2   
3   import java.util.ArrayList;
4   import java.util.HashMap;
5   import java.util.List;
6   import java.util.Map;
7   import javax.xml.bind.annotation.XmlAccessType;
8   import javax.xml.bind.annotation.XmlAccessorType;
9   import javax.xml.bind.annotation.XmlAnyAttribute;
10  import javax.xml.bind.annotation.XmlSchemaType;
11  import javax.xml.bind.annotation.XmlType;
12  import javax.xml.namespace.QName;
13  
14  /**
15   * <p>
16   * Java class for IDListType 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="IDListType">
23   *   &lt;complexContent>
24   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25   *       &lt;sequence>
26   *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
27   *       &lt;/sequence>
28   *       &lt;anyAttribute processContents='lax'/>
29   *     &lt;/restriction>
30   *   &lt;/complexContent>
31   * &lt;/complexType>
32   * </pre>
33   */
34  @XmlAccessorType(XmlAccessType.FIELD)
35  @XmlType(name = "IDListType", namespace = "urn:epcglobal:epcis-masterdata:xsd:1", propOrder = { "id" })
36  public class IDListType {
37  
38      @XmlSchemaType(name = "anyURI")
39      protected List<String> id;
40      @XmlAnyAttribute
41      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
42  
43      /**
44       * Gets the value of the id property.
45       * <p>
46       * This accessor method returns a reference to the live list, not a
47       * snapshot. Therefore any modification you make to the returned list will
48       * be present inside the JAXB object. This is why there is not a
49       * <CODE>set</CODE> method for the id property.
50       * <p>
51       * For example, to add a new item, do as follows:
52       * 
53       * <pre>
54       * getId().add(newItem);
55       * </pre>
56       * <p>
57       * Objects of the following type(s) are allowed in the list {@link String }
58       */
59      public List<String> getId() {
60          if (id == null) {
61              id = new ArrayList<String>();
62          }
63          return this.id;
64      }
65  
66      /**
67       * Gets a map that contains attributes that aren't bound to any typed
68       * property on this class.
69       * <p>
70       * the map is keyed by the name of the attribute and the value is the string
71       * value of the attribute. the map returned by this method is live, and you
72       * can add new attribute by updating the map directly. Because of this
73       * design, there's no setter.
74       * 
75       * @return always non-null
76       */
77      public Map<QName, String> getOtherAttributes() {
78          return otherAttributes;
79      }
80  
81  }