1 /*
2 *
3 *
4 */
5 package oscon2006.web;
6
7 public enum OutputFormat {
8 EXCEL ("XLS file", "xls"),
9 CSV ("CSV file", "csv");
10
11 private String description;
12 private String extension;
13
14 OutputFormat(String desc, String ext)
15 {
16 description = desc;
17 extension = ext;
18 }
19
20 public String getDescription()
21 {
22 return description;
23 }
24
25 public String getExtension()
26 {
27 return extension;
28 }
29
30 public String toString()
31 {
32 return this.getDescription();
33 }
34 }