1 18 19 package cowsultants.itracker.ejb.client.models; 20 21 import java.io.Serializable ; 22 23 public class LanguageModel extends GenericModel { 24 private String locale; 25 private String resourceKey; 26 private String resourceValue; 27 private int action; 28 29 public LanguageModel() { 30 } 31 32 public LanguageModel(String locale, String key) { 33 setLocale(locale); 34 setResourceKey(key); 35 } 36 37 public LanguageModel(String locale, String key, String value) { 38 this(locale, key); 39 setResourceValue(value); 40 } 41 42 public String getLocale() { 43 return (locale == null ? "" : locale); 44 } 45 46 public void setLocale(String value) { 47 locale = value; 48 } 49 50 public String getResourceKey() { 51 return (resourceKey == null ? "" : resourceKey); 52 } 53 54 public void setResourceKey(String value) { 55 resourceKey = value; 56 } 57 58 public String getResourceValue() { 59 return (resourceValue == null ? "" : resourceValue); 60 } 61 62 public void setResourceValue(String value) { 63 resourceValue = value; 64 } 65 66 public int getAction() { 67 return action; 68 } 69 70 public void setAction(int value) { 71 action = value; 72 } 73 74 public String toString() { 75 return "LanguageItem [" + this.getId() + "] Locale: " + this.getLocale() + " Key: " + 76 this.getResourceKey() + " Value: " + this.getResourceValue(); 77 } 78 } 79 | Popular Tags |