Project

General

Profile

Download (8.18 KB) Statistics
| Branch: | Tag: | Revision:
1
//
2
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs
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: 2009.11.02 at 12:58:05 PM GMT
6
//
7

    
8

    
9
package eu.etaxonomy.cdm.remote.dto.oaipmh;
10

    
11
import java.time.ZonedDateTime;
12
import java.util.ArrayList;
13
import java.util.List;
14

    
15
import javax.xml.bind.annotation.XmlAccessType;
16
import javax.xml.bind.annotation.XmlAccessorType;
17
import javax.xml.bind.annotation.XmlElement;
18
import javax.xml.bind.annotation.XmlRootElement;
19
import javax.xml.bind.annotation.XmlType;
20
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
21
import javax.xml.datatype.XMLGregorianCalendar;
22

    
23
import eu.etaxonomy.cdm.jaxb.DateTimeAdapter;
24

    
25

    
26
/**
27
 * <p>Java class for OAI-PMHtype complex type.
28
 *
29
 * <p>The following schema fragment specifies the expected content contained within this class.
30
 *
31
 * <pre>
32
 * &lt;complexType name="OAI-PMHtype">
33
 *   &lt;complexContent>
34
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
35
 *       &lt;sequence>
36
 *         &lt;element name="responseDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
37
 *         &lt;element name="request" type="{http://www.openarchives.org/OAI/2.0/}requestType"/>
38
 *         &lt;choice>
39
 *           &lt;element name="error" type="{http://www.openarchives.org/OAI/2.0/}OAI-PMHerrorType" maxOccurs="unbounded"/>
40
 *           &lt;element name="Identify" type="{http://www.openarchives.org/OAI/2.0/}IdentifyType"/>
41
 *           &lt;element name="ListMetadataFormats" type="{http://www.openarchives.org/OAI/2.0/}ListMetadataFormatsType"/>
42
 *           &lt;element name="ListSets" type="{http://www.openarchives.org/OAI/2.0/}ListSetsType"/>
43
 *           &lt;element name="GetRecord" type="{http://www.openarchives.org/OAI/2.0/}GetRecordType"/>
44
 *           &lt;element name="ListIdentifiers" type="{http://www.openarchives.org/OAI/2.0/}ListIdentifiersType"/>
45
 *           &lt;element name="ListRecords" type="{http://www.openarchives.org/OAI/2.0/}ListRecordsType"/>
46
 *         &lt;/choice>
47
 *       &lt;/sequence>
48
 *     &lt;/restriction>
49
 *   &lt;/complexContent>
50
 * &lt;/complexType>
51
 * </pre>
52
 *
53
 *
54
 */
