Example usage for java.lang String toUpperCase

List of usage examples for java.lang String toUpperCase

Introduction

In this page you can find the example usage for java.lang String toUpperCase.

Prototype

public String toUpperCase() 

Source Link

Document

Converts all of the characters in this String to upper case using the rules of the default locale.

Usage

From source file:org.bonitasoft.web.designer.model.data.DataType.java

@JsonCreator
public static DataType fromJson(String text) {
    return valueOf(text.toUpperCase());
}

From source file:org.bonitasoft.web.designer.model.widget.BondType.java

@JsonCreator
public static BondType fromJson(String text) {
    return valueOf(text.toUpperCase());
}

From source file:Main.java

public static String capitalize(String target) {
    return TextUtils.isEmpty(target) ? "" : target.toUpperCase();
}

From source file:Main.java

public static byte[] ascii2byte(String s) {
    try {//from ww w.j a  v  a 2  s . com
        char[] cs = s.toUpperCase().toCharArray();
        byte[] bs = new byte[cs.length / 2];
        for (int i = 0, n = bs.length; i < n; i++) {
            bs[i] = (byte) (((cs[i * 2] - 'A') << 4) | (cs[i * 2 + 1] - 'A'));
        }
        return bs;
    } catch (Exception e) {
        return null;
    }
}

From source file:org.mayocat.accounts.model.Role.java

@JsonCreator
public static Role fromJson(String text) {
    return valueOf(text.toUpperCase());
}

From source file:org.bonitasoft.web.designer.model.widget.PropertyType.java

@JsonCreator
public static PropertyType fromJson(String text) {
    return valueOf(text.toUpperCase());
}

From source file:Main.java

public static String getChildValue(Node node) throws DOMException {
    Node child = node.getFirstChild();
    if (child != null) {
        String val = child.getNodeValue();
        if (val.toUpperCase().startsWith("[CDATA")) {
            val = val.substring(7, val.length() - 2);
        }/*from w w w  . j  a v  a 2s  . c  om*/
        return val;
    } else
        return "NULL";
}

From source file:Main.java

public static String create16Int(int strInt10) {
    String int16 = Integer.toHexString(strInt10);
    return "0x" + int16.toUpperCase();
}

From source file:Main.java

protected static String transformSerial(CharSequence n, int srcBase, int dstBase, int p1Width, int p1Padding,
        int p2Padding) {
    String p1 = lPad(Long.toString(Long.parseLong(n.toString().substring(0, p1Width), srcBase), dstBase),
            p1Padding, "0");
    String p2 = lPad(Long.toString(Long.parseLong(n.toString().substring(p1Width), srcBase), dstBase),
            p2Padding, "0");

    String c = p1 + p2;
    return c.toUpperCase();
}

From source file:Main.java

public static String toUpperCase(String str) {
    return str.toUpperCase();
}