Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 shop2020 1
/**
2
 * 
3
 */
4
package in.shop2020.metamodel.definitions;
5
 
6
import in.shop2020.metamodel.util.MetaModelComponent;
7
 
8
/**
49 naveen 9
 * Represents individual valid value in the enumerated list
10 shop2020 10
 * @author naveen
11
 *
12
 */
13
public class EnumValue extends MetaModelComponent {
14
 
15
	/**
16
	 * 
17
	 */
18
	private static final long serialVersionUID = 1L;
49 naveen 19
 
20
	/**
21
	 * Unique identifier
22
	 */
10 shop2020 23
	private long id;
49 naveen 24
 
25
	/**
26
	 * One value from the enumerated list
27
	 */
10 shop2020 28
	private String value;
29
 
30
	/**
31
	 * 
16 naveen 32
	 * @param id
33
	 * @param value
10 shop2020 34
	 */
16 naveen 35
	public EnumValue(long id, String value) {
36
		this.id = id;
37
		this.value = value;
10 shop2020 38
	}
39
 
40
	/**
41
	 * @param id the id to set
42
	 */
19 naveen 43
	public void setID(long id) {
10 shop2020 44
		this.id = id;
45
	}
46
 
47
	/**
48
	 * @return the id
49
	 */
19 naveen 50
	public long getID() {
10 shop2020 51
		return id;
52
	}
53
 
54
	/**
55
	 * @param value the value to set
56
	 */
57
	public void setValue(String value) {
58
		this.value = value;
59
	}
60
 
61
	/**
62
	 * @return the value
63
	 */
64
	public String getValue() {
65
		return value;
66
	}
67
 
16 naveen 68
	/* (non-Javadoc)
69
	 * @see java.lang.Object#toString()
70
	 */
71
	@Override
72
	public String toString() {
73
		return "EnumValue [id=" + id + ", value=" + value + "]";
74
	}
75
 
10 shop2020 76
}