Subversion Repositories SmartDukaan

Rev

Rev 2275 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2275 rajveer 1
package in.shop2020.metamodel.core;
2
 
3
import java.util.ArrayList;
4
import java.util.List;
5
 
6
import in.shop2020.metamodel.util.ReusableMetaModelComponent;
7
 
8
/**
9
 * @author rajveer
10
 *
11
 */
12
public class Helpdoc extends ReusableMetaModelComponent {
13
 
14
	private static final long serialVersionUID = 1L;
15
 
16
	/**
17
	 * Help Document name
18
	 */
19
	private String name;
20
 
21
	private String content;
22
 
23
	private List<String> terms;
24
 
25
	private List<Long> relatedDocIds;
26
 
27
	/**
28
	 * 
29
	 * @param newID
30
	 * @param name
31
	 */
32
	public Helpdoc(long newID, String name) {
33
		super(newID);
34
		this.setName(name);
35
	}
36
 
37
 
38
    /**
39
     * @param name the name to set
40
     */
41
    public void setName(String name) {
42
        this.name = name;
43
    }
44
 
45
 
8762 amit.gupta 46
    Helpdoc() {
47
	}
48
 
49
 
50
	/**
2275 rajveer 51
     * @return the name
52
     */
53
    public String getName() {
54
        return name;
55
    }
56
 
57
 
58
	/**
59
	 * @param content the content to set
60
	 */
61
	public void setContent(String content) {
62
		this.content = content;
63
	}
64
 
65
 
66
	/**
67
	 * @return the content
68
	 */
69
	public String getContent() {
70
		return content;
71
	}
72
 
73
 
74
	/**
75
	 * @param terms the terms to set
76
	 */
77
	public void addTerm(String term) {
78
		if(this.terms == null ){
79
			this.terms = new ArrayList<String>();
80
		}
81
		this.terms.add(term);
82
	}
83
 
84
 
85
	/**
86
	 * @param terms the terms to set
87
	 */
88
	public void setTerms(List<String> terms) {
89
		this.terms = terms;
90
	}
91
 
92
 
93
	/**
94
	 * @return the terms
95
	 */
96
	public List<String> getTerms() {
97
		return terms;
98
	}
99
 
100
 
101
	/**
102
	 * @param relatedDocIds the relatedDocIds to set
103
	 */
104
	public void addrelatedDocId(long relatedDocId) {
105
		if(this.relatedDocIds == null ){
106
			this.relatedDocIds = new ArrayList<Long>();
107
		}
108
		this.relatedDocIds.add(relatedDocId);
109
	}
110
 
111
	/**
112
	 * @param relatedDocIds the relatedDocIds to set
113
	 */
114
	public void setRelatedDocIds(List<Long> relatedDocIds) {
115
		this.relatedDocIds = relatedDocIds;
116
	}
117
 
118
 
119
	/**
120
	 * @return the relatedDocIds
121
	 */
122
	public List<Long> getRelatedDocIds() {
123
		return relatedDocIds;
124
	}
125
 
126
 
127
	@Override
128
	public String toString() {
129
		return "Helpdoc [name=" + name + ", content=" + content + ", terms="
130
				+ terms + ", relatedDocIds=" + relatedDocIds + ", id=" + id
131
				+ "]";
132
	}
133
 
134
}