List of usage examples for org.apache.commons.lang StringUtils EMPTY
String EMPTY
To view the source code for org.apache.commons.lang StringUtils EMPTY.
Click Source Link
""
. From source file:com.codenjoy.dojo.client.OneCommandSolver.java
@Override public String get(T board) { if (processed) { System.exit(0);/*from w ww .j ava 2 s.c o m*/ return StringUtils.EMPTY; } else { processed = true; } System.out.printf("Are you sure you want to run the command '%s' (y/n)?\n", command); String answer = new Scanner(System.in).next(); if (answer.equals("y")) { System.out.printf("Sending '%s' to the server\n", command); return command; } else { System.exit(0); return StringUtils.EMPTY; } }
From source file:info.magnolia.cms.gui.dialog.DialogLine.java
public String getHtml(int colspanBeforeLine, int colspanLine, int colspanAfterLine) { String pre = StringUtils.EMPTY; String post = StringUtils.EMPTY; if (colspanBeforeLine != 0) { pre = "<td colspan=\"" + colspanBeforeLine + "\"></td>"; //$NON-NLS-1$ //$NON-NLS-2$ }//w w w .j a va 2 s. c om if (colspanAfterLine != 0) { pre = "<td colspan=\"" + colspanAfterLine + "\"></td>"; //$NON-NLS-1$ //$NON-NLS-2$ } return "<tr>" //$NON-NLS-1$ + pre + "<td colspan=\"" //$NON-NLS-1$ + colspanLine + "\" class=\"" //$NON-NLS-1$ + CssConstants.CSSCLASS_BOXLINE + "\"></td>" //$NON-NLS-1$ + post + "</tr>"; //$NON-NLS-1$ }
From source file:com.amalto.core.save.context.CreateWithProvidedIdActions.java
@Override protected void handleField(FieldMetadata field, boolean doCreate, String currentPath) { if (field.isKey()) { Accessor accessor = document.createAccessor(currentPath); if (accessor.exist()) { actions.add(new FieldUpdateAction(date, source, userName, currentPath, StringUtils.EMPTY, accessor.get(), field)); return; }// w w w. j av a 2 s . c o m } super.handleField(field, doCreate, currentPath); }
From source file:com.amalto.core.history.EmptyDocument.java
public String exportToString() { return StringUtils.EMPTY; }
From source file:eu.europa.ec.fisheries.uvms.rules.mapper.AbstractRulesBaseMapper.java
String joinListOfStringsInCommaSeparatedString(List<String> xpaths) { if (CollectionUtils.isEmpty(xpaths)) { return StringUtils.EMPTY; }//from w w w . j a v a 2s .com return StringUtils.join(xpaths, ","); }
From source file:net.sourceforge.fenixedu.domain.PersonInformationLog.java
public String getPersonName() { return getPerson() != null ? getPerson().getName() : StringUtils.EMPTY; }
From source file:com.netprogs.minecraft.plugins.social.command.help.HelpSegment.java
public HelpSegment(ICommandType commandType) { this.title = StringUtils.EMPTY; this.commandType = commandType; }
From source file:lince.modelo.InstrumentoObservacional.Categoria.java
public Categoria(String nombre) { this.nombre = nombre; if (StringUtils.isEmpty(this.codigo)) { String codeName = StringUtils.EMPTY; for (String item : nombre.split(" ")) { codeName += item.substring(0, 1); }//from w ww .j a va 2s .c o m this.codigo = codeName; } }
From source file:gobblin.util.concurrent.TaskSchedulerFactoryTest.java
@Test public void testGet() { TaskScheduler<Object, ScheduledTask<Object>> taskScheduler = TaskSchedulerFactory.get("", Optional.<String>absent()); Assert.assertTrue(Matchers.instanceOf(ScheduledExecutorServiceTaskScheduler.class).matches(taskScheduler)); taskScheduler = TaskSchedulerFactory.get(StringUtils.EMPTY, Optional.<String>absent()); Assert.assertTrue(Matchers.instanceOf(ScheduledExecutorServiceTaskScheduler.class).matches(taskScheduler)); taskScheduler = TaskSchedulerFactory.get("ScheduledExecutorService", Optional.<String>absent()); Assert.assertTrue(Matchers.instanceOf(ScheduledExecutorServiceTaskScheduler.class).matches(taskScheduler)); taskScheduler = TaskSchedulerFactory.get("HashedWheelTimer", Optional.<String>absent()); Assert.assertTrue(Matchers.instanceOf(HashedWheelTimerTaskScheduler.class).matches(taskScheduler)); }
From source file:com.wpl.db.query.jpa.Limit.java
public String toQuery() { return StringUtils.EMPTY; }