@@ -0,0 +1,834 @@
+package org.aming.lang;%0A%0Aimport org.aming.utils.StringUtils;%0A%0A/**%0A * %E8%AF%AD%E8%A8%80%E4%BB%A3%E7%A0%81%E6%9E%9A%E4%B8%BE%0A * @author aming%0A * @version 2017-01-23%0A */%0Apublic enum Language %7B%0A%09EN(1,%22en%22),%0A%09ZH_CN(2,%22zh_ch%22);%0A%09private int id;%0A%09private String status;%0A%0A%09public int getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(int id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09public String getStatus() %7B%0A%09%09return status;%0A%09%7D%0A%0A%09public void setStatus(String status) %7B%0A%09%09this.status = status;%0A%09%7D%0A%09%0A%09private Language(int id,String status)%7B%0A%09%09this.id = id;;%0A%09%09this.status = status;%0A%09%7D%0A%09%0A%09public static Language getLanguage(int status)%7B%0A%09%09for(Language l:values())%7B%0A%09%09%09if(l.id == status)%7B%0A%09%09%09%09return l;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return null;%0A%09%7D%0A%09%0A%09public static Language getLanguage(String status)%7B%0A%09%09for(Language l:values())%7B%0A%09%09%09if(StringUtils.equalsIgnoreCase(l.status, status))%7B%0A%09%09%09%09return l;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return null;%0A%09%7D%0A%7D%0A%0A%0A

rename package enums to lang