List of usage examples for org.apache.commons.lang StringUtils equalsIgnoreCase
public static boolean equalsIgnoreCase(String str1, String str2)
Compares two Strings, returning true
if they are equal ignoring the case.
From source file:com.inkubator.hrm.web.search.AppraisalCompetencyTypeSearchParameter.java
public String getCode() { if (StringUtils.equalsIgnoreCase(getKeyParam(), "code")) { code = getParameter();// w w w. java 2 s. c o m } else { code = null; } return code; }
From source file:com.mmj.app.lucene.search.cons.SortSearchEnum.java
/** * ?name?// w w w. ja v a 2 s. c o m */ public static SortSearchEnum getEnum(String name) { if (StringUtils.isEmpty(name)) { return DEFAULT; } for (SortSearchEnum current : values()) { if (StringUtils.equalsIgnoreCase(current.getName(), name)) { return current; } } return DEFAULT; }
From source file:com.mmj.app.biz.cons.ReportTypeEnum.java
/** * ?name?// w w w .j a v a 2s .c om */ public static ReportTypeEnum getEnum(String name) { if (StringUtils.isEmpty(name)) { return null; } for (ReportTypeEnum current : values()) { if (StringUtils.equalsIgnoreCase(current.name, name)) { return current; } } return null; }
From source file:com.mmj.app.biz.cons.SubjectEnum.java
/** * ?name?// w w w.j a v a2 s. com */ public static SubjectEnum getEnum(String name) { if (StringUtils.isEmpty(name)) { return null; } for (SubjectEnum current : values()) { if (StringUtils.equalsIgnoreCase(current.name, name)) { return current; } } return null; }
From source file:com.inkubator.hrm.web.search.AppraisalCompetencyTypeSearchParameter.java
public String getName() { if (StringUtils.equalsIgnoreCase(getKeyParam(), "name")) { name = getParameter(); } return name; }
From source file:com.gst.infrastructure.reportmailingjob.data.ReportMailingJobPreviousRunStatus.java
/** * Creates a {@link ReportMailingJobPreviousRunStatus} object * //from w ww.j a va 2s .c o m * @param value the value of the enum constant * @return {@link ReportMailingJobPreviousRunStatus} object */ public static ReportMailingJobPreviousRunStatus newInstance(final String value) { ReportMailingJobPreviousRunStatus previousRunStatus = INVALID; if (StringUtils.equalsIgnoreCase(value, SUCCESS.value)) { previousRunStatus = SUCCESS; } else if (StringUtils.equalsIgnoreCase(value, ERROR.value)) { previousRunStatus = ERROR; } return previousRunStatus; }
From source file:com.inkubator.hrm.web.search.CompetencyUnitSearchParameter.java
public String getCompetencyGroupName() { if (StringUtils.equalsIgnoreCase(getKeyParam(), "competencyGroupName")) { competencyGroupName = getParameter(); } else {/*www. j a v a2 s. c o m*/ competencyGroupName = null; } return competencyGroupName; }
From source file:com.tesora.dve.siteprovider.DynamicSiteStatus.java
public static boolean isValidUserOption(String option) { for (DynamicSiteStatus s : values()) { if ((s == ONLINE || s == OFFLINE) && StringUtils.equalsIgnoreCase(s.name(), option)) { return true; }/*from w w w .j a v a 2 s . c o m*/ } return false; }
From source file:com.baifendian.swordfish.execserver.job.impexp.ImpExpUtil.java
/** * ?????// www . j av a 2 s. co m */ public static boolean equalIgnoreCaseWithoutBackQuota(String str1, String str2) { return StringUtils.equalsIgnoreCase(exceptBackQuota(str1), exceptBackQuota(str2)); }
From source file:controllers.infra.Licensing.java
public static void itemDetails(String id) { License license = LicenseUtils.getLicense(); StorageStatsWrapper storageStatsWrapper = getStats(); LicenseFeature lf = null;/*from ww w . j a v a 2s . co m*/ for (LicenseFeature feature : license.getLicenseFeatures()) { if (StringUtils.equalsIgnoreCase(feature.getModelId(), id)) { lf = feature; } } render(lf, storageStatsWrapper); }