KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2001 > _04 > xmlenc_ > ReferenceList


1
2 package org.w3._2001._04.xmlenc_;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6 import javax.xml.bind.JAXBElement;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElementRef;
10 import javax.xml.bind.annotation.XmlElementRefs;
11 import javax.xml.bind.annotation.XmlRootElement;
12 import javax.xml.bind.annotation.XmlType;
13
14
15 /**
16  * <p>Java class for anonymous complex type.
17  *
18  * <p>The following schema fragment specifies the expected content contained within this class.
19  *
20  * <pre>
21  * &lt;complexType>
22  * &lt;complexContent>
23  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24  * &lt;choice maxOccurs="unbounded" minOccurs="0">
25  * &lt;element name="DataReference" type="{http://www.w3.org/2001/04/xmlenc#}ReferenceType"/>
26  * &lt;element name="KeyReference" type="{http://www.w3.org/2001/04/xmlenc#}ReferenceType"/>
27  * &lt;/choice>
28  * &lt;/restriction>
29  * &lt;/complexContent>
30  * &lt;/complexType>
31  * </pre>
32  *
33  *
34  */

35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "", propOrder = {
37     "dataReferenceOrKeyReference"
38 })
39 @XmlRootElement(name = "ReferenceList")
40 public class ReferenceList {
41
42     @XmlElementRefs({
43         @XmlElementRef(name = "DataReference", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
44         @XmlElementRef(name = "KeyReference", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class)
45     })
46     protected List JavaDoc<JAXBElement<ReferenceType>> dataReferenceOrKeyReference;
47
48     /**
49      * Gets the value of the dataReferenceOrKeyReference property.
50      *
51      * <p>
52      * This accessor method returns a reference to the live list,
53      * not a snapshot. Therefore any modification you make to the
54      * returned list will be present inside the JAXB object.
55      * This is why there is not a <CODE>set</CODE> method for the dataReferenceOrKeyReference property.
56      *
57      * <p>
58      * For example, to add a new item, do as follows:
59      * <pre>
60      * getDataReferenceOrKeyReference().add(newItem);
61      * </pre>
62      *
63      *
64      * <p>
65      * Objects of the following type(s) are allowed in the list
66      * {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}
67      * {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}
68      *
69      *
70      */

71     public List JavaDoc<JAXBElement<ReferenceType>> getDataReferenceOrKeyReference() {
72         if (dataReferenceOrKeyReference == null) {
73             dataReferenceOrKeyReference = new ArrayList JavaDoc<JAXBElement<ReferenceType>>();
74         }
75         return this.dataReferenceOrKeyReference;
76     }
77
78 }
79
Popular Tags