Subversion Repositories XServices

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
201 brianR 1
 
2
3
 
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
 
17
 *
18
 *                 Place holder type for custom Event payload "extensions"
19
 *
20
 *
21
 * <p>Java-Klasse für CustomExtensionType complex type.
22
 *
23
 * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
24
 *
25
 * <pre>
26
 * &lt;complexType name="CustomExtensionType">
27
 *   &lt;complexContent>
28
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29
 *       &lt;sequence>
30
 *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded"/>
31
 *       &lt;/sequence>
32
 *       &lt;anyAttribute/>
33
 *     &lt;/restriction>
34
 *   &lt;/complexContent>
35
 * &lt;/complexType>
36
 * </pre>
37
 *
38
 *
39
 */
40
@XmlAccessorType(XmlAccessType.FIELD)
41
@XmlType(name = "CustomExtensionType", namespace = "http://www.eclipse.org/alf/schema/EventBase/1", propOrder = {
42
    "any"
43
})
44
public class CustomExtensionType {
45
46
 
47
    protected List<Object> any;
48
    @XmlAnyAttribute
49
    private Map<QName, String> otherAttributes = new HashMap<QName, String>();
50
51
 
52
     * Gets the value of the any property.
53
     *
54
     * <p>
55
     * This accessor method returns a reference to the live list,
56
     * not a snapshot. Therefore any modification you make to the
57
     * returned list will be present inside the JAXB object.
58
     * This is why there is not a <CODE>set</CODE> method for the any property.
59
     *
60
     * <p>
61
     * For example, to add a new item, do as follows:
62
     * <pre>
63
     *    getAny().add(newItem);
64
     * </pre>
65
     *
66
     *
67
     * <p>
68
     * Objects of the following type(s) are allowed in the list
69
     * {@link Object }
70
     * {@link Element }
71
     *
72
     *
73
     */
74
    public List<Object> getAny() {
75
        if (any == null) {
76
            any = new ArrayList<Object>();
77
        }
78
        return this.any;
79
    }
80
81
 
82
     * Gets a map that contains attributes that aren't bound to any typed property on this class.
83
     *
84
     * <p>
85
     * the map is keyed by the name of the attribute and
86
     * the value is the string value of the attribute.
87
     *
88
     * the map returned by this method is live, and you can add new attribute
89
     * by updating the map directly. Because of this design, there's no setter.
90
     *
91
     *
92
     * @return
93
     *     always non-null
94
     */
95
    public Map<QName, String> getOtherAttributes() {
96
        return otherAttributes;
97
    }
98
99
 
100