1
|
package eu.dnetlib.data.mdstore.model;
|
2
|
|
3
|
import org.springframework.data.annotation.Id;
|
4
|
|
5
|
public class Metadata {
|
6
|
|
7
|
@Id
|
8
|
private String mdId;
|
9
|
|
10
|
private String format;
|
11
|
|
12
|
private String layout;
|
13
|
|
14
|
private String interpretation;
|
15
|
|
16
|
private int size;
|
17
|
|
18
|
private boolean indexed;
|
19
|
|
20
|
public Metadata(final String mdId, final String format, final String layout, final String interpretation, final int size, final boolean indexed) {
|
21
|
super();
|
22
|
this.mdId = mdId;
|
23
|
this.format = format;
|
24
|
this.layout = layout;
|
25
|
this.interpretation = interpretation;
|
26
|
this.size = size;
|
27
|
this.indexed = indexed;
|
28
|
}
|
29
|
|
30
|
public static Metadata create() {
|
31
|
return new Metadata();
|
32
|
}
|
33
|
|
34
|
public Metadata() {}
|
35
|
|
36
|
public String getMdId() {
|
37
|
return mdId;
|
38
|
}
|
39
|
|
40
|
public String getFormat() {
|
41
|
return format;
|
42
|
}
|
43
|
|
44
|
public String getLayout() {
|
45
|
return layout;
|
46
|
}
|
47
|
|
48
|
public String getInterpretation() {
|
49
|
return interpretation;
|
50
|
}
|
51
|
|
52
|
public int getSize() {
|
53
|
return size;
|
54
|
}
|
55
|
|
56
|
public boolean isIndexed() {
|
57
|
return indexed;
|
58
|
}
|
59
|
|
60
|
public Metadata setMdId(final String mdId) {
|
61
|
this.mdId = mdId;
|
62
|
return this;
|
63
|
}
|
64
|
|
65
|
public Metadata setFormat(final String format) {
|
66
|
this.format = format;
|
67
|
return this;
|
68
|
}
|
69
|
|
70
|
public Metadata setLayout(final String layout) {
|
71
|
this.layout = layout;
|
72
|
return this;
|
73
|
}
|
74
|
|
75
|
public Metadata setInterpretation(final String interpretation) {
|
76
|
this.interpretation = interpretation;
|
77
|
return this;
|
78
|
}
|
79
|
|
80
|
public Metadata setSize(final int size) {
|
81
|
this.size = size;
|
82
|
return this;
|
83
|
}
|
84
|
|
85
|
public Metadata setIndexed(final boolean indexed) {
|
86
|
this.indexed = indexed;
|
87
|
return this;
|
88
|
}
|
89
|
|
90
|
}
|