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:com.msg.wmTestHelper.pojo.ProcessStep.java
/** * @return the first literal of the step name, per definition the technical name. *///from www .ja va2 s. c om public String cropStepLabel() { if (StringUtils.isNotEmpty(stepLabel)) { String[] strings = stepLabel.split(" "); String literal = strings[0]; if (isTechnicalName(literal)) { return literal; } else { // There is no rule without exception :( for (String otherLiteral : strings) { if (isTechnicalName(otherLiteral)) { return otherLiteral; } } } } return StringUtils.EMPTY; }
From source file:de.blizzy.documentr.web.macro.MacroControllerTest.java
@Test public void createMacro() { String result = controller.createMacro(model); assertEquals("/macro/edit", result); //$NON-NLS-1$ verify(model).addAttribute(eq("macroForm"), argMacroForm(StringUtils.EMPTY, StringUtils.EMPTY)); //$NON-NLS-1$ }
From source file:com.yqboots.web.thymeleaf.processor.attr.DataDictTextAttrProcessor.java
/** * {@inheritDoc}// w w w.j av a 2 s . c o m */ @Override protected String getText(final Arguments arguments, final Element element, final String attributeName) { // Parse the attribute value as a Thymeleaf Standard Expression final String dictName = element.getAttributeValue(attributeName); if (StringUtils.isBlank(dictName)) { return StringUtils.EMPTY; } Node node = element.getFirstChild(); if (!(node instanceof Text)) { return StringUtils.EMPTY; } final String dictValue = ((Text) node).getContent(); if (StringUtils.isNotBlank(dictValue)) { final SpringWebContext context = (SpringWebContext) arguments.getContext(); final DataDictManager dataDictManager = context.getApplicationContext().getBean(DataDictManager.class); return dataDictManager.getText(dictName, dictValue); } return dictValue; }
From source file:com.orange.ocara.model.Comment.java
/** * Constructor. * * @param type Comment type */ public Comment(Type type) { this(type, StringUtils.EMPTY); }
From source file:com.cognifide.aet.job.common.datafilters.extractelement.ExtractElementDataModifier.java
@Override public String modifyData(String data) throws ProcessingException { String result = StringUtils.EMPTY; Document parsedCode = Jsoup.parse(data); if (elementId != null) { result = modifyDataForElementParam(parsedCode); }// w w w . ja va2 s. c o m if (elementClass != null) { result = modifyDataForClassParam(parsedCode); } return result; }
From source file:ch.cyberduck.core.dropbox.DropboxListService.java
@Override public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException { try {// w w w . j a va2s . c o m final AttributedList<Path> children = new AttributedList<>(); final String path = directory.isRoot() ? StringUtils.EMPTY : directory.getAbsolute(); ListFolderResult result; this.parse(directory, listener, children, result = new DbxUserFilesRequests(session.getClient()).listFolder(path)); // If true, then there are more entries available. Pass the cursor to list_folder/continue to retrieve the rest. while (result.getHasMore()) { this.parse(directory, listener, children, result = new DbxUserFilesRequests(session.getClient()) .listFolderContinue(result.getCursor())); } return children; } catch (DbxException e) { throw new DropboxExceptionMappingService().map(e); } }
From source file:com.quatico.base.aem.test.api.setup.Resources.java
@Override public Resource aResource(Resource parent, String relativePath, Object... properties) throws Exception { if (relativePath == null) { relativePath = StringUtils.EMPTY; }/*www . j a v a2s . c o m*/ if (StringUtils.isNotEmpty(relativePath) && !StringUtils.startsWith(relativePath, "/")) { relativePath += "/"; } return aResource(parent.getPath() + relativePath, properties); }
From source file:ipgraph.datastructure.DNode.java
public DNode() { id = 0; form = StringUtils.EMPTY; lemma = StringUtils.EMPTY; cPOSTag = StringUtils.EMPTY; pos = StringUtils.EMPTY; head = null; depLabel = StringUtils.EMPTY; level = 0; }
From source file:fakedatamaker.location.us.FakeUSAddress.java
/** * //from w w w . j ava 2s. co m * @param streetNumber * @param streetName * @param usStreetType * @param city * @param usState * @param postalCode * @param abbrStreetType * @param abbrState * @throws FakeAddressException */ public FakeUSAddress(String streetNumber, String streetName, USStreetType usStreetType, String city, USState usState, String postalCode, boolean abbrStreetType, boolean abbrState) throws FakeAddressException { this(streetNumber, streetName, usStreetType, StringUtils.EMPTY, city, usState, postalCode, abbrStreetType, abbrState); }
From source file:gobblin.writer.FsDataWriterBuilder.java
private static String getExtension(State properties) { return properties.getProp(ConfigurationKeys.WRITER_OUTPUT_FORMAT_KEY, StringUtils.EMPTY); }