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

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

Introduction

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

Prototype

public static String upperCase(final String str) 

Source Link

Document

Converts a String to upper case as per String#toUpperCase() .

A null input String returns null .

 StringUtils.upperCase(null)  = null StringUtils.upperCase("")    = "" StringUtils.upperCase("aBc") = "ABC" 

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

Usage

From source file:com.sonicle.webtop.core.bol.OServiceStoreEntry.java

public static String sanitizeKey(String key) {
    return StringUtils.upperCase(StringUtils.trim(key));
}

From source file:com.threewks.thundr.bigmetrics.bigquery.BigQueryType.java

/**
 * Return the big query type as a string
 *
 * @return the big query type
 */
public String type() {
    return StringUtils.upperCase(this.name());
}

From source file:ch.cyberduck.core.ftp.FTPProtocol.java

@Override
public String getPrefix() {
    return String.format("%s.%s", FTPProtocol.class.getPackage().getName(),
            StringUtils.upperCase(this.getType().name()));
}

From source file:com.cengage.mtx.tests.Chemistry.CXPActivities.ConceptualTutored.TC01_AdminAddConceptualTutoredActivityFlow.java

@BeforeClass
public void start_test_session() {
    Reporter.log("Jira Ticket: ", true);
    test = new TestSessionInitiator("Chemistry Add Conceptual Tutored Activity Test");
    user = System.getProperty("user", "adminChemistry");
    bookName = StringUtils.upperCase(user) + "-" + getData("Books.master.masterName");
    test.launchApplication(getData("base_url"));

}

From source file:ch.cyberduck.core.dav.DAVProtocol.java

@Override
public String getPrefix() {
    return String.format("%s.%s", DAVProtocol.class.getPackage().getName(),
            StringUtils.upperCase(this.getType().name()));
}

From source file:ch.cyberduck.core.dav.DAVSSLProtocol.java

@Override
public String getPrefix() {
    return String.format("%s.%s", DAVSSLProtocol.class.getPackage().getName(),
            StringUtils.upperCase(this.getType().name()));
}

From source file:ch.cyberduck.core.sftp.SFTPProtocol.java

@Override
public String getPrefix() {
    return String.format("%s.%s", SFTPProtocol.class.getPackage().getName(),
            StringUtils.upperCase(this.getType().name()));
}

From source file:ch.cyberduck.core.ftp.FTPTLSProtocol.java

@Override
public String getPrefix() {
    return String.format("%s.%s", FTPTLSProtocol.class.getPackage().getName(),
            StringUtils.upperCase(this.getType().name()));
}

From source file:com.cengage.mindtap.tests.Mindapps.ALGAppScenarios.AdminAddEditALGActivity.java

@BeforeClass
public void start_test_session() {
    test = new TestSessionInitiator("CreateAndLaunchMasterNextBookAndVerifyLPN");
    user = System.getProperty("user", "admin");
    userIstructor = System.getProperty("user", "instructor");
    userStudent = System.getProperty("user", "student");
    bookName = StringUtils.upperCase(user) + "-" + getData("Books.master.masterName");
    test.launchApplication(getData("base_url"));
}

From source file:com.sketchy.drawing.DrawingSize.java

public static DrawingSize parse(String string) {
    double width = 0;
    double height = 0;

    String upperCasedString = StringUtils.upperCase(string);
    String widthString = StringUtils.substringBefore(upperCasedString, "X").trim();
    String heightString = StringUtils.substringAfter(upperCasedString, "X").trim();

    widthString = StringUtils.substringBeforeLast(widthString, "MM");
    heightString = StringUtils.substringBefore(heightString, " ");
    heightString = StringUtils.substringBeforeLast(heightString, "MM");

    try {/*  w  ww . j  a  v  a2 s  .  c om*/
        width = Double.parseDouble(widthString);
        height = Double.parseDouble(heightString);
    } catch (Exception e) {
        throw new RuntimeException("Invalid Drawing Size! '" + string + "'");
    }

    if ((width <= 0) || (height <= 0)) {
        throw new RuntimeException("Invalid Drawing Size! '" + string + "'");
    }
    return new DrawingSize(width, height);
}