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