1
|
package eu.dnetlib.oai.info;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
public class ListRecordsInfo {
|
6
|
|
7
|
private String from = "";
|
8
|
private String until = "";
|
9
|
private String metadataprefix = "";
|
10
|
private String set;
|
11
|
private List<?> identifiers = null;
|
12
|
private List<?> documents = null;
|
13
|
private String resumptiontoken = null;
|
14
|
private int cursor = 0;
|
15
|
|
16
|
private int size = 0;
|
17
|
private boolean withSize = true;
|
18
|
|
19
|
public String getFrom() {
|
20
|
if ((from == null) || from.isEmpty()) return "";
|
21
|
else return "from='" + from + "'";
|
22
|
|
23
|
}
|
24
|
|
25
|
public void setFrom(final String from) {
|
26
|
this.from = from;
|
27
|
}
|
28
|
|
29
|
public String getUntil() {
|
30
|
if ((until == null) || until.isEmpty()) return "";
|
31
|
else return "until='" + until + "'";
|
32
|
}
|
33
|
|
34
|
public void setUntil(final String until) {
|
35
|
this.until = until;
|
36
|
}
|
37
|
|
38
|
public String getMetadataprefix() {
|
39
|
if ((metadataprefix == null) || metadataprefix.isEmpty()) return "";
|
40
|
else return "metadataPrefix='" + metadataprefix + "'";
|
41
|
}
|
42
|
|
43
|
public void setMetadataprefix(final String metadataprefix) {
|
44
|
this.metadataprefix = metadataprefix;
|
45
|
}
|
46
|
|
47
|
public String getSet() {
|
48
|
if ((set == null) || set.isEmpty()) return "";
|
49
|
else return "set='" + set + "'";
|
50
|
}
|
51
|
|
52
|
public void setSet(final String set) {
|
53
|
this.set = set;
|
54
|
}
|
55
|
|
56
|
public List<?> getIdentifiers() {
|
57
|
return identifiers;
|
58
|
}
|
59
|
|
60
|
public void setIdentifiers(final List<?> identifiers) {
|
61
|
this.identifiers = identifiers;
|
62
|
}
|
63
|
|
64
|
public List<?> getDocuments() {
|
65
|
return documents;
|
66
|
}
|
67
|
|
68
|
public void setDocuments(final List<?> documents) {
|
69
|
this.documents = documents;
|
70
|
}
|
71
|
|
72
|
public String getResumptiontoken() {
|
73
|
return resumptiontoken;
|
74
|
}
|
75
|
|
76
|
public void setResumptiontoken(final String resumptiontoken) {
|
77
|
this.resumptiontoken = resumptiontoken;
|
78
|
}
|
79
|
|
80
|
public int getCursor() {
|
81
|
return cursor;
|
82
|
}
|
83
|
|
84
|
public void setCursor(final int cursor) {
|
85
|
this.cursor = cursor;
|
86
|
}
|
87
|
|
88
|
public int getSize() {
|
89
|
return size;
|
90
|
}
|
91
|
|
92
|
public void setSize(final int nMaxElements) {
|
93
|
size = nMaxElements;
|
94
|
}
|
95
|
|
96
|
public boolean isWithSize() {
|
97
|
return withSize;
|
98
|
}
|
99
|
|
100
|
public void setWithSize(boolean withSize) {
|
101
|
this.withSize = withSize;
|
102
|
}
|
103
|
}
|