Subversion Repositories XServices

Rev

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