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
/**
7
 * 
8
 * @author naveen
9
 *
10
 */
11
public enum EditorialImportance {
12
	MANDATORY,
13
	RECOMMENDED,
45 naveen 14
	OPTIONAL;
15
 
16
	/**
17
	 * @return String 
18
	 */
19
	public String toString() {
20
		String text = "";
21
		if(this == EditorialImportance.MANDATORY) {
22
			text = "Mandatory";
23
		}
24
		else if(this == EditorialImportance.RECOMMENDED) {
25
			text = "Recommended";
26
		}
27
		else if(this == EditorialImportance.OPTIONAL) {
28
			text = "Optional";
29
		}
30
 
31
		return text;
32
	}
10 shop2020 33
}