Example usage for org.apache.commons.lang3 StringUtils lowerCase

List of usage examples for org.apache.commons.lang3 StringUtils lowerCase

Introduction

In this page you can find the example usage for org.apache.commons.lang3 StringUtils lowerCase.

Prototype

public static String lowerCase(final String str) 

Source Link

Document

Converts a String to lower case as per String#toLowerCase() .

A null input String returns null .

 StringUtils.lowerCase(null)  = null StringUtils.lowerCase("")    = "" StringUtils.lowerCase("aBc") = "abc" 

Note: As described in the documentation for String#toLowerCase() , the result of this method is affected by the current locale.

Usage

From source file:be.nille.generator.parser.ParserUtils.java

public static String createEntityName(String string) {
    return StringUtils.capitalize(StringUtils.lowerCase(string));
}

From source file:models.TipoMueble.java

@JsonCreator
public static TipoMueble forValue(String value) {
    return namesMap.get(StringUtils.lowerCase(value));
}

From source file:models.TipoDocumento.java

@JsonCreator
public static TipoDocumento forValue(String value) {
    return namesMap.get(StringUtils.lowerCase(value));
}

From source file:models.TipoUsuario.java

@JsonCreator
public static TipoUsuario forValue(String value) {
    return namesMap.get(StringUtils.lowerCase(value));
}

From source file:com.widowcrawler.core.util.DomainUtils.java

public static boolean isBaseDomain(String baseDomain, String url) {
    try {/*  w  ww .j av  a2  s  . co  m*/
        baseDomain = StringUtils.lowerCase(StringUtils.trim(baseDomain));
        String domain = StringUtils.lowerCase(StringUtils.trimToNull(new URI(url).getHost()));

        if (domain == null) {
            logger.info("Returning false because url's domain is null");
            return false;
        }

        while (StringUtils.isNotBlank(domain)) {
            if (StringUtils.equals(baseDomain, domain)) {
                return true;
            }

            domain = StringUtils.substringAfter(domain, ".");
        }

        return false;

    } catch (URISyntaxException ex) {
        logger.error("Could not determine base domain relationship. Returning default of false.", ex);
        return false;
    }
}

From source file:com.threewks.thundr.view.jsp.el.StringFunctions.java

public static String lowerCase(Object arg) {
    return arg == null ? null : StringUtils.lowerCase(arg.toString());
}

From source file:models.Profesion.java

@JsonCreator
public static Profesion forValue(String value) {
    return namesMap.get(StringUtils.lowerCase(value));
}

From source file:com.emergya.persistenceGeo.utils.GeoserverUtils.java

public static String generateName(String name) {
    String workspaceName = name;//from   w  w  w.  j a  v a 2 s .c  om
    workspaceName = StringUtils.replaceChars(workspaceName, ".- \t", "____");
    workspaceName = StringUtils.lowerCase(workspaceName);
    workspaceName = StringUtils.replaceChars(workspaceName, "''\"",
            "aeiounaeiouu___");
    return workspaceName;
}

From source file:ch.cyberduck.core.CaseInsensitivePathPredicate.java

@Override
public String toString() {
    return this.type() + "-" + StringUtils.lowerCase(file.getAbsolute());
}

From source file:io.wcm.devops.conga.plugins.aem.handlebars.helper.DispatcherFilterType.java

@Override
public String toString() {
    return StringUtils.lowerCase(name());
}