|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.basic.Utility
this class provides a lot of functions which could be very usefull
Constructor Summary | |
Utility()
|
Method Summary | |
static java.lang.String |
downFirstChar(java.lang.String strg)
This function turns the first character of |
static java.lang.String |
downStart(java.lang.String strg)
This function turns all the uppercase chars at the beginning of the string up to but not including the last one before a lowercase char. |
static boolean |
isNullOrEmpty(java.lang.String s)
This function returns true if |
static java.lang.String |
nullIfEmpty(java.lang.String s)
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
quote(java.lang.String string)
This function puts '"' around |
static java.lang.String |
textToWidth(java.lang.String text,
int width)
this function shorts the string text to length width |
static java.lang.String |
upFirstChar(java.lang.String strg)
This function turns the first character of |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utility()
Method Detail |
public static java.lang.String nullIfEmpty(java.lang.String s)
s
- No description provided
public static boolean isNullOrEmpty(java.lang.String s)
s
- No description provided
public static java.lang.String quote(java.lang.String string)
string
- and returns it, if it's not empty and not null; else it returns the string
'null'.
public static java.lang.String upFirstChar(java.lang.String strg)
strg
- No description provided
public static java.lang.String downFirstChar(java.lang.String strg)
strg
- No description provided
public static java.lang.String downStart(java.lang.String strg)
For example:
startLowerCase
is not alteredALLUPPERCASE
becomes alluppercase
FirstUpperCase
becomes firstUpperCase
SOMEUpperCase
becomes someUpperCase
strg
- the string to convert
public static java.lang.String textToWidth(java.lang.String text, int width)
text
- the string which should be shortedwidth
- max length of the returned string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |