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