Subversion Repositories SmartDukaan

Rev

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

Rev 99 Rev 102
Line 49... Line 49...
49
	 * enumerated type.
49
	 * enumerated type.
50
	 */
50
	 */
51
	private boolean isEnumerated;
51
	private boolean isEnumerated;
52
	
52
	
53
	/**
53
	/**
-
 
54
	 * Interpreted from type of DatatypeDefinition object. True if its a 
-
 
55
	 * primitive type.
-
 
56
	 */
-
 
57
	private boolean isPrimitive;
-
 
58
	
-
 
59
	/**
54
	 * Takes BulletDefinition object as input and converts all references 
60
	 * Takes BulletDefinition object as input and converts all references 
55
	 * into corresponding detail objects
61
	 * into corresponding detail objects
56
	 * 
62
	 * 
57
	 * @param bulletDefinition
63
	 * @param bulletDefinition
58
	 * @throws Exception
64
	 * @throws Exception
Line 82... Line 88...
82
			this.isComposite = true;
88
			this.isComposite = true;
83
		}
89
		}
84
		else if(this.datatypeDefinition instanceof EnumDefinition) {
90
		else if(this.datatypeDefinition instanceof EnumDefinition) {
85
			this.isEnumerated = true;
91
			this.isEnumerated = true;
86
		}
92
		}
-
 
93
		else {
-
 
94
			this.isPrimitive = true;
-
 
95
		}
87
		
96
		
88
		// Expand unit ids
97
		// Expand unit ids
89
		List<Long> unitIDs = bulletDefinition.getUnitIDs();
98
		List<Long> unitIDs = bulletDefinition.getUnitIDs();
90
		
99
		
91
		if(unitIDs != null) {
100
		if(unitIDs != null) {
Line 124... Line 133...
124
	 */
133
	 */
125
	public boolean isEnumerated() {
134
	public boolean isEnumerated() {
126
		return isEnumerated;
135
		return isEnumerated;
127
	}
136
	}
128
 
137
 
-
 
138
	/**
-
 
139
	 * @return the isPrimitive
-
 
140
	 */
-
 
141
	public boolean isPrimitive() {
-
 
142
		return isPrimitive;
-
 
143
	}
-
 
144
 
129
	/* (non-Javadoc)
145
	/* (non-Javadoc)
130
	 * @see java.lang.Object#toString()
146
	 * @see java.lang.Object#toString()
131
	 */
147
	 */
132
	@Override
148
	@Override
133
	public String toString() {
149
	public String toString() {