Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
/**
9
 * @author naveen
10
 *
11
 */
12
public class RuleDefinition extends ReusableMetaModelComponent {
13
 
14
	/**
15
	 * 
16
	 */
17
	private static final long serialVersionUID = 1L;
18
 
19
	/**
20
	 * Relative path to Jython script 
21
	 */
22
	private String script;
23
 
24
	/**
25
	 * Editor's comments
26
	 */
27
	private String description;
28
 
29
	/**
30
	 * @param newID
31
	 */
32
	public RuleDefinition(long newID, String script) {
33
		super(newID);
34
 
35
		this.script = script;
36
	}
37
 
38
	/**
39
	 * @return the script
40
	 */
41
	public String getScript() {
42
		return script;
43
	}
44
 
45
	/**
46
	 * @param description the description to set
47
	 */
48
	public void setDescription(String description) {
49
		this.description = description;
50
	}
51
 
52
	/**
53
	 * @return the description
54
	 */
55
	public String getDescription() {
56
		return description;
57
	}
58
 
59
	/* (non-Javadoc)
60
	 * @see java.lang.Object#toString()
61
	 */
62
	@Override
63
	public String toString() {
64
		return "RuleDefinition [description=" + description + ", script="
65
				+ script + ", getID()=" + getID() + "]";
66
	}
67
 
68
}