|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.pomtools.helpers.LocalStringUtils
public final class LocalStringUtils
Simple utility functions for String
| Method Summary | |
|---|---|
static String |
ifTrue(boolean condition,
String trueString,
String falseString)
If the condition is true, the trueString is returned, otherwise the falseString is returned. |
static String |
makeEndWith(String s,
String strToAppend)
Appends a string (suffix) to another string if the string does not already end with the suffix. |
static String |
splitCamelCase(String s)
Takes a camelCased string and splits it at each capital letter by adding a space. |
static String[] |
splitPreserveAllTokens(String str,
String separatorChars)
Wrapper function for StringUtils.splitPreserveAllTokens(java.lang.String, java.lang.String)
so that this plugin doesn't depend on commons-lang directly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String makeEndWith(String s,
String strToAppend)
If s is null, that value will be returned without the suffix.
s - the string to be appendedstrToAppend - the string to append if s doesn't aleady end with suffix.
public static String splitCamelCase(String s)
For example:
"fooBarFoo" => "Foo Bar Foo"
"fooBar foo" => "Foo Bar Foo"
null => null
"" => ""
" " => " "
s -
public static String[] splitPreserveAllTokens(String str,
String separatorChars)
StringUtils.splitPreserveAllTokens(java.lang.String, java.lang.String)
so that this plugin doesn't depend on commons-lang directly.
public static String ifTrue(boolean condition,
String trueString,
String falseString)
condition - boolean condition to evaluatetrueString - String to return if the condition is truefalseString - String to return if the condition is false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||