Subversion Repositories SmartDukaan

Rev

Rev 1061 | Go to most recent revision | Details | Compare with Previous | 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
	/**
2170 rajveer 45
	 * Optional argument to add help docs id
46
	 */
47
	private long helpDocDefinitionID;
48
 
49
	/**
10 shop2020 50
	 * 
51
	 * @param newID
52
	 */
16 naveen 53
	public FeatureDefinition(long newID, String label) {
10 shop2020 54
		super(newID);
16 naveen 55
		this.label = label;
10 shop2020 56
	}
57
 
58
	/**
59
	 * 
60
	 * @return label
61
	 */
62
	public String getLabel() {
63
		return this.label;
64
	}
65
 
66
	/**
67
	 * 
68
	 * @param value
69
	 */
70
	public void setLabel(String value) {
71
		this.label = value;
72
	}
73
 
74
	/**
75
	 * 
76
	 * @return description
77
	 */
78
	public String getDescription() {
79
		return this.description;
80
	}
81
 
82
	/**
83
	 * 
84
	 * @param value
85
	 */
86
	public void setDescription(String value) {
87
		this.description = value;
88
	}
89
 
90
	/**
91
	 * 
92
	 * @param value
93
	 */
94
	public void setAllowsBlank(boolean value) {
95
		this.allowsBlank = value;
96
	}
97
 
98
	/**
99
	 * 
100
	 * @return boolean
101
	 */
102
	public boolean allowsBlank() {
103
		return this.allowsBlank;
104
	}
105
 
106
	/**
16 naveen 107
	 * @param bulletDefinition the bulletDefinition to set
10 shop2020 108
	 */
16 naveen 109
	public void setBulletDefinition(BulletDefinition bulletDefinition) {
110
		this.bulletDefinition = bulletDefinition;
10 shop2020 111
	}
112
 
113
	/**
16 naveen 114
	 * @return the bulletDefinition
10 shop2020 115
	 */
16 naveen 116
	public BulletDefinition getBulletDefinition() {
117
		return bulletDefinition;
10 shop2020 118
	}
16 naveen 119
 
102 naveen 120
	/**
121
	 * @param normalizationRuleDefinitionID the normalizationRuleDefinitionID to set
122
	 */
123
	public void setNormalizationRuleDefinitionID(
124
			long normalizationRuleDefinitionID) {
125
		this.normalizationRuleDefinitionID = normalizationRuleDefinitionID;
126
	}
127
 
128
	/**
129
	 * @return the normalizationRuleDefinitionID
130
	 */
131
	public long getNormalizationRuleDefinitionID() {
132
		return normalizationRuleDefinitionID;
133
	}
2170 rajveer 134
 
135
	/**
136
	 * 
137
	 * @param helpDocDefinitionID
138
	 */
139
	public void setHelpDocDefinitionID(long helpDocDefinitionID) {
140
        this.helpDocDefinitionID = helpDocDefinitionID;
141
    }
102 naveen 142
 
2170 rajveer 143
	/**
144
	 * 
145
	 * @return helpDocDefinitionID
146
	 */
147
    public long getHelpDocDefinitionID() {
148
        return helpDocDefinitionID;
149
    }
150
 
151
 
152
 
16 naveen 153
	/* (non-Javadoc)
154
	 * @see java.lang.Object#toString()
155
	 */
156
	@Override
157
	public String toString() {
158
		return "FeatureDefinition [allowsBlank=" + allowsBlank
102 naveen 159
				+ ", bulletDefinition=" + bulletDefinition + ", description="
160
				+ description + ", label=" + label
161
				+ ", normalizationRuleDefinitionID="
162
				+ normalizationRuleDefinitionID + "]";
16 naveen 163
	}
164
 
2170 rajveer 165
    }