Subversion Repositories XServices

Rev

Rev 201 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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