| java.lang.Object com.bostechcorp.cbesb.common.util.StringUtil
StringUtil | public class StringUtil (Code) | | |
Field Summary | |
protected static transient Log | logger |
Method Summary | |
public static String | appendTagContent(int offset, String xml, String preTagName, String parentTagName, String childTagName, String subTag) | public static String | appendTagContnt(String xml, String preTagName, String parentTagName, String childTagName, String subTag) | public static int | arrayHashCode(String[] args) Parameters: args - -a string array a unique hashcode that depends on the elements in the array andnot on their order.Normal array implementations do not implement the hashCodeproperly. | public static boolean | equalTo(String value1, String value2) | public static String | format(double value) | public static String | formatDouble(String value) | public static String | formatDoubleNoDecimals(String value) | public static String | getStackTraceAsString(Throwable t) | public static String | getTagContent(int offset, String xml, String tagName) | public static String | getTagContnt(String xml, String tagName) | public static String | getTagValue(int offset, String xml, String tagName) | public static String | getTagValue(String xml, String tagName) | public static boolean | greaterThan(String value1, String value2) | public static boolean | greaterThanOrEqualTo(String value1, String value2) | public static boolean | isTrivial(String s) | public static boolean | lessThan(String value1, String value2) | public static boolean | lessThanOrEqualTo(String value1, String value2) | public static double | parseDouble(String value) | public static float | parseFloat(String value) | public static int | parseInteger(String value) | public static String | removeDecimals(String value) | public static String | removeTagContent(String xml, String xmlStartTagString, String xmlEndTagString) | public static String | renderNonNull(String s) | public static String | replace(String host, String find, String replce) | public static String | replaceString(String original, String from, String to) Replaces all instances of a substring with a replacement string.
Parameters: original - The original string. Parameters: from - The substring you wish to replace. Parameters: to - The string you want to substitute. | public static String | trimString(String s, int trimToSize) |
logger | protected static transient Log logger(Code) | | |
appendTagContent | public static String appendTagContent(int offset, String xml, String preTagName, String parentTagName, String childTagName, String subTag)(Code) | | Find a particular XML tag value in the XML string
|
arrayHashCode | public static int arrayHashCode(String[] args)(Code) | | Parameters: args - -a string array a unique hashcode that depends on the elements in the array andnot on their order.Normal array implementations do not implement the hashCodeproperly. This implementation returns the same value irrespectiveof the order in which the strings are arranged within the array. |
equalTo | public static boolean equalTo(String value1, String value2)(Code) | | Method returns true if value 1 is equal to value2
|
format | public static String format(double value)(Code) | | Method to format a double value to a string
valueThe date object to be formatted String The string representation of the double value |
formatDouble | public static String formatDouble(String value)(Code) | | Method to format a double value to a string
valueThe date object to be formatted String The string representation of the double value |
formatDoubleNoDecimals | public static String formatDoubleNoDecimals(String value)(Code) | | Method to remove decimals from string
valueThe date object to be formatted String The string representation of the fromatted string |
getTagContent | public static String getTagContent(int offset, String xml, String tagName)(Code) | | Find a particular XML tag value in the XML string
|
getTagValue | public static String getTagValue(int offset, String xml, String tagName)(Code) | | Find a particular XML tag value in the XML string
|
greaterThan | public static boolean greaterThan(String value1, String value2)(Code) | | Method returns true if value 1 is greater than value2
|
greaterThanOrEqualTo | public static boolean greaterThanOrEqualTo(String value1, String value2)(Code) | | Method returns true if value 1 is greater than equal to value2
|
isTrivial | public static boolean isTrivial(String s)(Code) | | Method returns true if string is either null or empty after trimming
|
lessThan | public static boolean lessThan(String value1, String value2)(Code) | | Method returns true if value 1 is less than value2
|
lessThanOrEqualTo | public static boolean lessThanOrEqualTo(String value1, String value2)(Code) | | Method returns true if value 1 is less than equal to value2
|
parseDouble | public static double parseDouble(String value)(Code) | | Method to remove decimals from string
valueThe date object to be formatted String The string representation of the fromatted string |
parseFloat | public static float parseFloat(String value)(Code) | | Method to remove decimals from string
valueThe date object to be formatted String The string representation of the fromatted string |
parseInteger | public static int parseInteger(String value)(Code) | | Method to return integer value from string
valueThe date object to be formatted String The string representation of the fromatted string |
removeDecimals | public static String removeDecimals(String value)(Code) | | Method to remove decimals from string
valueThe date object to be formatted String The string representation of the fromatted string |
replace | public static String replace(String host, String find, String replce)(Code) | | This function replaces find string with replace string in host string
|
replaceString | public static String replaceString(String original, String from, String to)(Code) | | Replaces all instances of a substring with a replacement string.
Parameters: original - The original string. Parameters: from - The substring you wish to replace. Parameters: to - The string you want to substitute. The original string with all occurences of the substringreplaced. |
|
|