Subversion Repositories SmartDukaan

Rev

Rev 1061 | Details | Compare with Previous | 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
 
2170 rajveer 30
	private long helpDocDefinitionID;
10 shop2020 31
	/**
32
	 * 
16 naveen 33
	 * @param id
34
	 * @param value
10 shop2020 35
	 */
16 naveen 36
	public EnumValue(long id, String value) {
37
		this.id = id;
38
		this.value = value;
10 shop2020 39
	}
40
 
41
	/**
42
	 * @param id the id to set
43
	 */
19 naveen 44
	public void setID(long id) {
10 shop2020 45
		this.id = id;
46
	}
47
 
48
	/**
49
	 * @return the id
50
	 */
19 naveen 51
	public long getID() {
10 shop2020 52
		return id;
53
	}
54
 
55
	/**
56
	 * @param value the value to set
57
	 */
58
	public void setValue(String value) {
59
		this.value = value;
60
	}
61
 
62
	/**
63
	 * @return the value
64
	 */
65
	public String getValue() {
66
		return value;
67
	}
68
 
16 naveen 69
	/* (non-Javadoc)
70
	 * @see java.lang.Object#toString()
71
	 */
72
	@Override
73
	public String toString() {
74
		return "EnumValue [id=" + id + ", value=" + value + "]";
75
	}
76
 
2170 rajveer 77
    /**
78
     * @param helpDocDefinitionID the helpDocDefinitionID to set
79
     */
80
    public void setHelpDocDefinitionID(long helpDocDefinitionID) {
81
        this.helpDocDefinitionID = helpDocDefinitionID;
82
    }
83
 
84
    /**
85
     * @return the helpDocDefinitionID
86
     */
87
    public long getHelpDocDefinitionID() {
88
        return helpDocDefinitionID;
89
    }
90
 
10 shop2020 91
}