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:de.knightsoftnet.validators.rebind.AbstractCreator.java
private String getQualifiedName() { final String packageName = this.getPackage(); return (StringUtils.isEmpty(packageName) ? StringUtils.EMPTY : packageName + ".") + this.getSimpleName(); }
From source file:ch.cyberduck.ui.cocoa.controller.TranscriptController.java
public void clear() { logTextView.setString(StringUtils.EMPTY); }
From source file:ch.sentric.QueryFactoryTest.java
@Test public void buildShouldRemoveGoogleGifRequestTrackingParameter() { final Query query = new QueryFactory().build( "utmwv=4&utmn=769876874&utmhn=example.com&utmcs=ISO-8859-1&utmsr=1280x1024&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=9.0%20%20r115&utmcn=1&utmdt=GATC012%20setting%20variables&utmhid=2059107202&utmr=0&utmp=/auto/GATC012.html?utm_source=www.gatc012.org&utm_campaign=campaign+gatc012&utm_term=keywords+gatc012&utm_content=content+gatc012&utm_medium=medium+gatc012&utmac=UA-30138-1&utmcc=__utma%3D97315849.1774621898.1207701397.1207701397.1207701397.1%3B... "); assertEquals(StringUtils.EMPTY, query.getAsSortedString()); }
From source file:bg.fourweb.android.rss.Image.java
public Image(String url, String title, String link, int width, int height) { this(url, title, link, width, height, StringUtils.EMPTY); }
From source file:gov.hhs.onc.crigtt.config.impl.CrigttConfiguration.java
@Override public void afterPropertiesSet() throws Exception { this.setSourceParserClass(StringUtils.EMPTY); this.setStyleParserClass(StringUtils.EMPTY); this.setURIResolver(new CrigttUriResolver(this)); }
From source file:ch.cyberduck.ui.cocoa.ProgressController.java
/** * Resets both the progress and status field *//*w w w. j a v a2 s. co m*/ @Override public void awakeFromNib() { this.progress(MessageFormat.format(LocaleFactory.localizedString("{0} of {1}"), sizeFormatter.format(transfer.getTransferred()), sizeFormatter.format(transfer.getSize()))); this.message(StringUtils.EMPTY); this.status(LocaleFactory.localizedString(transfer.isComplete() ? String.format("%s complete", StringUtils.capitalize(transfer.getType().name())) : "Transfer incomplete", "Status")); super.awakeFromNib(); }
From source file:com.norconex.commons.lang.io.CachedStreamFactory.java
/** * Creates an empty input stream. Useful when you need an input stream * but null is not accepted./*from w ww.j ava2s. co m*/ * @return an empty cached input stream */ public CachedInputStream newInputStream() { return newInputStream(StringUtils.EMPTY); }
From source file:de.lgblaumeiser.ptm.datamanager.model.BookingTest.java
@Test public final void testNoComment() { Booking booking = newBooking().setBookingday(DATE).setUser(USER).setStarttime(TIME1).setActivity(ACT1) .build();//from ww w. j a v a 2 s . co m assertEquals(StringUtils.EMPTY, booking.getComment()); }
From source file:com.nridge.core.base.io.IO.java
public static String extractType(String aClassName) { if (StringUtils.isNotEmpty(aClassName)) { int offset = aClassName.lastIndexOf(StrUtl.CHAR_DOT); if (offset == -1) return aClassName; else {// w ww . ja v a 2 s . c om if (offset < aClassName.length() - 1) return aClassName.substring(offset + 1); else return aClassName; } } return StringUtils.EMPTY; }
From source file:ch.cyberduck.core.openstack.SwiftMetadataFeature.java
@Override public void setMetadata(final Path file, final Map<String, String> metadata) throws BackgroundException { try {//from ww w . j av a 2 s .c o m if (containerService.isContainer(file)) { for (Map.Entry<String, String> entry : file.attributes().getMetadata().entrySet()) { // Choose metadata values to remove if (!metadata.containsKey(entry.getKey())) { log.debug(String.format("Remove metadata with key %s", entry.getKey())); metadata.put(entry.getKey(), StringUtils.EMPTY); } } if (log.isDebugEnabled()) { log.debug(String.format("Write metadata %s for file %s", metadata, file)); } session.getClient().updateContainerMetadata(regionService.lookup(file), containerService.getContainer(file).getName(), metadata); } else { if (log.isDebugEnabled()) { log.debug(String.format("Write metadata %s for file %s", metadata, file)); } session.getClient().updateObjectMetadata(regionService.lookup(file), containerService.getContainer(file).getName(), containerService.getKey(file), metadata); } } catch (GenericException e) { throw new SwiftExceptionMappingService().map("Failure to write attributes of {0}", e, file); } catch (IOException e) { throw new DefaultIOExceptionMappingService().map("Failure to write attributes of {0}", e, file); } }