Project

General

Profile

« Previous | Next » 

Revision f1a25720

Added by Katja Luther over 6 years ago

  • ID f1a25720755daa96e8838a617a660dfced7b9f31
  • Parent 23e50194

first implementation for change from joda time to java8 time

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/Header.java
1 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 
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 6
//
7 7

  
8 8

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

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

  
14 16
import javax.xml.bind.annotation.XmlAccessType;
15 17
import javax.xml.bind.annotation.XmlAccessorType;
16 18
import javax.xml.bind.annotation.XmlAttribute;
......
18 20
import javax.xml.bind.annotation.XmlType;
19 21
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
20 22

  
21
import org.joda.time.DateTime;
22

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

  
25 25

  
......
29 29
 *         the record is disseminated belongs to set(s).
30 30
 *         the header can carry a deleted status indicating
31 31
 *         that the record is deleted.
32
 * 
32
 *
33 33
 * <p>Java class for headerType complex type.
34
 * 
34
 *
35 35
 * <p>The following schema fragment specifies the expected content contained within this class.
36
 * 
36
 *
37 37
 * <pre>
38 38
 * &lt;complexType name="headerType">
39 39
 *   &lt;complexContent>
......
48 48
 *   &lt;/complexContent>
49 49
 * &lt;/complexType>
50 50
 * </pre>
51
 * 
52
 * 
51
 *
52
 *
53 53
 */
54 54
@XmlAccessorType(XmlAccessType.FIELD)
55 55
@XmlType(name = "headerType", propOrder = {
......
61 61

  
62 62
    @XmlElement(required = true)
63 63
    protected URI identifier;
64
    
64

  
65 65
    @XmlElement(required = true)
66 66
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
67
    protected DateTime datestamp;
68
    
67
    protected ZonedDateTime datestamp;
68

  
69 69
    protected List<String> setSpec;
70
    
70

  
71 71
    @XmlAttribute
72 72
    protected Status status;
73 73

  
74 74
    /**
75 75
     * Gets the value of the identifier property.
76
     * 
76
     *
77 77
     * @return
78 78
     *     possible object is
79 79
     *     {@link URI }
80
     *     
80
     *
81 81
     */
82 82
    public URI getIdentifier() {
83 83
        return identifier;
......
85 85

  
86 86
    /**
87 87
     * Sets the value of the identifier property.
88
     * 
88
     *
89 89
     * @param value
90 90
     *     allowed object is
91 91
     *     {@link URI }
92
     *     
92
     *
93 93
     */
94 94
    public void setIdentifier(URI value) {
95 95
        this.identifier = value;
......
97 97

  
98 98
    /**
99 99
     * Gets the value of the datestamp property.
100
     * 
100
     *
101 101
     * @return
102 102
     *     possible object is
103 103
     *     {@link DateTime }
104
     *     
104
     *
105 105
     */
106
    public DateTime getDatestamp() {
106
    public ZonedDateTime getDatestamp() {
107 107
        return datestamp;
108 108
    }
109 109

  
110 110
    /**
111 111
     * Sets the value of the datestamp property.
112
     * 
112
     *
113 113
     * @param value
114 114
     *     allowed object is
115 115
     *     {@link DateTime }
116
     *     
116
     *
117 117
     */
118
    public void setDatestamp(DateTime value) {
118
    public void setDatestamp(ZonedDateTime value) {
119 119
        this.datestamp = value;
120 120
    }
121 121

  
122 122
    /**
123 123
     * Gets the value of the setSpec property.
124
     * 
124
     *
125 125
     * <p>
126 126
     * This accessor method returns a reference to the live list,
127 127
     * not a snapshot. Therefore any modification you make to the
128 128
     * returned list will be present inside the JAXB object.
129 129
     * This is why there is not a <CODE>set</CODE> method for the setSpec property.
130
     * 
130
     *
131 131
     * <p>
132 132
     * For example, to add a new item, do as follows:
133 133
     * <pre>
134 134
     *    getSetSpec().add(newItem);
135 135
     * </pre>
136
     * 
137
     * 
136
     *
137
     *
138 138
     * <p>
139 139
     * Objects of the following type(s) are allowed in the list
140 140
     * {@link String }
141
     * 
142
     * 
141
     *
142
     *
143 143
     */
144 144
    public List<String> getSetSpec() {
145 145
        if (setSpec == null) {
......
150 150

  
151 151
    /**
152 152
     * Gets the value of the status property.
153
     * 
153
     *
154 154
     * @return
155 155
     *     possible object is
156 156
     *     {@link Status }
157
     *     
157
     *
158 158
     */
159 159
    public Status getStatus() {
160 160
        return status;
......
162 162

  
163 163
    /**
164 164
     * Sets the value of the status property.
165
     * 
165
     *
166 166
     * @param value
167 167
     *     allowed object is
168 168
     *     {@link Status }
169
     *     
169
     *
170 170
     */
171 171
    public void setStatus(Status value) {
172 172
        this.status = value;

Also available in: Unified diff