|
at.glawar GlawarStrings [2006-06-10] |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.glawar.strings.StringUtil
This class provides methods that can be used nearly in every project.
| Method Summary | |
boolean |
compareSimpleFormats(String strText1,
String strText2)
compares to strings whereas the strings will be internal transformed into strings without german special characters, only uppercase and only containing characters from the alphabet. |
boolean |
compareSimpleFormats(String strText1,
String strText2,
String strAllowedCharacters)
compares to strings whereas the strings will be internal transformed into strings without german special characters, only uppercase and only containing characters from the allowed characters. |
boolean |
containsApostrophe(String strText)
checks if a given text contains at least single or a double apostrophe. |
boolean |
containsBlanks(String strText)
checks, if a given text contains at least one blank. |
boolean |
containsDoubleApostrophe(String strText)
checks if a given text contains at least a double apostrophe. |
boolean |
containsSingleApostrophe(String strText)
checks if a given text contains at least one single apostrophe. |
static StringUtil |
getHandle()
|
String |
makeThreeChars(int iValue)
displays an integer value as a string with length 3. |
String |
makeTwoChars(int inputInt)
Returns an integer-value as a string always with two digits, so if necessary with a leading 0. |
String |
makeTwoChars(String inputStr)
Returns an integer-value as a string always with two digits, so if necessary with a leading 0. |
String |
replaceDoubleBackslash(String strInput)
replaces all occurences of double backsplashes in a string by a normal slash. |
String |
replaceStr(String strOriginal,
String strFind,
String strReplacement)
replaces strings in strings. |
String |
transformIntoSimpleFormat(String strText)
transform the given text into a text that contains no german special characters, only uppercases and only the characters from the alphabet. |
String |
transformIntoSimpleFormat(String strText,
String strAllowedCharacters)
transform the given text into a text that contains no german special characters, only uppercases and only the characters described in the allowed characters. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static StringUtil getHandle()
StringUtilpublic String replaceDoubleBackslash(String strInput)
replaces all occurences of double backsplashes in a string by a normal slash.
strInput - String-value containing the double backslashes
strInput replaced with all double back slashes into
normal slashespublic String makeTwoChars(String inputStr)
Returns an integer-value as a string always with two digits, so if necessary with a leading 0.
inputStr - integer as a String
public String makeTwoChars(int inputInt)
Returns an integer-value as a string always with two digits, so if necessary with a leading 0.
inputInt -
public String makeThreeChars(int iValue)
displays an integer value as a string with length 3.
If necessary (integer value is only of length 1) leading 0
will be added.
iValue - the integer-value to display to
public boolean containsBlanks(String strText)
checks, if a given text contains at least one blank.
strText - text to check
true if the text contains at least one blankpublic boolean containsApostrophe(String strText)
checks if a given text contains at least single or a double apostrophe.
strText - text to check
true if the text contains at least either a single
or a double apostrophepublic boolean containsSingleApostrophe(String strText)
checks if a given text contains at least one single apostrophe.
strText - text to check
true if the text contains at least a single
apostrophepublic boolean containsDoubleApostrophe(String strText)
checks if a given text contains at least a double apostrophe.
strText - text to check
true if the text contains at least a double apostrophe
public String replaceStr(String strOriginal,
String strFind,
String strReplacement)
replaces strings in strings.
strOriginal - the string where the entry should be replaced withstrFind - the string that should be replacedstrReplacement - the string that should be replaced with
public boolean compareSimpleFormats(String strText1,
String strText2)
compares to strings whereas the strings will be internal transformed into strings without german special characters, only uppercase and only containing characters from the alphabet.
strText1 - first string to compare tostrText2 - second string to compare to
true if the two strings are equal about the conditions
described above
public boolean compareSimpleFormats(String strText1,
String strText2,
String strAllowedCharacters)
compares to strings whereas the strings will be internal transformed into strings without german special characters, only uppercase and only containing characters from the allowed characters.
strText1 - first string to compare tostrText2 - second string to compare tostrAllowedCharacters - the allowed characters
true if the two strings are equal about the conditions
described abovepublic String transformIntoSimpleFormat(String strText)
transform the given text into a text that contains no german special characters, only uppercases and only the characters from the alphabet.
strText - text to transform
public String transformIntoSimpleFormat(String strText,
String strAllowedCharacters)
transform the given text into a text that contains no german special characters, only uppercases and only the characters described in the allowed characters.
strText - text to transformstrAllowedCharacters - the allowed characters
strAllowedCharacters
|
software.glawar.at | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||