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/ResumptionToken.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

  
......
10 10

  
11 11
import java.io.Serializable;
12 12
import java.math.BigInteger;
13
import java.time.ZonedDateTime;
13 14
import java.util.UUID;
14 15

  
15 16
import javax.xml.bind.annotation.XmlAccessType;
......
22 23
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
23 24
import javax.xml.datatype.XMLGregorianCalendar;
24 25

  
25
import org.joda.time.DateTime;
26

  
27 26
import eu.etaxonomy.cdm.api.service.pager.Pager;
28 27
import eu.etaxonomy.cdm.jaxb.DateTimeAdapter;
29 28

  
......
32 31
 * A resumptionToken may have 3 optional attributes
33 32
 *        and can be used in ListSets, ListIdentifiers, ListRecords
34 33
 *        responses.
35
 * 
34
 *
36 35
 * <p>Java class for resumptionTokenType complex type.
37
 * 
36
 *
38 37
 * <p>The following schema fragment specifies the expected content contained within this class.
39
 * 
38
 *
40 39
 * <pre>
41 40
 * &lt;complexType name="resumptionTokenType">
42 41
 *   &lt;simpleContent>
......
48 47
 *   &lt;/simpleContent>
49 48
 * &lt;/complexType>
50 49
 * </pre>
51
 * 
52
 * 
50
 *
51
 *
53 52
 */
54 53
@XmlAccessorType(XmlAccessType.FIELD)
55 54
@XmlType(name = "resumptionTokenType", propOrder = {
......
58 57
public class ResumptionToken implements Serializable {
59 58

  
60 59
    /**
61
	 * 
60
	 *
62 61
	 */
63 62
	private static final long serialVersionUID = 1L;
64
	
63

  
65 64
    @XmlValue
66 65
    protected String value;
67 66
    @XmlAttribute
68 67
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
69
    protected DateTime expirationDate;
68
    protected ZonedDateTime expirationDate;
70 69
    @XmlAttribute
71 70
    @XmlSchemaType(name = "positiveInteger")
72 71
    protected BigInteger completeListSize;
73 72
    @XmlAttribute
74 73
    @XmlSchemaType(name = "nonNegativeInteger")
75 74
    protected BigInteger cursor;
76
    
75

  
77 76
    @XmlTransient
78 77
	private MetadataPrefix metadataPrefix;
79
    
78

  
80 79
    @XmlTransient
81
	private DateTime from;
82
    
80
	private ZonedDateTime from;
81

  
83 82
    @XmlTransient
84
	private DateTime until;
85
    
83
	private ZonedDateTime until;
84

  
86 85
    @XmlTransient
87 86
	private SetSpec set;
88 87

  
89
    public ResumptionToken(Pager results, DateTime from,
90
			DateTime until, MetadataPrefix metadataPrefix, SetSpec set) {
88
    public ResumptionToken(Pager results, ZonedDateTime from,
89
            ZonedDateTime until, MetadataPrefix metadataPrefix, SetSpec set) {
91 90
		this.from = from;
92 91
		this.until = until;
93 92
		this.metadataPrefix = metadataPrefix;
......
101 100

  
102 101
	/**
103 102
     * Gets the value of the value property.
104
     * 
103
     *
105 104
     * @return
106 105
     *     possible object is
107 106
     *     {@link String }
108
     *     
107
     *
109 108
     */
110 109
    public String getValue() {
111 110
        return value;
......
113 112

  
114 113
    /**
115 114
     * Sets the value of the value property.
116
     * 
115
     *
117 116
     * @param value
118 117
     *     allowed object is
119 118
     *     {@link String }
120
     *     
119
     *
121 120
     */
122 121
    public void setValue(String value) {
123 122
        this.value = value;
......
125 124

  
126 125
    /**
127 126
     * Gets the value of the expirationDate property.
128
     * 
127
     *
129 128
     * @return
130 129
     *     possible object is
131 130
     *     {@link XMLGregorianCalendar }
132
     *     
131
     *
133 132
     */
134
    public DateTime getExpirationDate() {
133
    public ZonedDateTime getExpirationDate() {
135 134
        return expirationDate;
136 135
    }
137 136

  
138 137
    /**
139 138
     * Sets the value of the expirationDate property.
140
     * 
139
     *
141 140
     * @param value
142 141
     *     allowed object is
143 142
     *     {@link XMLGregorianCalendar }
144
     *     
143
     *
145 144
     */
146
    public void setExpirationDate(DateTime value) {
145
    public void setExpirationDate(ZonedDateTime value) {
147 146
        this.expirationDate = value;
148 147
    }
149 148

  
150 149
    /**
151 150
     * Gets the value of the completeListSize property.
152
     * 
151
     *
153 152
     * @return
154 153
     *     possible object is
155 154
     *     {@link BigInteger }
156
     *     
155
     *
157 156
     */
158 157
    public BigInteger getCompleteListSize() {
159 158
        return completeListSize;
......
161 160

  
162 161
    /**
163 162
     * Sets the value of the completeListSize property.
164
     * 
163
     *
165 164
     * @param value
166 165
     *     allowed object is
167 166
     *     {@link BigInteger }
168
     *     
167
     *
169 168
     */
170 169
    public void setCompleteListSize(BigInteger value) {
171 170
        this.completeListSize = value;
......
173 172

  
174 173
    /**
175 174
     * Gets the value of the cursor property.
176
     * 
175
     *
177 176
     * @return
178 177
     *     possible object is
179 178
     *     {@link BigInteger }
180
     *     
179
     *
181 180
     */
182 181
    public BigInteger getCursor() {
183 182
        return cursor;
......
185 184

  
186 185
    /**
187 186
     * Sets the value of the cursor property.
188
     * 
187
     *
189 188
     * @param value
190 189
     *     allowed object is
191 190
     *     {@link BigInteger }
192
     *     
191
     *
193 192
     */
194 193
    public void setCursor(BigInteger value) {
195 194
        this.cursor = value;
......
199 198
		return metadataPrefix;
200 199
	}
201 200

  
202
	public DateTime getFrom() {
201
	public ZonedDateTime getFrom() {
203 202
		return from;
204 203
	}
205 204

  
206
	public DateTime getUntil() {
205
	public ZonedDateTime getUntil() {
207 206
		return until;
208 207
	}
209 208

  
210 209
	public SetSpec getSet() {
211 210
		return set;
212 211
	}
213
	
212

  
214 213
	public void updateResults(Pager results) {
215 214
		this.completeListSize = BigInteger.valueOf(results.getCount());
216 215
		this.cursor = BigInteger.valueOf(results.getPageSize() * results.getCurrentIndex());

Also available in: Unified diff