Subversion Repositories SmartDukaan

Rev

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

Rev 24 Rev 25
Line 6... Line 6...
6
import in.shop2020.metamodel.definitions.BulletDefinition;
6
import in.shop2020.metamodel.definitions.BulletDefinition;
7
import in.shop2020.metamodel.definitions.Catalog;
7
import in.shop2020.metamodel.definitions.Catalog;
8
import in.shop2020.metamodel.definitions.DatatypeDefinition;
8
import in.shop2020.metamodel.definitions.DatatypeDefinition;
9
import in.shop2020.metamodel.definitions.DefinitionsContainer;
9
import in.shop2020.metamodel.definitions.DefinitionsContainer;
10
import in.shop2020.metamodel.definitions.Unit;
10
import in.shop2020.metamodel.definitions.Unit;
-
 
11
import in.shop2020.util.Utils;
11
 
12
 
12
/**
13
/**
13
 * @author naveen
14
 * @author naveen
14
 *
15
 *
15
 */
16
 */
Line 40... Line 41...
40
		
41
		
41
		// Expand data type definition id
42
		// Expand data type definition id
42
		this.datatypeDefinition = defs.getDatatypeDefinition(
43
		this.datatypeDefinition = defs.getDatatypeDefinition(
43
				bulletDefinition.getDatatypeDefinitionID());
44
				bulletDefinition.getDatatypeDefinitionID());
44
		
45
		
45
		// Expand unit id
46
		Utils.logger.info("datatypeDefinition.getClass().getName=" + 
46
		this.unit = defs.getUnit(bulletDefinition.getUnitID());
47
				this.datatypeDefinition.getClass().getName());
47
		
48
		
-
 
49
		// Expand unit id
-
 
50
		if(bulletDefinition.getUnitID() != 0L) {
-
 
51
			this.unit = defs.getUnit(bulletDefinition.getUnitID());
-
 
52
		}
48
	}
53
	}
49
 
54
 
50
	/**
55
	/**
51
	 * @return the datatypeDefinition
56
	 * @return the datatypeDefinition
52
	 */
57
	 */
53
	public DatatypeDefinition getDatatypeDefinition() {
58
	public DatatypeDefinition getDatatypeDefinition() {
54
		return datatypeDefinition;
59
		return this.datatypeDefinition;
55
	}
60
	}
56
 
61
 
57
	/**
62
	/**
58
	 * @return the unit
63
	 * @return the unit
59
	 */
64
	 */
60
	public Unit getUnit() {
65
	public Unit getUnit() {
61
		return unit;
66
		return this.unit;
62
	}
67
	}
63
 
68
 
64
}
69
}