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
 
12 naveen 6
import in.shop2020.metamodel.util.MetaModelComponent;
10 shop2020 7
 
8
/**
43 naveen 9
 * Part of definitions component of shop2020 Content Meta-model. Defines 
10
 * Bullet component.
10 shop2020 11
 * 
12
 * @author naveen
13
 *
14
 */
12 naveen 15
public class BulletDefinition extends MetaModelComponent {
10 shop2020 16
	/**
17
	 * 
18
	 */
19
	private static final long serialVersionUID = 1L;
43 naveen 20
 
21
	/**
22
	 * When defining a Bullet (i.e. creating an instance of BulletDefinition), 
23
	 * editor can provide more details in plain text here. Primarily to guide
24
	 * content developer. 
25
	 */
10 shop2020 26
	private String description;
43 naveen 27
 
28
	/**
29
	 * Pointer to datatype definition
30
	 */
10 shop2020 31
	private long datatypeDefinitionID;
43 naveen 32
 
33
	/**
34
	 * If set, makes the bullet take more than one value. e.g. 
35
	 * Mobile phone "Color" is a mutli-value bullet, manufacturers provide 
36
	 * multiple color options per model
37
	 */
10 shop2020 38
	private boolean isMultivalue;
43 naveen 39
	/**
40
	 * 
41
	 */
10 shop2020 42
	private boolean isLearned;
12 naveen 43
	private long unitID;
10 shop2020 44
 
45
	/**
46
	 * 
43 naveen 47
	 * @param datatypeDefinitionID 
10 shop2020 48
	 */
16 naveen 49
	public BulletDefinition(long datatypeDefinitionID) {
12 naveen 50
		this.datatypeDefinitionID = datatypeDefinitionID;
10 shop2020 51
	}
52
 
53
	/**
54
	 * 
55
	 * @return description
56
	 */
57
	public String getDescription() {
58
		return this.description;
59
	}
60
 
61
	/**
62
	 * 
43 naveen 63
	 * @param value description to set
10 shop2020 64
	 */
65
	public void setDescription(String value) {
66
		this.description = value;
67
	}
68
 
69
	/**
70
	 * @param datatypeDefinitionID the datatypeDefinitionID to set
71
	 */
72
	public void setDatatypeDefinitionID(Long datatypeDefinitionID) {
73
		this.datatypeDefinitionID = datatypeDefinitionID;
74
	}
75
 
76
	/**
77
	 * @return the datatypeDefinitionID
78
	 */
79
	public Long getDatatypeDefinitionID() {
80
		return datatypeDefinitionID;
81
	}
82
 
83
	/**
84
	 * 
85
	 * @return isMultivalue
86
	 */
87
	public boolean isMultivalue() {
88
		return this.isMultivalue;
89
	}
90
 
91
	/**
92
	 * 
93
	 * @param value
94
	 */
95
	public void setMultivalue(boolean value) {
96
		this.isMultivalue = value;
97
	}
98
 
99
	/**
100
	 * @param isLearned the isLearned to set
101
	 */
102
	public void setLearned(boolean isLearned) {
103
		this.isLearned = isLearned;
104
	}
105
 
106
	/**
107
	 * @return the isLearned
108
	 */
109
	public boolean isLearned() {
110
		return isLearned;
111
	}
112
 
113
	/**
114
	 * 
115
	 * @return unitID
116
	 */
12 naveen 117
	public long getUnitID() {
10 shop2020 118
		return this.unitID;
119
	}
120
 
121
	/**
122
	 * 
123
	 * @param value
124
	 */
12 naveen 125
	public void setUnitID(long value) {
10 shop2020 126
		this.unitID = value;
127
	}
16 naveen 128
 
129
	/* (non-Javadoc)
130
	 * @see java.lang.Object#toString()
131
	 */
132
	@Override
133
	public String toString() {
134
		return "BulletDefinition [datatypeDefinitionID=" + datatypeDefinitionID
135
				+ ", description=" + description + ", isLearned=" + isLearned
136
				+ ", isMultivalue=" + isMultivalue + ", unitID=" + unitID + "]";
137
	}
138
 
10 shop2020 139
}