Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
205 naveen 1
/**
2
 * 
3
 */
4
package in.shop2020.metamodel.definitions;
5
 
6
/**
7
 * @author naveen
8
 *
9
 */
10
public class ExpandedCompositePartDefinition extends CompositePartDefinition {
11
 
12
	/**
13
	 * 
14
	 */
15
	private static final long serialVersionUID = 1L;
16
 
17
	/**
18
	 * 
19
	 */
20
	private DatatypeDefinition datatypeDefinition;
21
 
22
	/**
23
	 * @param label
24
	 * @param datatypeDefinitionID
25
	 * @param unitID
26
	 * @throws Exception 
27
	 */
28
	public ExpandedCompositePartDefinition(
29
			CompositePartDefinition compositePartDef) throws Exception {
30
		super(compositePartDef.getLabel(), 
31
				compositePartDef.getDatatypeDefinitionID(), 
32
				compositePartDef.getUnitID());
33
 
34
		DefinitionsContainer defs = 
35
			Catalog.getInstance().getDefinitionsContainer();
36
 
37
		this.datatypeDefinition = defs.getDatatypeDefinition(
38
				compositePartDef.getDatatypeDefinitionID());
39
	}
40
 
41
	/**
42
	 * @return the datatypeDefinition
43
	 */
44
	public DatatypeDefinition getDatatypeDefinition() {
45
		return datatypeDefinition;
46
	}
47
}