KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > ce > auction > model > Rating


1 package org.hibernate.ce.auction.model;
2
3 public enum Rating {
4
5     EXCELLENT("Excellent"), OK("OK"), LOW("Low");
6
7     private String JavaDoc name;
8
9     private Rating(String JavaDoc name) {
10         this.name = name;
11     }
12
13     // ********************** Common Methods ********************** //
14

15     public String JavaDoc toString() {
16         return name;
17     }
18
19     public String JavaDoc value() {
20         return name;
21     }
22
23 }
Popular Tags