List of usage examples for java.lang String toUpperCase
public String toUpperCase()
From source file:edumsg.core.CommandsHelp.java
public static void submit(String app, String json, String correlationID, Logger logger) { Producer p = new Producer(new ActiveMQConfig(app.toUpperCase() + ".OUTQUEUE")); p.send(json, correlationID, logger); }
From source file:architecture.ee.web.community.social.provider.ServiceProviderHelper.java
public static List<Media> getAllMedia() { Collection<String> providers = ApplicationHelper.getRepository().getSetupApplicationProperties() .getChildrenNames("components.social.providers"); // ApplicationHelper.getConfigService().getLocalProperties(parent).getApplicationPropertyNames("components.social.providers"); List<Media> media = new ArrayList<Media>(providers.size()); for (String name : providers) media.add(Media.valueOf(name.toUpperCase())); return media; }
From source file:Main.java
public static String capitalizeFirstLetter(String paramString) { if (TextUtils.isEmpty(paramString)) return paramString; if (paramString.length() == 1) return paramString.toUpperCase(); return Character.toUpperCase(paramString.charAt(0)) + paramString.substring(1); }
From source file:Main.java
public static String Bytes2HexString(byte[] b) { String ret = ""; for (int i = 0; i < b.length; i++) { String hex = Integer.toHexString(b[i] & 0xFF); if (hex.length() == 1) { hex = "0" + hex; }/* w w w .j a va2 s .co m*/ ret += hex.toUpperCase() + " "; } return ret; }
From source file:Main.java
public static String Bytes2HexString(byte[] b, int size) { String ret = ""; //for (int i = 0; i < size; i++) { for (int i = size - 1; i >= 0; i--) { String hex = Integer.toHexString(b[i] & 0xFF); if (hex.length() == 1) { hex = "0" + hex; }// w w w .ja v a2 s. co m ret += hex.toUpperCase(); } return ret; }
From source file:com.tag.HexUtils.java
public static String toHex(int i) { String hex = Integer.toHexString(i); int size = 2; hex = StringUtils.leftPad(hex, size, '0'); hex = hex.toUpperCase(); int length = hex.length(); int beginIndex = length - size; return hex.substring(beginIndex); }
From source file:Main.java
private static String byte2HexStr(byte[] b) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < b.length; ++i) { String s = Integer.toHexString(b[i] & 0xFF); if (s.length() == 1) sb.append("0"); sb.append(s.toUpperCase()); }//from w w w . j a v a2 s .c o m return sb.toString(); }
From source file:kirchnerei.glatteis.page.ui.MenuDivider.java
public static MenuDivider fromString(String name) { if (StringUtils.isEmpty(name)) { return NONE; }// w w w . j av a 2 s . com try { return valueOf(name.toUpperCase()); } catch (Exception e) { return NONE; } }
From source file:com.qualogy.qafe.util.StyleDomUtil.java
/** * Convert for example background-color to backgroundColor * @param style//from w ww.ja va 2s .c o m * @return */ public static String initCapitalize(String style) { String newValue = ""; if (style != null) { String[] parts = StringUtils.split(style, '-'); if (parts.length > 1) { for (int j = 0; j < parts.length; j++) { if (j > 0) { if (parts[j].length() > 0) { String capString = parts[j].substring(0, 1); capString = capString.toUpperCase(); capString += parts[j].substring(1); newValue += capString; } } else { newValue += parts[j]; } } } else { newValue = style; } } return newValue; }
From source file:ColorUtils.java
/** * Normalizes a given color description string *///from ww w.jav a2 s .c o m public static String getColorDescription(String color) { return color.toUpperCase(); }