1 package com.puppycrawl.tools.checkstyle.checks.j2ee; 20 21 import com.puppycrawl.tools.checkstyle.checks.AbstractOption; 22 import java.util.HashMap ; 23 import java.util.Map ; 24 25 30 public final class PersistenceOption 31 extends AbstractOption 32 { 33 34 private static final Map STR_TO_OPT = new HashMap (); 35 36 40 public static final PersistenceOption MIXED = 41 new PersistenceOption("mixed"); 42 43 46 public static final PersistenceOption BEAN = 47 new PersistenceOption("bean"); 48 49 52 public static final PersistenceOption CONTAINER = 53 new PersistenceOption("container"); 54 55 60 private PersistenceOption(String aStrRep) 61 { 62 super(aStrRep); 63 } 64 65 66 protected Map getStrToOpt() 67 { 68 return STR_TO_OPT; 69 } 70 } 71 | Popular Tags |