Subversion Repositories SmartDukaan

Rev

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

Rev 49 Rev 51
Line 11... Line 11...
11
import in.shop2020.metamodel.definitions.Catalog;
11
import in.shop2020.metamodel.definitions.Catalog;
12
import in.shop2020.metamodel.definitions.DefinitionsContainer;
12
import in.shop2020.metamodel.definitions.DefinitionsContainer;
13
import in.shop2020.metamodel.definitions.FeatureDefinition;
13
import in.shop2020.metamodel.definitions.FeatureDefinition;
14
 
14
 
15
/**
15
/**
-
 
16
 * Utility class that supports core Feature class. All related 
-
 
17
 * objects are fetched from database and aggregated here.
-
 
18
 *
16
 * @author naveen
19
 * @author naveen
17
 *
20
 *
18
 */
21
 */
19
public class ExpandedFeature extends Feature {
22
public class ExpandedFeature extends Feature {
20
	/**
23
	/**
21
	 * 
24
	 * 
22
	 */
25
	 */
23
	private static final long serialVersionUID = 1L;
26
	private static final long serialVersionUID = 1L;
24
	
27
	
25
	/**
28
	/**
26
	 * 
29
	 * Expanded from Feature Definition ID
27
	 */
30
	 */
28
	private FeatureDefinition featureDefinition;
31
	private FeatureDefinition featureDefinition;
29
	
32
	
30
	/**
33
	/**
31
	 * 
34
	 * Expanded from list of Bullet objects
32
	 */
35
	 */
33
	private List<ExpandedBullet> expandedBullets;
36
	private List<ExpandedBullet> expandedBullets;
34
 
37
 
35
	/**
38
	/**
-
 
39
	 * Takes Feature object as input and converts all references 
-
 
40
	 * into corresponding detail objects
36
	 * 
41
	 * 
37
	 * @param feature
42
	 * @param feature
38
	 * @throws Exception
43
	 * @throws Exception
39
	 */
44
	 */
40
	public ExpandedFeature(Feature feature) throws Exception {
45
	public ExpandedFeature(Feature feature) throws Exception {
Line 63... Line 68...
63
			}
68
			}
64
		}
69
		}
65
	}
70
	}
66
 
71
 
67
	/**
72
	/**
68
	 * @return the featureDefinition
73
	 * @return the featureDefinition Feature Definition object
69
	 */
74
	 */
70
	public FeatureDefinition getFeatureDefinition() {
75
	public FeatureDefinition getFeatureDefinition() {
71
		return featureDefinition;
76
		return featureDefinition;
72
	}
77
	}
73
 
78
 
74
	/**
79
	/**
75
	 * @return the expandedBullets
80
	 * @return the expandedBullets List of ExpandedBullet objects
76
	 */
81
	 */
77
	public List<ExpandedBullet> getExpandedBullets() {
82
	public List<ExpandedBullet> getExpandedBullets() {
78
		return expandedBullets;
83
		return expandedBullets;
79
	}
84
	}
80
 
85