public class EntityFormat extends Object
| Constructor and Description |
|---|
EntityFormat() |
| Modifier and Type | Method and Description |
|---|---|
static String |
isDate(String str,
char delimiter)
check if the specified string is an valid Latin Date string
like "2017/02/22", "2017-02-22" or "2017.02.22"
|
static boolean |
isIpAddress(String str)
check if the specified string is a IPv4/v6 address
v6 is not supported for now
|
static boolean |
isMailAddress(String str)
check if the specified string is an email address or not
|
static boolean |
isMobileNumber(String str)
check if the specified string is a mobile number
|
static boolean |
isTime(String str)
check if the specified string is a valid time string
like '12:45', '12:45:12'
|
static boolean |
isUrlAddress(String str,
ADictionary dic)
check if the specified string is an URL address or not
|
public static final boolean isMailAddress(String str)
str - public static final boolean isUrlAddress(String str, ADictionary dic)
str - dic - optional dictionary objectpublic static final boolean isMobileNumber(String str)
str - public static final boolean isIpAddress(String str)
str - public static final String isDate(String str, char delimiter)
str - public static final boolean isTime(String str)
str - Copyright © 2017. All Rights Reserved.