source: FederatedSearch/mpi-endpoint/target/generated-sources/xjc/de/clarin/fcs/schema/ResourceType.java @ 6059

Last change on this file since 6059 was 6059, checked in by olhsha@mpi.nl, 9 years ago

importing the impi endpoint with the example of usage jaxb for generating java classes from schemata,and usage of guava library for cache

File size: 9.4 KB
Line 
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2015.02.25 at 04:46:45 PM CET
6//
7
8
9package de.clarin.fcs.schema;
10
11import java.util.ArrayList;
12import java.util.List;
13import javax.xml.bind.annotation.XmlAccessType;
14import javax.xml.bind.annotation.XmlAccessorType;
15import javax.xml.bind.annotation.XmlAnyElement;
16import javax.xml.bind.annotation.XmlAttribute;
17import javax.xml.bind.annotation.XmlElement;
18import javax.xml.bind.annotation.XmlType;
19import org.w3c.dom.Element;
20
21
22/**
23 * <p>Java class for ResourceType complex type.
24 *
25 * <p>The following schema fragment specifies the expected content contained within this class.
26 *
27 * <pre>
28 * &lt;complexType name="ResourceType"&gt;
29 *   &lt;complexContent&gt;
30 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
31 *       &lt;sequence&gt;
32 *         &lt;element name="DataView" type="{http://clarin.eu/fcs/resource}DataViewType" maxOccurs="unbounded" minOccurs="0"/&gt;
33 *         &lt;element name="ResourceFragment" maxOccurs="unbounded" minOccurs="0"&gt;
34 *           &lt;complexType&gt;
35 *             &lt;complexContent&gt;
36 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
37 *                 &lt;sequence&gt;
38 *                   &lt;element name="DataView" type="{http://clarin.eu/fcs/resource}DataViewType" maxOccurs="unbounded" minOccurs="0"/&gt;
39 *                 &lt;/sequence&gt;
40 *                 &lt;attribute name="pid" type="{http://clarin.eu/fcs/resource}PidType" /&gt;
41 *                 &lt;attribute name="ref" type="{http://clarin.eu/fcs/resource}ReferenceType" /&gt;
42 *               &lt;/restriction&gt;
43 *             &lt;/complexContent&gt;
44 *           &lt;/complexType&gt;
45 *         &lt;/element&gt;
46 *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/&gt;
47 *       &lt;/sequence&gt;
48 *       &lt;attribute name="pid" type="{http://clarin.eu/fcs/resource}PidType" /&gt;
49 *       &lt;attribute name="ref" type="{http://clarin.eu/fcs/resource}ReferenceType" /&gt;
50 *     &lt;/restriction&gt;
51 *   &lt;/complexContent&gt;
52 * &lt;/complexType&gt;
53 * </pre>
54 *
55 *
56 */
57@XmlAccessorType(XmlAccessType.FIELD)
58@XmlType(name = "ResourceType", namespace = "http://clarin.eu/fcs/resource", propOrder = {
59    "dataView",
60    "resourceFragment",
61    "any"
62})
63public class ResourceType {
64
65    @XmlElement(name = "DataView")
66    protected List<DataViewType> dataView;
67    @XmlElement(name = "ResourceFragment")
68    protected List<ResourceType.ResourceFragment> resourceFragment;
69    @XmlAnyElement(lax = true)
70    protected List<Object> any;
71    @XmlAttribute(name = "pid")
72    protected String pid;
73    @XmlAttribute(name = "ref")
74    protected String ref;
75
76    /**
77     * Gets the value of the dataView property.
78     *
79     * <p>
80     * This accessor method returns a reference to the live list,
81     * not a snapshot. Therefore any modification you make to the
82     * returned list will be present inside the JAXB object.
83     * This is why there is not a <CODE>set</CODE> method for the dataView property.
84     *
85     * <p>
86     * For example, to add a new item, do as follows:
87     * <pre>
88     *    getDataView().add(newItem);
89     * </pre>
90     *
91     *
92     * <p>
93     * Objects of the following type(s) are allowed in the list
94     * {@link DataViewType }
95     *
96     *
97     */
98    public List<DataViewType> getDataView() {
99        if (dataView == null) {
100            dataView = new ArrayList<DataViewType>();
101        }
102        return this.dataView;
103    }
104
105    /**
106     * Gets the value of the resourceFragment property.
107     *
108     * <p>
109     * This accessor method returns a reference to the live list,
110     * not a snapshot. Therefore any modification you make to the
111     * returned list will be present inside the JAXB object.
112     * This is why there is not a <CODE>set</CODE> method for the resourceFragment property.
113     *
114     * <p>
115     * For example, to add a new item, do as follows:
116     * <pre>
117     *    getResourceFragment().add(newItem);
118     * </pre>
119     *
120     *
121     * <p>
122     * Objects of the following type(s) are allowed in the list
123     * {@link ResourceType.ResourceFragment }
124     *
125     *
126     */
127    public List<ResourceType.ResourceFragment> getResourceFragment() {
128        if (resourceFragment == null) {
129            resourceFragment = new ArrayList<ResourceType.ResourceFragment>();
130        }
131        return this.resourceFragment;
132    }
133
134    /**
135     * Gets the value of the any property.
136     *
137     * <p>
138     * This accessor method returns a reference to the live list,
139     * not a snapshot. Therefore any modification you make to the
140     * returned list will be present inside the JAXB object.
141     * This is why there is not a <CODE>set</CODE> method for the any property.
142     *
143     * <p>
144     * For example, to add a new item, do as follows:
145     * <pre>
146     *    getAny().add(newItem);
147     * </pre>
148     *
149     *
150     * <p>
151     * Objects of the following type(s) are allowed in the list
152     * {@link Object }
153     * {@link Element }
154     *
155     *
156     */
157    public List<Object> getAny() {
158        if (any == null) {
159            any = new ArrayList<Object>();
160        }
161        return this.any;
162    }
163
164    /**
165     * Gets the value of the pid property.
166     *
167     * @return
168     *     possible object is
169     *     {@link String }
170     *     
171     */
172    public String getPid() {
173        return pid;
174    }
175
176    /**
177     * Sets the value of the pid property.
178     *
179     * @param value
180     *     allowed object is
181     *     {@link String }
182     *     
183     */
184    public void setPid(String value) {
185        this.pid = value;
186    }
187
188    /**
189     * Gets the value of the ref property.
190     *
191     * @return
192     *     possible object is
193     *     {@link String }
194     *     
195     */
196    public String getRef() {
197        return ref;
198    }
199
200    /**
201     * Sets the value of the ref property.
202     *
203     * @param value
204     *     allowed object is
205     *     {@link String }
206     *     
207     */
208    public void setRef(String value) {
209        this.ref = value;
210    }
211
212
213    /**
214     * <p>Java class for anonymous complex type.
215     *
216     * <p>The following schema fragment specifies the expected content contained within this class.
217     *
218     * <pre>
219     * &lt;complexType&gt;
220     *   &lt;complexContent&gt;
221     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
222     *       &lt;sequence&gt;
223     *         &lt;element name="DataView" type="{http://clarin.eu/fcs/resource}DataViewType" maxOccurs="unbounded" minOccurs="0"/&gt;
224     *       &lt;/sequence&gt;
225     *       &lt;attribute name="pid" type="{http://clarin.eu/fcs/resource}PidType" /&gt;
226     *       &lt;attribute name="ref" type="{http://clarin.eu/fcs/resource}ReferenceType" /&gt;
227     *     &lt;/restriction&gt;
228     *   &lt;/complexContent&gt;
229     * &lt;/complexType&gt;
230     * </pre>
231     *
232     *
233     */
234    @XmlAccessorType(XmlAccessType.FIELD)
235    @XmlType(name = "", propOrder = {
236        "dataView"
237    })
238    public static class ResourceFragment {
239
240        @XmlElement(name = "DataView", namespace = "http://clarin.eu/fcs/resource")
241        protected List<DataViewType> dataView;
242        @XmlAttribute(name = "pid")
243        protected String pid;
244        @XmlAttribute(name = "ref")
245        protected String ref;
246
247        /**
248         * Gets the value of the dataView property.
249         *
250         * <p>
251         * This accessor method returns a reference to the live list,
252         * not a snapshot. Therefore any modification you make to the
253         * returned list will be present inside the JAXB object.
254         * This is why there is not a <CODE>set</CODE> method for the dataView property.
255         *
256         * <p>
257         * For example, to add a new item, do as follows:
258         * <pre>
259         *    getDataView().add(newItem);
260         * </pre>
261         *
262         *
263         * <p>
264         * Objects of the following type(s) are allowed in the list
265         * {@link DataViewType }
266         *
267         *
268         */
269        public List<DataViewType> getDataView() {
270            if (dataView == null) {
271                dataView = new ArrayList<DataViewType>();
272            }
273            return this.dataView;
274        }
275
276        /**
277         * Gets the value of the pid property.
278         *
279         * @return
280         *     possible object is
281         *     {@link String }
282         *     
283         */
284        public String getPid() {
285            return pid;
286        }
287
288        /**
289         * Sets the value of the pid property.
290         *
291         * @param value
292         *     allowed object is
293         *     {@link String }
294         *     
295         */
296        public void setPid(String value) {
297            this.pid = value;
298        }
299
300        /**
301         * Gets the value of the ref property.
302         *
303         * @return
304         *     possible object is
305         *     {@link String }
306         *     
307         */
308        public String getRef() {
309            return ref;
310        }
311
312        /**
313         * Sets the value of the ref property.
314         *
315         * @param value
316         *     allowed object is
317         *     {@link String }
318         *     
319         */
320        public void setRef(String value) {
321            this.ref = value;
322        }
323
324    }
325
326}
Note: See TracBrowser for help on using the repository browser.