|
||||||||||
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 java.lang.String |
ifTrue(boolean condition,
java.lang.String trueString,
java.lang.String falseString)
If the condition is true, the trueString is returned, otherwise the falseString is returned. |
static java.lang.String |
makeEndWith(java.lang.String s,
java.lang.String strToAppend)
Appends a string (suffix) to another string if the string does not already end with the suffix. |
static java.lang.String |
splitCamelCase(java.lang.String s)
Takes a camelCased string and splits it at each capital letter by adding a space. |
static java.lang.String[] |
splitPreserveAllTokens(java.lang.String str,
java.lang.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 java.lang.String makeEndWith(java.lang.String s, java.lang.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 java.lang.String splitCamelCase(java.lang.String s)
For example:
"fooBarFoo" => "Foo Bar Foo"
"fooBar foo" => "Foo Bar Foo"
null => null
"" => ""
" " => " "
s
-
public static java.lang.String[] splitPreserveAllTokens(java.lang.String str, java.lang.String separatorChars)
StringUtils.splitPreserveAllTokens(java.lang.String, java.lang.String)
so that this plugin doesn't depend on commons-lang directly.
public static java.lang.String ifTrue(boolean condition, java.lang.String trueString, java.lang.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 |