Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 shop2020 1
/**
2
 * 
3
 */
4
package in.shop2020.metamodel.definitions;
5
 
6
import in.shop2020.metamodel.util.ReusableMetaModelComponent;
7
 
8
/**
9
 * 
10
 * @author naveen
11
 *
12
 */
13
public class FeatureDefinition extends ReusableMetaModelComponent {
14
	/**
15
	 * 
16
	 */
17
	private static final long serialVersionUID = 1L;
18
	private String label;
19
	private String description;
20
	private boolean allowsBlank;
16 naveen 21
	private BulletDefinition bulletDefinition;
10 shop2020 22
 
23
	/**
24
	 * 
25
	 * @param newID
26
	 */
16 naveen 27
	public FeatureDefinition(long newID, String label) {
10 shop2020 28
		super(newID);
16 naveen 29
		this.label = label;
10 shop2020 30
	}
31
 
32
	/**
33
	 * 
34
	 * @return label
35
	 */
36
	public String getLabel() {
37
		return this.label;
38
	}
39
 
40
	/**
41
	 * 
42
	 * @param value
43
	 */
44
	public void setLabel(String value) {
45
		this.label = value;
46
	}
47
 
48
	/**
49
	 * 
50
	 * @return description
51
	 */
52
	public String getDescription() {
53
		return this.description;
54
	}
55
 
56
	/**
57
	 * 
58
	 * @param value
59
	 */
60
	public void setDescription(String value) {
61
		this.description = value;
62
	}
63
 
64
	/**
65
	 * 
66
	 * @param value
67
	 */
68
	public void setAllowsBlank(boolean value) {
69
		this.allowsBlank = value;
70
	}
71
 
72
	/**
73
	 * 
74
	 * @return boolean
75
	 */
76
	public boolean allowsBlank() {
77
		return this.allowsBlank;
78
	}
79
 
80
	/**
16 naveen 81
	 * @param bulletDefinition the bulletDefinition to set
10 shop2020 82
	 */
16 naveen 83
	public void setBulletDefinition(BulletDefinition bulletDefinition) {
84
		this.bulletDefinition = bulletDefinition;
10 shop2020 85
	}
86
 
87
	/**
16 naveen 88
	 * @return the bulletDefinition
10 shop2020 89
	 */
16 naveen 90
	public BulletDefinition getBulletDefinition() {
91
		return bulletDefinition;
10 shop2020 92
	}
16 naveen 93
 
94
	/* (non-Javadoc)
95
	 * @see java.lang.Object#toString()
96
	 */
97
	@Override
98
	public String toString() {
99
		return "FeatureDefinition [allowsBlank=" + allowsBlank
100
				+ ", bulletDefinition=" + bulletDefinition
101
				+ ", description=" + description + ", label=" + label
102
				+ ", getID()=" + getID() + "]";
103
	}
104
 
10 shop2020 105
}