Repository navigation
Expand file tree
/
Copy pathData.java
More file actions
106 lines (82 loc) · 2.48 KB
/
Copy pathData.java
File metadata and controls
106 lines (82 loc) · 2.48 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
package crawlingdata;
public class Data {
private String link;
private String sourceWebsite;
private String website;
private String title;
private String description;
private String author;
private String publishedDate;
private String type;
private String image;
public Data() {
}
public String getLink() {
return this.link;
}
public void setLink(String link) {
this.link = link;
}
public String getSourceWebsite() {
return this.sourceWebsite;
}
public void setSourceWebsite(String sourceWebsite) {
this.sourceWebsite = sourceWebsite;
}
public String getWebsite() {
return this.website;
}
public void setWebsite(String website) {
this.website = website;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getAuthor() {
return this.author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getPublishedDate() {
return this.publishedDate;
}
public void setPublishedDate(String publishedDate) {
this.publishedDate = publishedDate;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getImage() {
return this.image;
}
public void setImage(String image) {
this.image = image;
}
public Data(String link, String sourceWebsite, String website, String title, String description, String author, String publishedDate, String type, String image) {
this.link = link;
this.sourceWebsite = sourceWebsite;
this.website = website;
this.title = title;
this.description = description;
this.author = author;
this.publishedDate = publishedDate;
this.type = type;
this.image = image;
}
public String toCsvFormat() {
return String.format("\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"\n", link, sourceWebsite, website, title, description, author, publishedDate, type, image);
}
}