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