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.XmlAnyElement;
11  import javax.xml.bind.annotation.XmlAttribute;
12  import javax.xml.bind.annotation.XmlMixed;
13  import javax.xml.bind.annotation.XmlSchemaType;
14  import javax.xml.bind.annotation.XmlType;
15  import javax.xml.namespace.QName;
16  import org.w3c.dom.Element;
17  
18  /**
19   * <p>
20   * Java class for AttributeType complex type.
21   * <p>
22   * The following schema fragment specifies the expected content contained within
23   * this class.
24   * 
25   * <pre>
26   * &lt;complexType name="AttributeType">
27   *   &lt;complexContent>
28   *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}anyType">
29   *       &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
30   *       &lt;anyAttribute processContents='lax'/>
31   *     &lt;/extension>
32   *   &lt;/complexContent>
33   * &lt;/complexType>
34   * </pre>
35   */
36  @XmlAccessorType(XmlAccessType.FIELD)
37  @XmlType(name = "AttributeType", namespace = "urn:epcglobal:epcis-masterdata:xsd:1", propOrder = { "content" })
38  public class AttributeType {
39  
40      @XmlMixed
41      @XmlAnyElement
42      protected List<Object> content;
43      @XmlAttribute(name = "id", required = true)
44      @XmlSchemaType(name = "anyURI")
45      protected String id;
46      @XmlAnyAttribute
47      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
48  
49      /**
50       * Gets the value of the content property.
51       * <p>
52       * This accessor method returns a reference to the live list, not a
53       * snapshot. Therefore any modification you make to the returned list will
54       * be present inside the JAXB object. This is why there is not a
55       * <CODE>set</CODE> method for the content property.
56       * <p>
57       * For example, to add a new item, do as follows:
58       * 
59       * <pre>
60       * getContent().add(newItem);
61       * </pre>
62       * <p>
63       * Objects of the following type(s) are allowed in the list {@link Element }
64       * {@link String }
65       */
66      public List<Object> getContent() {
67          if (content == null) {
68              content = new ArrayList<Object>();
69          }
70          return this.content;
71      }
72  
73      /**
74       * Gets the value of the id property.
75       * 
76       * @return possible object is {@link String }
77       */
78      public String getId() {
79          return id;
80      }
81  
82      /**
83       * Sets the value of the id property.
84       * 
85       * @param value
86       *            allowed object is {@link String }
87       */
88      public void setId(String value) {
89          this.id = value;
90      }
91  
92      /**
93       * Gets a map that contains attributes that aren't bound to any typed
94       * property on this class.
95       * <p>
96       * the map is keyed by the name of the attribute and the value is the string
97       * value of the attribute. the map returned by this method is live, and you
98       * can add new attribute by updating the map directly. Because of this
99       * design, there's no setter.
100      * 
101      * @return always non-null
102      */
103     public Map<QName, String> getOtherAttributes() {
104         return otherAttributes;
105     }
106 
107 }