KickJava   Java API By Example, From Geeks To Geeks.

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


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.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlAnyElement;
9 import javax.xml.bind.annotation.XmlAttribute;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12
13
14 /**
15  * <p>Java class for ReferenceType complex type.
16  *
17  * <p>The following schema fragment specifies the expected content contained within this class.
18  *
19  * <pre>
20  * &lt;complexType name="ReferenceType">
21  * &lt;complexContent>
22  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
23  * &lt;sequence>
24  * &lt;any/>
25  * &lt;/sequence>
26  * &lt;attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
27  * &lt;/restriction>
28  * &lt;/complexContent>
29  * &lt;/complexType>
30  * </pre>
31  *
32  *
33  */

34 @XmlAccessorType(XmlAccessType.FIELD)
35 @XmlType(name = "ReferenceType", propOrder = {
36     "any"
37 })
38 public class ReferenceType {
39
40     @XmlAnyElement(lax = true)
41     protected List JavaDoc<Object JavaDoc> any;
42     @XmlAttribute(name = "URI", required = true)
43     @XmlSchemaType(name = "anyURI")
44     protected String JavaDoc uri;
45
46     /**
47      * Gets the value of the any property.
48      *
49      * <p>
50      * This accessor method returns a reference to the live list,
51      * not a snapshot. Therefore any modification you make to the
52      * returned list will be present inside the JAXB object.
53      * This is why there is not a <CODE>set</CODE> method for the any property.
54      *
55      * <p>
56      * For example, to add a new item, do as follows:
57      * <pre>
58      * getAny().add(newItem);
59      * </pre>
60      *
61      *
62      * <p>
63      * Objects of the following type(s) are allowed in the list
64      * {@link Object }
65      *
66      *
67      */

68     public List JavaDoc<Object JavaDoc> getAny() {
69         if (any == null) {
70             any = new ArrayList JavaDoc<Object JavaDoc>();
71         }
72         return this.any;
73     }
74
75     /**
76      * Gets the value of the uri property.
77      *
78      * @return
79      * possible object is
80      * {@link String }
81      *
82      */

83     public String JavaDoc getURI() {
84         return uri;
85     }
86
87     /**
88      * Sets the value of the uri property.
89      *
90      * @param value
91      * allowed object is
92      * {@link String }
93      *
94      */

95     public void setURI(String JavaDoc value) {
96         this.uri = value;
97     }
98
99 }
100
Popular Tags