Subversion Repositories SmartDukaan

Rev

Rev 45 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45 Rev 51
Line 5... Line 5...
5
 
5
 
6
import in.shop2020.metamodel.definitions.BulletDefinition;
6
import in.shop2020.metamodel.definitions.BulletDefinition;
7
import in.shop2020.metamodel.definitions.FeatureDefinition;
7
import in.shop2020.metamodel.definitions.FeatureDefinition;
8
 
8
 
9
/**
9
/**
-
 
10
 * Utility class that supports FeatureDefinition class. All related 
-
 
11
 * objects are fetched from database and aggregated here.
-
 
12
 * 
10
 * @author naveen
13
 * @author naveen
11
 *
14
 *
12
 */
15
 */
13
public class ExpandedFeatureDefinition extends FeatureDefinition {
16
public class ExpandedFeatureDefinition extends FeatureDefinition {
14
 
17
 
Line 16... Line 19...
16
	 * 
19
	 * 
17
	 */
20
	 */
18
	private static final long serialVersionUID = 1L;
21
	private static final long serialVersionUID = 1L;
19
	
22
	
20
	/**
23
	/**
21
	 * 
24
	 * Expanded from BulletDefinition ID
22
	 */
25
	 */
23
	private ExpandedBulletDefinition expandedBulletDefinition;
26
	private ExpandedBulletDefinition expandedBulletDefinition;
24
	
27
	
25
	/**
28
	/**
-
 
29
	 * Takes FeatureDefinition object as input and converts all references 
-
 
30
	 * into corresponding detail objects
26
	 * 
31
	 * 
27
	 * @param featureDefintion
32
	 * @param featureDefintion Feature Definition object
28
	 * @throws Exception 
33
	 * @throws Exception 
29
	 */
34
	 */
30
	public ExpandedFeatureDefinition(FeatureDefinition featureDefinition) 
35
	public ExpandedFeatureDefinition(FeatureDefinition featureDefinition) 
31
		throws Exception {
36
		throws Exception {
32
		super(featureDefinition.getID(), featureDefinition.getLabel());
37
		super(featureDefinition.getID(), featureDefinition.getLabel());
Line 41... Line 46...
41
		
46
		
42
		this.expandedBulletDefinition = new ExpandedBulletDefinition(bulletDef);
47
		this.expandedBulletDefinition = new ExpandedBulletDefinition(bulletDef);
43
	}
48
	}
44
 
49
 
45
	/**
50
	/**
46
	 * @return the expandedBulletDefinition
51
	 * @return the expandedBulletDefinition ExpandedBulletDefinition object
47
	 */
52
	 */
48
	public ExpandedBulletDefinition getExpandedBulletDefinition() {
53
	public ExpandedBulletDefinition getExpandedBulletDefinition() {
49
		return expandedBulletDefinition;
54
		return expandedBulletDefinition;
50
	}
55
	}
51
 
56