SearchResult.java
上传用户:shen332233
上传日期:2021-09-03
资源大小:7478k
文件大小:1k
- package ajaxdashboard.domain;
- public class SearchResult {
- private String title = "";
- private String url = "";
- private String summary = "";
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title.replaceAll("&", "&");
- this.title = this.title.replaceAll(""", "'");
- }
- public String getUrl() {
- return url;
- }
- public void setUrl(String url) {
- this.url = url.replaceAll("&", "&");
- this.url = this.url.replaceAll(""", """);
- }
- public String getSummary() {
- return summary;
- }
- public void setSummary(String summary) {
- this.summary = summary.replaceAll("&", "&");
- this.summary = this.summary.replaceAll(""", """);
- }
-
- public String toString() {
- StringBuffer buf = new StringBuffer();
- buf.append("Title: " + title)
- .append("nURL: " + url)
- .append("nSummary: " + summary);
-
- return buf.toString();
- }
- }