Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
61 naveen 1
/**
2
 * 
3
 */
4
package in.shop2020.metamodel.definitions;
5
 
6
import in.shop2020.metamodel.util.ReusableMetaModelComponent;
7
 
8
/**
69 naveen 9
 * Represents a information retrieval rule
10
 * 
61 naveen 11
 * @author naveen
12
 *
13
 */
14
public class RuleDefinition extends ReusableMetaModelComponent {
15
 
16
	/**
17
	 * 
18
	 */
19
	private static final long serialVersionUID = 1L;
20
 
21
	/**
22
	 * Relative path to Jython script 
23
	 */
24
	private String script;
25
 
26
	/**
27
	 * Editor's comments
28
	 */
29
	private String description;
30
 
31
	/**
32
	 * @param newID
33
	 */
34
	public RuleDefinition(long newID, String script) {
35
		super(newID);
36
 
37
		this.script = script;
38
	}
39
 
40
	/**
41
	 * @return the script
42
	 */
43
	public String getScript() {
44
		return script;
45
	}
46
 
47
	/**
48
	 * @param description the description to set
49
	 */
50
	public void setDescription(String description) {
51
		this.description = description;
52
	}
53
 
54
	/**
55
	 * @return the description
56
	 */
57
	public String getDescription() {
58
		return description;
59
	}
60
 
61
	/* (non-Javadoc)
62
	 * @see java.lang.Object#toString()
63
	 */
64
	@Override
65
	public String toString() {
66
		return "RuleDefinition [description=" + description + ", script="
67
				+ script + ", getID()=" + getID() + "]";
68
	}
69
 
70
}