Subversion Repositories SmartDukaan

Rev

Rev 323 | 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.MetaModelComponent;
7
 
8
/**
49 naveen 9
 * Defines individual part of a composite data type definition
10
 * 
10 shop2020 11
 * @author naveen
12
 *
13
 */
14
public class CompositePartDefinition extends MetaModelComponent {
15
 
16
	/**
17
	 * 
18
	 */
19
	private static final long serialVersionUID = 1L;
49 naveen 20
 
21
	/**
22
	 * Intuitive label 
23
	 */
10 shop2020 24
	private String label;
49 naveen 25
 
26
	/**
27
	 * Editor's comments
28
	 */
10 shop2020 29
	private String description;
49 naveen 30
 
31
	/**
32
	 * Reference to data type definition of the part. Each part can be a 
33
	 * complex data type.
34
	 */
10 shop2020 35
	private long datatypeDefinitionID;
49 naveen 36
 
37
	/**
38
	 * Reference to part's unit
39
	 */
16 naveen 40
	private long unitID;
10 shop2020 41
 
42
	/**
43
	 * 
16 naveen 44
	 * @param label
45
	 * @param datatypeDefinitionID
46
	 * @param unitID
10 shop2020 47
	 */
16 naveen 48
	public CompositePartDefinition(String label, long datatypeDefinitionID,
49
			long unitID) {
50
		this.label = label;
51
		this.datatypeDefinitionID = datatypeDefinitionID;
52
		this.unitID = unitID;
10 shop2020 53
	}
54
 
55
	/**
56
	 * @param label the label to set
57
	 */
58
	public void setLabel(String label) {
59
		this.label = label;
60
	}
61
 
62
	/**
63
	 * @return the label
64
	 */
65
	public String getLabel() {
66
		return label;
67
	}
68
 
69
	/**
70
	 * @param description the description to set
71
	 */
72
	public void setDescription(String description) {
73
		this.description = description;
74
	}
75
 
76
	/**
77
	 * @return the description
78
	 */
79
	public String getDescription() {
80
		return description;
81
	}
82
 
83
	/**
84
	 * @param datatypeDefinitionID the datatypeDefinitionID to set
85
	 */
86
	public void setDatatypeDefinitionID(long datatypeDefinitionID) {
87
		this.datatypeDefinitionID = datatypeDefinitionID;
88
	}
89
 
90
	/**
91
	 * @return the datatypeDefinitionID
92
	 */
93
	public long getDatatypeDefinitionID() {
94
		return datatypeDefinitionID;
95
	}
96
 
16 naveen 97
	/**
98
	 * @param unitID the unitID to set
99
	 */
100
	public void setUnitID(long unitID) {
101
		this.unitID = unitID;
102
	}
103
 
104
	/**
105
	 * @return the unitID
106
	 */
107
	public long getUnitID() {
108
		return unitID;
109
	}
110
 
111
	/* (non-Javadoc)
112
	 * @see java.lang.Object#toString()
113
	 */
114
	@Override
115
	public String toString() {
116
		return "CompositePartDefinition [datatypeDefinitionID="
117
				+ datatypeDefinitionID + ", description=" + description
118
				+ ", label=" + label + ", unitID=" + unitID + "]";
119
	}
120
 
10 shop2020 121
}