Example usage for org.apache.commons.lang StringUtils EMPTY

List of usage examples for org.apache.commons.lang StringUtils EMPTY

Introduction

In this page you can find the example usage for org.apache.commons.lang StringUtils EMPTY.

Prototype

String EMPTY

To view the source code for org.apache.commons.lang StringUtils EMPTY.

Click Source Link

Document

The empty String "".

Usage

From source file:com.fengduo.bee.commons.util.DateViewTools.java

public static String formatDate(Date date) {
    if (date == null) {
        return StringUtils.EMPTY;
    }/*w w w .  j  av  a2 s  .com*/
    return getFormat(SIMPLE_DATE_FORMAT_PATTERN).format(date);
}

From source file:com.reydentx.core.cache.TestCache.java

@Override
String declareEmptyValue() {
    return StringUtils.EMPTY;
}

From source file:com.amalto.core.storage.hibernate.ToStringBridge.java

public String objectToString(Object object) {
    if (object == null) {
        return StringUtils.EMPTY;
    }//from   w w w . ja  va  2s  .  c o  m
    return String.valueOf(object);
}

From source file:com.amalto.core.storage.hibernate.CompositeIdBridge.java

public String objectToString(Object object) {
    if (object == null) {
        return StringUtils.EMPTY;
    }
    return object.toString();
}

From source file:com.amalto.core.storage.hibernate.FieldTypeCriterion.java

FieldTypeCriterion(Criteria typeSelectionCriteria, String typeName) {
    super(StringUtils.EMPTY, new Object[0], new Type[0]);
    this.criteria = typeSelectionCriteria;
    this.typeName = typeName;
}

From source file:com.microsoft.alm.plugin.idea.git.starters.SimpleCheckoutStarterTest.java

@Test
public void testCreateWithGitUrlHappy() {
    SimpleCheckoutStarter starter = SimpleCheckoutStarter.createWithGitUrl(VALID_GIT_URL, StringUtils.EMPTY);
    Assert.assertEquals(VALID_GIT_URL, starter.getGitUrl());
}

From source file:net.mikaboshi.intra_mart.tools.log_stats.util.LogStringUtil.java

/**
 * URL?????/*from  w  w w .  j ava 2s. c o m*/
 * @param url
 * @return
 */
public static String truncateUrl(String url) {

    if (url == null) {
        return StringUtils.EMPTY;
    }

    Matcher matcher = TRUNCATE_URL_PATTERN.matcher(url);

    if (matcher.matches()) {
        return matcher.group(1);
    } else {
        return url;
    }
}

From source file:com.amalto.core.load.process.ProcessedStartElement.java

public ProcessedStartElement(String uri, String localName, String qName, Attributes attributes) {
    this.attributes = attributes;
    this.uri = uri == null ? StringUtils.EMPTY : uri; // SAX consumer (such as Qizx) doesn't like null NS.
    this.localName = localName;
    this.qName = qName;
}

From source file:info.magnolia.exchange.ChannelException.java

public ChannelException() {
    super(StringUtils.EMPTY);
}

From source file:com.cognifide.slice.util.InjectorNameUtil.java

/**
 * Gets injector name for resource from specified request . It is name of path item directly after apps.
 * For /apps/slice/... it will return slice.
 * /*from  w  w  w  .  j  av  a2  s. co  m*/
 * @deprecated use {@link InjectorsRepository#getInjectorNameForResource(String)} instead
 */
@Deprecated
public static String getFromRequest(final SlingHttpServletRequest request) {
    if (null != request.getResource()) {
        return getFromResourceType(request.getResource().getResourceType());
    }
    return StringUtils.EMPTY;
}