/** * <p>Capitalizes all the whitespace separated words in a String. * Only the first letter of each word is changed.</p> * * <p>Whitespace is defined by {@link Character#isWhitespace(char)}. * A <code>null</code> input String returns <code>null</code>.</p> * * @param str the String to capitalize, may be null * @return capitalized String, <code>null</code> if null String input * @deprecated Use the relocated {@link WordUtils#capitalize(String)}. * Method will be removed in Commons Lang 3.0. */ public static String capitaliseAllWords(String str) { return WordUtils.capitalize(str); }
/** * <p>Capitalizes all the whitespace separated words in a String. * Only the first letter of each word is changed. To convert the * rest of each word to lowercase at the same time, * use {@link #capitalizeFully(String)}.</p> * * <p>Whitespace is defined by {@link Character#isWhitespace(char)}. * A <code>null</code> input String returns <code>null</code>. * Capitalization uses the unicode title case, normally equivalent to * upper case.</p> * * <pre> * WordUtils.capitalize(null) = null * WordUtils.capitalize("") = "" * WordUtils.capitalize("i am FINE") = "I Am FINE" * </pre> * * @param str the String to capitalize, may be null * @return capitalized String, <code>null</code> if null String input * @see #uncapitalize(String) * @see #capitalizeFully(String) */ public static String capitalize(String str) { return capitalize(str, null); }
return capitalize(str, delimiters);
public String getTypeCapitalized() { return WordUtils.capitalize(myType); }
public String getVersionCapitalized() { String capitalize = WordUtils.capitalize(version); if ("Dstu".equals(capitalize)) { return "Dstu1"; } return capitalize; }
private static String populateActionName(Class<?> clazz) { String name = clazz.getSimpleName().replace("API", "").replace("Msg", ""); name = String.format("%sAction", name); return WordUtils.capitalize(name); }
public String getNameCapitalized() { return WordUtils.capitalize(myName).replace("_[x]", "").replace("-[x]", "").replace("_[X]", "").replace("-[X]", "").replace('-', '_').replace("!", ""); }
private List<String> toCompositeOfTypes(List<RuntimeSearchParam> theCompositeOf) { if (theCompositeOf == null) { return null; } ArrayList<String> retVal = new ArrayList<String>(); for (RuntimeSearchParam next : theCompositeOf) { String type = next.getParamType().getCode(); type = WordUtils.capitalize(type); retVal.add(type); } return retVal; }
String capitalize = WordUtils.capitalize(version); if ("Dstu".equals(capitalize)) { capitalize="Dstu1";
ctx.put("isRi", determineVersionEnum().isRi()); ctx.put("package_suffix", packageSuffix); String capitalize = WordUtils.capitalize(myVersion); if ("Dstu".equals(capitalize)) { capitalize = "Dstu1";
ctx.put("isRi", determineVersionEnum().isRi()); String capitalize = WordUtils.capitalize(myVersion); if ("Dstu".equals(capitalize)) { capitalize = "Dstu1";
String capitalize = WordUtils.capitalize(version); if ("Dstu".equals(capitalize)) { capitalize="Dstu1";
String capitalize = WordUtils.capitalize(version); if ("Dstu".equals(capitalize)) { capitalize="Dstu1";
public String build(String baseName) { if (!isBlank(prefix)) { baseName = capitalize(baseName); } return prefix + baseName + suffix; }
/** * Derives a label value from an enum */ protected String getEnumLabel(Enum enm) { return WordUtils.capitalize(enm.name().toLowerCase()); } }
/** * Get the type of the calendar item. * * @return the type of the calendar item */ public String getCalendarType() { if (calendarType != null) { return WordUtils.capitalize(calendarType.toLowerCase(Locale.getDefault())); } return null; }
private static Method lookupGetterMethod(final String propertyMethodName, final Method[] methods) { Method propertyMethod; final String getter = GET_PREFIX + WordUtils.capitalize(propertyMethodName); propertyMethod = lookupMethod(getter, methods); return propertyMethod; }
public String build(String name) { if (!isEmpty(prefix)) { name = capitalize(name); } return stripToEmpty(prefix) + name + stripToEmpty(suffix); }
/** * Capitalized and localized string of the day of week. * * @param locale to use on the returned string * @return Capitalized and localized string of the day of week */ public String getDayOfWeek(Locale locale) { String dayOfWeek = interval.getStart().dayOfWeek().getAsText(locale); return WordUtils.capitalize(dayOfWeek); }
/** * Capitalized string of the end month of year with sv_SE locale. * * @return Capitalized and localized string of the month of year */ public String getEndMonthOfYear() { String monthOfYear = interval.getEnd().monthOfYear().getAsText(DEFAULT_LOCALE); return WordUtils.capitalize(monthOfYear); }