Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
 
46
    /**
47
     * @return the name
48
     */
49
    public String getName() {
50
        return name;
51
    }
52
 
53
 
54
	/**
55
	 * @param content the content to set
56
	 */
57
	public void setContent(String content) {
58
		this.content = content;
59
	}
60
 
61
 
62
	/**
63
	 * @return the content
64
	 */
65
	public String getContent() {
66
		return content;
67
	}
68
 
69
 
70
	/**
71
	 * @param terms the terms to set
72
	 */
73
	public void addTerm(String term) {
74
		if(this.terms == null ){
75
			this.terms = new ArrayList<String>();
76
		}
77
		this.terms.add(term);
78
	}
79
 
80
 
81
	/**
82
	 * @param terms the terms to set
83
	 */
84
	public void setTerms(List<String> terms) {
85
		this.terms = terms;
86
	}
87
 
88
 
89
	/**
90
	 * @return the terms
91
	 */
92
	public List<String> getTerms() {
93
		return terms;
94
	}
95
 
96
 
97
	/**
98
	 * @param relatedDocIds the relatedDocIds to set
99
	 */
100
	public void addrelatedDocId(long relatedDocId) {
101
		if(this.relatedDocIds == null ){
102
			this.relatedDocIds = new ArrayList<Long>();
103
		}
104
		this.relatedDocIds.add(relatedDocId);
105
	}
106
 
107
	/**
108
	 * @param relatedDocIds the relatedDocIds to set
109
	 */
110
	public void setRelatedDocIds(List<Long> relatedDocIds) {
111
		this.relatedDocIds = relatedDocIds;
112
	}
113
 
114
 
115
	/**
116
	 * @return the relatedDocIds
117
	 */
118
	public List<Long> getRelatedDocIds() {
119
		return relatedDocIds;
120
	}
121
 
122
 
123
	@Override
124
	public String toString() {
125
		return "Helpdoc [name=" + name + ", content=" + content + ", terms="
126
				+ terms + ", relatedDocIds=" + relatedDocIds + ", id=" + id
127
				+ "]";
128
	}
129
 
130
}