01: package org.w3._2001._04.xmlenc_;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05: import javax.xml.bind.annotation.XmlAccessType;
06: import javax.xml.bind.annotation.XmlAccessorType;
07: import javax.xml.bind.annotation.XmlAnyElement;
08: import javax.xml.bind.annotation.XmlAttribute;
09: import javax.xml.bind.annotation.XmlSchemaType;
10: import javax.xml.bind.annotation.XmlType;
11:
12: /**
13: * <p>Java class for ReferenceType complex type.
14: *
15: * <p>The following schema fragment specifies the expected content contained within this class.
16: *
17: * <pre>
18: * <complexType name="ReferenceType">
19: * <complexContent>
20: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
21: * <sequence>
22: * <any/>
23: * </sequence>
24: * <attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
25: * </restriction>
26: * </complexContent>
27: * </complexType>
28: * </pre>
29: *
30: *
31: */
32: @XmlAccessorType(XmlAccessType.FIELD)
33: @XmlType(name="ReferenceType",propOrder={"any"})
34: public class ReferenceType {
35:
36: @XmlAnyElement(lax=true)
37: protected List<Object> any;
38: @XmlAttribute(name="URI",required=true)
39: @XmlSchemaType(name="anyURI")
40: protected String uri;
41:
42: /**
43: * Gets the value of the any property.
44: *
45: * <p>
46: * This accessor method returns a reference to the live list,
47: * not a snapshot. Therefore any modification you make to the
48: * returned list will be present inside the JAXB object.
49: * This is why there is not a <CODE>set</CODE> method for the any property.
50: *
51: * <p>
52: * For example, to add a new item, do as follows:
53: * <pre>
54: * getAny().add(newItem);
55: * </pre>
56: *
57: *
58: * <p>
59: * Objects of the following type(s) are allowed in the list
60: * {@link Object }
61: *
62: *
63: */
64: public List<Object> getAny() {
65: if (any == null) {
66: any = new ArrayList<Object>();
67: }
68: return this .any;
69: }
70:
71: /**
72: * Gets the value of the uri property.
73: *
74: * @return
75: * possible object is
76: * {@link String }
77: *
78: */
79: public String getURI() {
80: return uri;
81: }
82:
83: /**
84: * Sets the value of the uri property.
85: *
86: * @param value
87: * allowed object is
88: * {@link String }
89: *
90: */
91: public void setURI(String value) {
92: this.uri = value;
93: }
94:
95: }
|