55
@XmlAccessorType(XmlAccessType.FIELD)
56
@XmlType(name = "OAI-PMHtype", propOrder = {
57
    "responseDate",
58
    "request",
59
    "error",
60
    "identify",
61
    "listMetadataFormats",
62
    "listSets",
63
    "getRecord",
64
    "listIdentifiers",
65
    "listRecords"
66
})
67
@XmlRootElement(name = "OAI-PMH")
68
public class OAIPMH {
69

    
70
    @XmlElement(required = true)
71
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
72
    protected ZonedDateTime  responseDate = ZonedDateTime.now();
73
    @XmlElement(required = true)
74
    protected Request request = new Request();
75
    protected List<Error> error;
76
    @XmlElement(name = "Identify")
77
    protected Identify identify;
78
    @XmlElement(name = "ListMetadataFormats")
79
    protected ListMetadataFormats listMetadataFormats;
80
    @XmlElement(name = "ListSets")
81
    protected ListSets listSets;
82
    @XmlElement(name = "GetRecord")
83
    protected GetRecord getRecord;
84
    @XmlElement(name = "ListIdentifiers")
85
    protected ListIdentifiers listIdentifiers;
86
    @XmlElement(name = "ListRecords")
87
    protected ListRecords listRecords;
88

    
89
    /**
90
     * Gets the value of the responseDate property.
91
     *
92
     * @return
93
     *     possible object is
94
     *     {@link XMLGregorianCalendar }
95
     *
96
     */
97
    public ZonedDateTime getResponseDate() {
98
        return responseDate;
99
    }
100

    
101
    /**
102
     * Sets the value of the responseDate property.
103
     *
104
     * @param value
105
     *     allowed object is
106
     *     {@link XMLGregorianCalendar }
107
     *
108
     */
109
    public void setResponseDate(ZonedDateTime value) {
110
        this.responseDate = value;
111
    }
112

    
113
    /**
114
     * Gets the value of the request property.
115
     *
116
     * @return
117
     *     possible object is
118
     *     {@link Request }
119
     *
120
     */
121
    public Request getRequest() {
122
        return request;
123
    }
124

    
125
    /**
126
     * Sets the value of the request property.
127
     *
128
     * @param value
129
     *     allowed object is
130
     *     {@link Request }
131
     *
132
     */
133
    public void setRequest(Request value) {
134
        this.request = value;
135
    }
136

    
137
    /**
138
     * Gets the value of the error property.
139
     *
140
     * <p>
141
     * This accessor method returns a reference to the live list,
142
     * not a snapshot. Therefore any modification you make to the
143
     * returned list will be present inside the JAXB object.
144
     * This is why there is not a <CODE>set</CODE> method for the error property.
145
     *
146
     * <p>
147
     * For example, to add a new item, do as follows:
148
     * <pre>
149
     *    getError().add(newItem);
150
     * </pre>
151
     *
152
     *
153
     * <p>
154
     * Objects of the following type(s) are allowed in the list
155
     * {@link Error }
156
     *
157
     *
158
     */
159
    public List<Error> getError() {
160
        if (error == null) {
161
            error = new ArrayList<Error>();
162
        }
163
        return this.error;
164
    }
165

    
166
    /**
167
     * Gets the value of the identify property.
168
     *
169
     * @return
170
     *     possible object is
171
     *     {@link Identify }
172
     *
173
     */
174
    public Identify getIdentify() {
175
        return identify;
176
    }
177

    
178
    /**
179
     * Sets the value of the identify property.
180
     *
181
     * @param value
182
     *     allowed object is
183
     *     {@link Identify }
184
     *
185
     */
186
    public void setIdentify(Identify value) {
187
        this.identify = value;
188
    }
189

    
190
    /**
191
     * Gets the value of the listMetadataFormats property.
192
     *
193
     * @return
194
     *     possible object is
195
     *     {@link ListMetadataFormats }
196
     *
197
     */
198
    public ListMetadataFormats getListMetadataFormats() {
199
        return listMetadataFormats;
200
    }
201

    
202
    /**
203
     * Sets the value of the listMetadataFormats property.
204
     *
205
     * @param value
206
     *     allowed object is
207
     *     {@link ListMetadataFormats }
208
     *
209
     */
210
    public void setListMetadataFormats(ListMetadataFormats value) {
211
        this.listMetadataFormats = value;
212
    }
213

    
214
    /**
215
     * Gets the value of the listSets property.
216
     *
217
     * @return
218
     *     possible object is
219
     *     {@link ListSets }
220
     *
221
     */
222
    public ListSets getListSets() {
223
        return listSets;
224
    }
225

    
226
    /**
227
     * Sets the value of the listSets property.
228
     *
229
     * @param value
230
     *     allowed object is
231
     *     {@link ListSets }
232
     *
233
     */
234
    public void setListSets(ListSets value) {
235
        this.listSets = value;
236
    }
237

    
238
    /**
239
     * Gets the value of the getRecord property.
240
     *
241
     * @return
242
     *     possible object is
243
     *     {@link GetRecord }
244
     *
245
     */
246
    public GetRecord getGetRecord() {
247
        return getRecord;
248
    }
249

    
250
    /**
251
     * Sets the value of the getRecord property.
252
     *
253
     * @param value
254
     *     allowed object is
255
     *     {@link GetRecord }
256
     *
257
     */
258
    public void setGetRecord(GetRecord value) {
259
        this.getRecord = value;
260
    }
261

    
262
    /**
263
     * Gets the value of the listIdentifiers property.
264
     *
265
     * @return
266
     *     possible object is
267
     *     {@link ListIdentifiers }
268
     *
269
     */
270
    public ListIdentifiers getListIdentifiers() {
271
        return listIdentifiers;
272
    }
273

    
274
    /**
275
     * Sets the value of the listIdentifiers property.
276
     *
277
     * @param value
278
     *     allowed object is
279
     *     {@link ListIdentifiers }
280
     *
281
     */
282
    public void setListIdentifiers(ListIdentifiers value) {
283
        this.listIdentifiers = value;
284
    }
285

    
286
    /**
287
     * Gets the value of the listRecords property.
288
     *
289
     * @return
290
     *     possible object is
291
     *     {@link ListRecords }
292
     *
293
     */
294
    public ListRecords getListRecords() {
295
        return listRecords;
296
    }
297

    
298
    /**
299
     * Sets the value of the listRecords property.
300
     *
301
     * @param value
302
     *     allowed object is
303
     *     {@link ListRecords }
304
     *
305
     */
306
    public void setListRecords(ListRecords value) {
307
        this.listRecords = value;
308
    }
309

    
310
}
(17-17/27)