Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7286 amit.gupta 1
package in.shop2020.metamodel.core;
2
 
3
import in.shop2020.metamodel.util.MetaModelComponent;
4
 
5
public class ExpertReviewSource  extends MetaModelComponent {
6
 
7
	/**
8
	 * 
9
	 */
10
	private static final long serialVersionUID = 1L;
11
	private String source;
12
	private String sourceUrl;
13
	public void setSource(String source) {
14
		this.source = source;
15
	}
16
 
17
	public ExpertReviewSource(String source, String sourceUrl) {
18
		this.setSource(source);
19
		this.setSourceUrl(sourceUrl);
20
	}
21
 
22
	public String getSource() {
23
		return source;
24
	}
25
	public void setSourceUrl(String sourceUrl) {
26
		this.sourceUrl = sourceUrl;
27
	}
28
	@Override
29
	public int hashCode() {
30
		final int prime = 31;
31
		int result = 1;
32
		result = prime * result + ((source == null) ? 0 : source.hashCode());
33
		return result;
34
	}
35
 
36
	@Override
37
	public boolean equals(Object obj) {
38
		if (this == obj)
39
			return true;
40
		if (obj == null)
41
			return false;
42
		if (getClass() != obj.getClass())
43
			return false;
44
		ExpertReviewSource other = (ExpertReviewSource) obj;
45
		if (source == null) {
46
			if (other.source != null)
47
				return false;
48
		} else if (!source.equals(other.source))
49
			return false;
50
		return true;
51
	}
52
 
53
	public String getSourceUrl() {
54
		return sourceUrl;
55
	}
56
}