org.neodatis.tool.wrappers
Class OdbString
- java.lang.Object
-
- org.neodatis.tool.wrappers.OdbString
-
public class OdbString extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description OdbString()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleanequalsIgnoreCase(java.lang.String s1, java.lang.String s2)static java.lang.StringexceptionToString(java.lang.Throwable e, boolean escape)If escape==true, then remove $.static booleanmatches(java.lang.String regExp, java.lang.String value)static java.lang.StringreplaceToken(java.lang.String source, java.lang.String tokenToReplace, java.lang.String newToken)Replace a string within a stringstatic java.lang.StringreplaceToken(java.lang.String source, java.lang.String tokenToReplace, java.lang.String newToken, int numberOfTimes)Replace a string within a stringstatic java.lang.String[]split(java.lang.String source, java.lang.String separators)static java.lang.Stringsubstring(java.lang.String s, int beginIndex)static java.lang.Stringsubstring(java.lang.String s, int beginIndex, int endIndex)
-
-
-
Method Detail
-
split
public static java.lang.String[] split(java.lang.String source, java.lang.String separators)
-
replaceToken
public static java.lang.String replaceToken(java.lang.String source, java.lang.String tokenToReplace, java.lang.String newToken)Replace a string within a string- Parameters:
source- The String to modifytokenToReplace- The Token to replacenewToken- The new Token- Returns:
- String The new String
- Throws:
java.lang.RuntimeException- where trying to replace by a new token and this new token contains the token to be replaced
-
replaceToken
public static java.lang.String replaceToken(java.lang.String source, java.lang.String tokenToReplace, java.lang.String newToken, int numberOfTimes)Replace a string within a string- Parameters:
source- The String to modifytokenToReplace- The Token to replacenewToken- The new TokennumberOfTimes- The number of time, the replace operation must be done. -1 means replace all- Returns:
- String The new String
- Throws:
java.lang.RuntimeException- where trying to replace by a new token and this new token contains the token to be replaced
-
exceptionToString
public static java.lang.String exceptionToString(java.lang.Throwable e, boolean escape)If escape==true, then remove $.- Parameters:
e-escape-- Returns:
-
substring
public static java.lang.String substring(java.lang.String s, int beginIndex)
-
substring
public static java.lang.String substring(java.lang.String s, int beginIndex, int endIndex)
-
equalsIgnoreCase
public static boolean equalsIgnoreCase(java.lang.String s1, java.lang.String s2)
-
matches
public static boolean matches(java.lang.String regExp, java.lang.String value)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG