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
/**
49 naveen 9
 * Defines core object Feature in shop2020 content meta-model
10 shop2020 10
 * @author naveen
11
 *
12
 */
13
public class FeatureDefinition extends ReusableMetaModelComponent {
14
	/**
15
	 * 
16
	 */
17
	private static final long serialVersionUID = 1L;
49 naveen 18
 
19
	/**
20
	 * Intuitive label
21
	 */
10 shop2020 22
	private String label;
49 naveen 23
 
24
	/**
25
	 * Editorial comments
26
	 */
10 shop2020 27
	private String description;
49 naveen 28
 
29
	/**
30
	 * If yes, Feature need not have any bullets
31
	 */
10 shop2020 32
	private boolean allowsBlank;
49 naveen 33
 
34
	/**
35
	 * Instance of BulletDefinition object
36
	 */
16 naveen 37
	private BulletDefinition bulletDefinition;
10 shop2020 38
 
39
	/**
40
	 * 
41
	 * @param newID
42
	 */
16 naveen 43
	public FeatureDefinition(long newID, String label) {
10 shop2020 44
		super(newID);
16 naveen 45
		this.label = label;
10 shop2020 46
	}
47
 
48
	/**
49
	 * 
50
	 * @return label
51
	 */
52
	public String getLabel() {
53
		return this.label;
54
	}
55
 
56
	/**
57
	 * 
58
	 * @param value
59
	 */
60
	public void setLabel(String value) {
61
		this.label = value;
62
	}
63
 
64
	/**
65
	 * 
66
	 * @return description
67
	 */
68
	public String getDescription() {
69
		return this.description;
70
	}
71
 
72
	/**
73
	 * 
74
	 * @param value
75
	 */
76
	public void setDescription(String value) {
77
		this.description = value;
78
	}
79
 
80
	/**
81
	 * 
82
	 * @param value
83
	 */
84
	public void setAllowsBlank(boolean value) {
85
		this.allowsBlank = value;
86
	}
87
 
88
	/**
89
	 * 
90
	 * @return boolean
91
	 */
92
	public boolean allowsBlank() {
93
		return this.allowsBlank;
94
	}
95
 
96
	/**
16 naveen 97
	 * @param bulletDefinition the bulletDefinition to set
10 shop2020 98
	 */
16 naveen 99
	public void setBulletDefinition(BulletDefinition bulletDefinition) {
100
		this.bulletDefinition = bulletDefinition;
10 shop2020 101
	}
102
 
103
	/**
16 naveen 104
	 * @return the bulletDefinition
10 shop2020 105
	 */
16 naveen 106
	public BulletDefinition getBulletDefinition() {
107
		return bulletDefinition;
10 shop2020 108
	}
16 naveen 109
 
110
	/* (non-Javadoc)
111
	 * @see java.lang.Object#toString()
112
	 */
113
	@Override
114
	public String toString() {
115
		return "FeatureDefinition [allowsBlank=" + allowsBlank
116
				+ ", bulletDefinition=" + bulletDefinition
117
				+ ", description=" + description + ", label=" + label
118
				+ ", getID()=" + getID() + "]";
119
	}
120
 
10 shop2020 121
}