View Javadoc

1   /*
2    * see http://github.com/ralfebert/jgravatar
3    */
4   package org.jcr_blog.commons.gravatar;
5   
6   public enum Rating {
7   
8       /** Suitable for display on all websites with any audience type. */
9       GeneralAudience("g"),
10      /** May contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence. */
11      ParentalGuidanceSuggested("pg"),
12      /** May contain such things as harsh profanity, intense violence, nudity, or hard drug use. */
13      Restricted("r"),
14      /** May contain hardcore sexual imagery or extremely disturbing violence. */
15      Xplicit("x");
16      private String code;
17  
18      private Rating(String code) {
19          this.code = code;
20      }
21  
22      public String getCode() {
23          return code;
24      }
25  }