|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwaf.util.StringHandler
Helps in manipulating and formatting strings
| Constructor Summary | |
StringHandler()
|
|
| Method Summary | |
static java.lang.String |
getDisplayTime(int totalSeconds)
Gets time in hours / minutes / secs from totalSeconds |
static boolean |
isEmptyString(java.lang.String string)
Gets the EmptyString attribute of the StringHandler class |
static java.lang.String |
plural(int number)
Return an "s" if number is greater than 1 |
static java.lang.String |
removeCharacter(java.lang.String source,
char character)
Remove all characters in character from source |
static java.lang.String |
removeCharacters(java.lang.String source,
java.lang.String characters)
Remove a character from a string |
static java.lang.String |
replaceKeyValue(java.lang.String source,
java.lang.String key,
java.lang.String value)
Replace all occurences of key with value in the source string |
static java.lang.String |
substituteKeys(java.lang.String source,
java.util.Hashtable replaceTable)
Replace all keys in source based on the keys and values in replaceTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringHandler()
| Method Detail |
public static java.lang.String getDisplayTime(int totalSeconds)
totalSeconds - public static java.lang.String plural(int number)
number - public static boolean isEmptyString(java.lang.String string)
string -
public static java.lang.String removeCharacters(java.lang.String source,
java.lang.String characters)
source - characters -
public static java.lang.String removeCharacter(java.lang.String source,
char character)
source - character -
public static java.lang.String replaceKeyValue(java.lang.String source,
java.lang.String key,
java.lang.String value)
source - key - value -
public static java.lang.String substituteKeys(java.lang.String source,
java.util.Hashtable replaceTable)
source - replaceTable -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||