|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xtom.parser.util.TextUtil
This class contains a number of helper methods used for manipulating the strings.
Constructor Summary | |
TextUtil()
|
Method Summary | |
static java.lang.String |
addSlashes(java.lang.String text)
If the " and ' were removed, puts them back. |
static java.lang.String |
capitalizedFirstLetters(java.lang.String text)
Takes the text consiting of one to many words, and converts first letter of each word to a UpperCase letter and the rest of the letters of the word are converted to the LowerCase. |
static java.lang.String |
stripSlashes(java.lang.String text)
Strips ' and " from the String to make sure that SQL statement doesn't produce any errors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextUtil()
Method Detail |
public static java.lang.String addSlashes(java.lang.String text)
text
-
public static java.lang.String stripSlashes(java.lang.String text)
text
-
public static java.lang.String capitalizedFirstLetters(java.lang.String text)
text
- Text
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |