01: package org.w3._2001._04.xmlenc_;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05: import javax.xml.bind.JAXBElement;
06: import javax.xml.bind.annotation.XmlAccessType;
07: import javax.xml.bind.annotation.XmlAccessorType;
08: import javax.xml.bind.annotation.XmlElementRef;
09: import javax.xml.bind.annotation.XmlElementRefs;
10: import javax.xml.bind.annotation.XmlRootElement;
11: import javax.xml.bind.annotation.XmlType;
12:
13: /**
14: * <p>Java class for anonymous complex type.
15: *
16: * <p>The following schema fragment specifies the expected content contained within this class.
17: *
18: * <pre>
19: * <complexType>
20: * <complexContent>
21: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22: * <choice maxOccurs="unbounded" minOccurs="0">
23: * <element name="DataReference" type="{http://www.w3.org/2001/04/xmlenc#}ReferenceType"/>
24: * <element name="KeyReference" type="{http://www.w3.org/2001/04/xmlenc#}ReferenceType"/>
25: * </choice>
26: * </restriction>
27: * </complexContent>
28: * </complexType>
29: * </pre>
30: *
31: *
32: */
33: @XmlAccessorType(XmlAccessType.FIELD)
34: @XmlType(name="",propOrder={"dataReferenceOrKeyReference"})
35: @XmlRootElement(name="ReferenceList")
36: public class ReferenceList {
37:
38: @XmlElementRefs({@XmlElementRef(name="DataReference",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class),@XmlElementRef(name="KeyReference",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class)})
39: protected List<JAXBElement<ReferenceType>> dataReferenceOrKeyReference;
40:
41: /**
42: * Gets the value of the dataReferenceOrKeyReference property.
43: *
44: * <p>
45: * This accessor method returns a reference to the live list,
46: * not a snapshot. Therefore any modification you make to the
47: * returned list will be present inside the JAXB object.
48: * This is why there is not a <CODE>set</CODE> method for the dataReferenceOrKeyReference property.
49: *
50: * <p>
51: * For example, to add a new item, do as follows:
52: * <pre>
53: * getDataReferenceOrKeyReference().add(newItem);
54: * </pre>
55: *
56: *
57: * <p>
58: * Objects of the following type(s) are allowed in the list
59: * {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}
60: * {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}
61: *
62: *
63: */
64: public List<JAXBElement<ReferenceType>> getDataReferenceOrKeyReference() {
65: if (dataReferenceOrKeyReference == null) {
66: dataReferenceOrKeyReference = new ArrayList<JAXBElement<ReferenceType>>();
67: }
68: return this.dataReferenceOrKeyReference;
69: }
70:
71: }
|