public interface StringUtils
| Modifier and Type | Method and Description |
|---|---|
String |
escapeQuotes(String s)
Escapes single and double quotes
|
boolean |
isEmail(String value)
Checks whether a string is an email or not
|
boolean |
isImageUrl(String value)
Checks whether an URL is an image or not
|
boolean |
isJsonPath(String value)
Checks whether a string is a JsonPath or not
|
boolean |
isValidFileName(String fileName)
Valid a filename, must be alpha numeric, and accept - and _ too.
|
boolean |
isValidPhoneNumber(String value)
Check whether a string is a phone number or not
|
boolean |
noHtmlText(String value)
Check whether a string contains html tags
|
String |
stringListBuilder(List<String> items,
String start,
String separator,
String end)
Transform a list of string into a single string
|
String escapeQuotes(String s)
s - input Stringboolean isJsonPath(String value)
value - the string to testboolean isEmail(String value)
value - the string to testboolean isValidFileName(String fileName)
fileName - the name of the fileString stringListBuilder(List<String> items, String start, String separator, String end)
items - the list of stringsstart - the starting stringseparator - the separatorend - the ending stringboolean isValidPhoneNumber(String value)
value - the string to testboolean noHtmlText(String value)
value - the string to testboolean isImageUrl(String value)
value - the URLCopyright © 2015. All rights reserved.