Subversion Repositories SmartDukaan

Rev

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

Rev 10 Rev 45
Line 9... Line 9...
9
 *
9
 *
10
 */
10
 */
11
public enum EditorialImportance {
11
public enum EditorialImportance {
12
	MANDATORY,
12
	MANDATORY,
13
	RECOMMENDED,
13
	RECOMMENDED,
14
	OPTIONAL
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
	}
15
}
33
}