List of usage examples for org.apache.commons.lang3 StringUtils EMPTY
String EMPTY
To view the source code for org.apache.commons.lang3 StringUtils EMPTY.
Click Source Link
From source file:ch.cyberduck.core.RootProviderHelpService.java
@Override public String help(final Protocol provider) { return this.help(StringUtils.EMPTY); }
From source file:de.blizzy.documentr.validation.BranchNameBlacklistValidatorTest.java
@Test public void isValid() { BranchNameBlacklistValidator validator = new BranchNameBlacklistValidator(); assertTrue(validator.isValid(null, null)); assertTrue(validator.isValid(StringUtils.EMPTY, null)); assertTrue(validator.isValid("branch", null)); //$NON-NLS-1$ assertFalse(validator.isValid("_branch", null)); //$NON-NLS-1$ assertFalse(validator.isValid(".branch", null)); //$NON-NLS-1$ }
From source file:de.blizzy.documentr.web.project.ProjectNameBlacklistValidatorTest.java
@Test public void isValid() { ProjectNameBlacklistValidator validator = new ProjectNameBlacklistValidator(); assertTrue(validator.isValid(null, null)); assertTrue(validator.isValid(StringUtils.EMPTY, null)); assertTrue(validator.isValid("project", null)); //$NON-NLS-1$ assertFalse(validator.isValid("create", null)); //$NON-NLS-1$ assertFalse(validator.isValid("save", null)); //$NON-NLS-1$ assertFalse(validator.isValid("list", null)); //$NON-NLS-1$ assertFalse(validator.isValid("_foo", null)); //$NON-NLS-1$ }
From source file:com.inkubator.hrm.web.converter.BatchJobConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { ResourceBundle resourceBundle = ResourceBundle.getBundle("Messages", new Locale(FacesUtil.getSessionAttribute(HRMConstant.BAHASA_ACTIVE).toString())); String message = StringUtils.EMPTY; String data = (String) value; switch (data) { case "jobSynchDataFingerRealization": message = resourceBundle.getString("batch.jobSynchDataFingerRealization"); break;//from w w w.j a v a 2 s . c o m case "jobPaySalaryUpload": message = resourceBundle.getString("batch.jobPaySalaryUpload"); break; case "jobPayAttendanceUpload": message = resourceBundle.getString("batch.jobPayAttendanceUpload"); break; case "jobPayTempOvertimeUpload": message = resourceBundle.getString("batch.jobPayTempOvertimeUpload"); break; case "jobPayEmployeeCalculation": message = resourceBundle.getString("batch.jobPayEmployeeCalculation"); break; case "jobPayReceiverAccount": message = resourceBundle.getString("batch.jobPayReceiverAccount"); break; case "jobMonthEndPayroll": message = resourceBundle.getString("batch.jobMonthEndPayroll"); break; case "jobLoanUpload": message = resourceBundle.getString("batch.jobLoanUpload"); break; case "jobUnregCalculation": message = resourceBundle.getString("batch.jobUnregCalculation"); break; case "jobUnregPayroll": message = resourceBundle.getString("batch.jobUnregPayroll"); break; case "jobAnnouncementLog": message = resourceBundle.getString("batch.jobAnnouncementLog"); break; case "jobEmailingAnnouncementNotSent": message = resourceBundle.getString("batch.jobEmailingAnnouncementNotSent"); break; default: message = data; break; } return message; }
From source file:de.micromata.genome.tpsb.CommonCommentListener.java
protected String evaluate(TestBuilder<?> builder, String expression) { Object o = CommonTestBuilder.evaluate(builder.getTestContext(), expression); return o == null ? StringUtils.EMPTY : o.toString(); }
From source file:de.micromata.genome.util.i18n.I18NTranslationProvider.java
default String translate(String key) { Object ores = getTranslationForKey(key); if (ores == null) { return null; }//from ww w . j a va2 s.c om return Objects.toString(ores, StringUtils.EMPTY); }
From source file:com.vrem.wifianalyzer.navigation.options.WiFiSwitchOff.java
@Override public void apply(@NonNull MainActivity mainActivity) { ActionBar actionBar = mainActivity.getSupportActionBar(); if (actionBar != null) { actionBar.setSubtitle(StringUtils.EMPTY); }/* w ww . j av a 2s . c om*/ }
From source file:com.msopentech.odatajclient.engine.uri.SegmentType.java
private SegmentType() { this.value = StringUtils.EMPTY; }
From source file:com.twosigma.beaker.easyform.EasyFormComponent.java
public EasyFormComponent() { setValue(StringUtils.EMPTY); }
From source file:com.inkubator.hrm.web.converter.OvertimeImplCalculationMethodConverter.java
@Override public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) { ResourceBundle resourceBundle = ResourceBundle.getBundle("Messages", new Locale(FacesUtil.getSessionAttribute(HRMConstant.BAHASA_ACTIVE).toString())); String messages = StringUtils.EMPTY; Integer data = (Integer) value; if (Objects.equals(data, HRMConstant.OVERTIME_CALCULATION_STATIC)) { messages = resourceBundle.getString("overTimeImplementation.static"); } else if (Objects.equals(data, HRMConstant.OVERTIME_CALCULATION_RELATIVE)) { messages = resourceBundle.getString("overTimeImplementation.relative"); }/*from w w w . ja v a 2 s.c o m*/ return messages; }