Subversion Repositories SmartDukaan

Rev

Rev 23637 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23637 Rev 24509
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import java.util.ArrayList;
-
 
4
import java.util.HashMap;
-
 
5
import java.util.List;
-
 
6
import java.util.Map;
-
 
7
 
-
 
8
import com.spice.profitmandi.common.enumuration.ReporticoParams;
-
 
9
 
3
public class ReporticoUrlInfo {
10
public class ReporticoUrlInfo {
-
 
11
	@Override
-
 
12
	public int hashCode() {
-
 
13
		final int prime = 31;
-
 
14
		int result = 1;
-
 
15
		result = prime * result + ((description == null) ? 0 : description.hashCode());
-
 
16
		result = prime * result + ((title == null) ? 0 : title.hashCode());
-
 
17
		result = prime * result + ((url == null) ? 0 : url.hashCode());
-
 
18
		return result;
-
 
19
	}
-
 
20
 
-
 
21
	@Override
-
 
22
	public boolean equals(Object obj) {
-
 
23
		if (this == obj)
-
 
24
			return true;
-
 
25
		if (obj == null)
-
 
26
			return false;
-
 
27
		if (getClass() != obj.getClass())
-
 
28
			return false;
-
 
29
		ReporticoUrlInfo other = (ReporticoUrlInfo) obj;
-
 
30
		if (description == null) {
-
 
31
			if (other.description != null)
-
 
32
				return false;
-
 
33
		} else if (!description.equals(other.description))
-
 
34
			return false;
-
 
35
		if (title == null) {
-
 
36
			if (other.title != null)
-
 
37
				return false;
-
 
38
		} else if (!title.equals(other.title))
-
 
39
			return false;
-
 
40
		if (url == null) {
-
 
41
			if (other.url != null)
-
 
42
				return false;
-
 
43
		} else if (!url.equals(other.url))
-
 
44
			return false;
-
 
45
		return true;
-
 
46
	}
-
 
47
 
4
	private String url;
48
	private String url;
5
	private String title;
49
	private String title;
6
	private String description;
50
	private String description;
-
 
51
	private List<ReporticoParams> paramsList = new ArrayList<>();
-
 
52
 
-
 
53
	public ReporticoUrlInfo addParam(List<String> paramNames, ReporticoParams.Type paramType, String paramDisplay) {
-
 
54
		paramsList.add(new ReporticoParams(paramNames, paramType, paramDisplay));
-
 
55
		return this;
7
	
56
	}
8
	
57
 
-
 
58
	/**
-
 
59
	 * @param url
-
 
60
	 * @param title
-
 
61
	 * @param description
-
 
62
	 */
9
	public ReporticoUrlInfo(String url, String title, String description) {
63
	public ReporticoUrlInfo(String url, String title, String description) {
10
		super();
64
		super();
11
		this.url = url;
65
		this.url = url;
12
		this.title = title;
66
		this.title = title;
13
		this.description = description;
67
		this.description = description;
14
	}
68
	}
-
 
69
 
-
 
70
	public List<ReporticoParams> getParamsList() {
-
 
71
		return paramsList;
-
 
72
	}
-
 
73
 
15
	@Override
74
	@Override
16
	public String toString() {
75
	public String toString() {
17
		return "ReportUrl [url=" + url + ", title=" + title + ", description=" + description + "]";
76
		return "ReportUrl [url=" + url + ", title=" + title + ", description=" + description + "]";
18
	}
77
	}
-
 
78
 
19
	public String getUrl() {
79
	public String getUrl() {
20
		return url;
80
		return url;
21
	}
81
	}
-
 
82
 
22
	public void setUrl(String url) {
83
	public void setUrl(String url) {
23
		this.url = url;
84
		this.url = url;
24
	}
85
	}
-
 
86
 
25
	public String getTitle() {
87
	public String getTitle() {
26
		return title;
88
		return title;
27
	}
89
	}
-
 
90
 
28
	public void setTitle(String title) {
91
	public void setTitle(String title) {
29
		this.title = title;
92
		this.title = title;
30
	}
93
	}
-
 
94
 
31
	public String getDescription() {
95
	public String getDescription() {
32
		return description;
96
		return description;
33
	}
97
	}
-
 
98
 
34
	public void setDescription(String description) {
99
	public void setDescription(String description) {
35
		this.description = description;
100
		this.description = description;
36
	}
101
	}
37
}
102
}
38
103