You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.5 KiB
68 lines
1.5 KiB
package com.crawler.model;
|
|
|
|
public class CrawlerData {
|
|
private String title;
|
|
private String content;
|
|
private String url;
|
|
private String source;
|
|
private String publishDate;
|
|
|
|
public CrawlerData() {}
|
|
|
|
public CrawlerData(String title, String content, String url, String source) {
|
|
this.title = title;
|
|
this.content = content;
|
|
this.url = url;
|
|
this.source = source;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public String getContent() {
|
|
return content;
|
|
}
|
|
|
|
public void setContent(String content) {
|
|
this.content = content;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
public String getSource() {
|
|
return source;
|
|
}
|
|
|
|
public void setSource(String source) {
|
|
this.source = source;
|
|
}
|
|
|
|
public String getPublishDate() {
|
|
return publishDate;
|
|
}
|
|
|
|
public void setPublishDate(String publishDate) {
|
|
this.publishDate = publishDate;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "CrawlerData{" +
|
|
"title='" + title + '\'' +
|
|
", url='" + url + '\'' +
|
|
", source='" + source + '\'' +
|
|
", publishDate='" + publishDate + '\'' +
|
|
'}';
|
|
}
|
|
}
|