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
	/**
102 naveen 40
	 * Optional normalization rule definition ID
41
	 */
42
	private long normalizationRuleDefinitionID;
43
 
44
	/**
10 shop2020 45
	 * 
46
	 * @param newID
47
	 */
16 naveen 48
	public FeatureDefinition(long newID, String label) {
10 shop2020 49
		super(newID);
16 naveen 50
		this.label = label;
10 shop2020 51
	}
52
 
53
	/**
54
	 * 
55
	 * @return label
56
	 */
57
	public String getLabel() {
58
		return this.label;
59
	}
60
 
61
	/**
62
	 * 
63
	 * @param value
64
	 */
65
	public void setLabel(String value) {
66
		this.label = value;
67
	}
68
 
69
	/**
70
	 * 
71
	 * @return description
72
	 */
73
	public String getDescription() {
74
		return this.description;
75
	}
76
 
77
	/**
78
	 * 
79
	 * @param value
80
	 */
81
	public void setDescription(String value) {
82
		this.description = value;
83
	}
84
 
85
	/**
86
	 * 
87
	 * @param value
88
	 */
89
	public void setAllowsBlank(boolean value) {
90
		this.allowsBlank = value;
91
	}
92
 
93
	/**
94
	 * 
95
	 * @return boolean
96
	 */
97
	public boolean allowsBlank() {
98
		return this.allowsBlank;
99
	}
100
 
101
	/**
16 naveen 102
	 * @param bulletDefinition the bulletDefinition to set
10 shop2020 103
	 */
16 naveen 104
	public void setBulletDefinition(BulletDefinition bulletDefinition) {
105
		this.bulletDefinition = bulletDefinition;
10 shop2020 106
	}
107
 
108
	/**
16 naveen 109
	 * @return the bulletDefinition
10 shop2020 110
	 */
16 naveen 111
	public BulletDefinition getBulletDefinition() {
112
		return bulletDefinition;
10 shop2020 113
	}
16 naveen 114
 
102 naveen 115
	/**
116
	 * @param normalizationRuleDefinitionID the normalizationRuleDefinitionID to set
117
	 */
118
	public void setNormalizationRuleDefinitionID(
119
			long normalizationRuleDefinitionID) {
120
		this.normalizationRuleDefinitionID = normalizationRuleDefinitionID;
121
	}
122
 
123
	/**
124
	 * @return the normalizationRuleDefinitionID
125
	 */
126
	public long getNormalizationRuleDefinitionID() {
127
		return normalizationRuleDefinitionID;
128
	}
129
 
16 naveen 130
	/* (non-Javadoc)
131
	 * @see java.lang.Object#toString()
132
	 */
133
	@Override
134
	public String toString() {
135
		return "FeatureDefinition [allowsBlank=" + allowsBlank
102 naveen 136
				+ ", bulletDefinition=" + bulletDefinition + ", description="
137
				+ description + ", label=" + label
138
				+ ", normalizationRuleDefinitionID="
139
				+ normalizationRuleDefinitionID + "]";
16 naveen 140
	}
141
 
10 shop2020 142
}