Subversion Repositories SmartDukaan

Rev

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

Rev 16 Rev 24
Line 14... Line 14...
14
 
14
 
15
	/**
15
	/**
16
	 * 
16
	 * 
17
	 */
17
	 */
18
	private static final long serialVersionUID = 1L;
18
	private static final long serialVersionUID = 1L;
19
	private List<EnumValue> values;
19
	private List<EnumValue> enumValues;
20
 
20
 
21
	/**
21
	/**
22
	 * @param newID
22
	 * @param newID
23
	 */
23
	 */
24
	public EnumDefinition(long newID, String name) {
24
	public EnumDefinition(long newID, String name) {
Line 28... Line 28...
28
	/**
28
	/**
29
	 * 
29
	 * 
30
	 * @param value
30
	 * @param value
31
	 */
31
	 */
32
	public void addEnumValue(EnumValue value) {
32
	public void addEnumValue(EnumValue value) {
33
		if(this.values == null) {
33
		if(this.enumValues == null) {
34
			this.values = new ArrayList<EnumValue>();
34
			this.enumValues = new ArrayList<EnumValue>();
35
		}
35
		}
36
		this.values.add(value);
36
		this.enumValues.add(value);
37
	}
37
	}
38
 
38
 
39
	/**
39
	/**
40
	 * @param values the values to set
40
	 * @param values the values to set
41
	 */
41
	 */
42
	public void setValues(List<EnumValue> values) {
42
	public void setEnumValues(List<EnumValue> values) {
43
		this.values = values;
43
		this.enumValues = values;
44
	}
44
	}
45
 
45
 
46
	/**
46
	/**
47
	 * @return the values
47
	 * @return the values
48
	 */
48
	 */
49
	public List<EnumValue> getValues() {
49
	public List<EnumValue> getEnumValues() {
50
		return values;
50
		return enumValues;
51
	}
51
	}
52
 
52
 
53
	/* (non-Javadoc)
53
	/* (non-Javadoc)
54
	 * @see java.lang.Object#toString()
54
	 * @see java.lang.Object#toString()
55
	 */
55
	 */
56
	@Override
56
	@Override
57
	public String toString() {
57
	public String toString() {
58
		return "EnumDefinition [values=" + values + ", getDescription()="
58
		return "EnumDefinition [enumValues=" + enumValues + 
59
				+ getDescription() + ", getName()=" + getName() + ", getID()="
59
				", getDescription()=" + getDescription() + ", getName()=" + 
60
				+ getID() + "]";
60
				getName() + ", getID()=" + getID() + "]";
61
	}
61
	}
62
 
62
 
63
}
63
}
64
 
64