| java.lang.Object org.araneaframework.uilib.util.ValidationUtil
ValidationUtil | public class ValidationUtil (Code) | | author: Jevgeni Kabanov (ekabanov at araneaframework dot org) |
Inner Class :public static class ParsedDate | |
Method Summary | |
public static boolean | isEmail(String emailString) Checks whether the string is a valid email.
Parameters: emailString - supposed email string. | public static ParsedDate | parseDate(String dateTimeString, String format) Tries to parse the date according to the given patterns. |
isEmail | public static boolean isEmail(String emailString)(Code) | | Checks whether the string is a valid email.
Parameters: emailString - supposed email string. whether the string is a valid email. |
parseDate | public static ParsedDate parseDate(String dateTimeString, String format)(Code) | | Tries to parse the date according to the given patterns. The patterns correspond to the usual
SimpleDateFormat patterns with one addition: one can combine them using "|" so that
if at least one pattern parses the input it will be used.
Parameters: dateTimeString - date to be parsed. Parameters: format - SimpleDateFormat patterns with "|". parsed Date or null if parsing fails. |
|
|