-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDelivery.java
More file actions
107 lines (80 loc) · 1.88 KB
/
Delivery.java
File metadata and controls
107 lines (80 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package crawler_interface;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
public class Delivery {
private String url;
private String title;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
private Date date;
private String description;
private String type;
private List<String> keywords;
private List<String> targets;
private Project progetto;
public Delivery() {
}
public Delivery(String url) {
this.setUrl(url);
}
public Delivery(String url, String title, Date date, String description, String type) {
this.setUrl(url);
this.title = title;
this.setDate(date);
this.description = description;
this.type = type;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public List<String> getKeywords() {
return keywords;
}
public void setKeywords(List<String> keywords) {
this.keywords = keywords;
}
public List<String> getTargets() {
return targets;
}
public void setTargets(List<String> targets) {
this.targets = targets;
}
public Project getProgetto() {
return progetto;
}
public void setProgetto(Project pr) {
this.progetto = pr;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String toString() {
return "Titolo: " + this.getTitle() + "\nProgetto: " + this.getProgetto().getAcronym() + "\nSummary: "
+ this.getProgetto().getSummary();
}
}