Package org.lionsoul.jcseg.util
Class EntityFormat
- java.lang.Object
-
- org.lionsoul.jcseg.util.EntityFormat
-
public class EntityFormat extends Object
Entity format manager class- Author:
- chenxin
-
-
Constructor Summary
Constructors Constructor Description EntityFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringisDate(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 booleanisIpAddress(String str)static booleanisMailAddress(String str)check if the specified string is an email address or notstatic booleanisMobileNumber(String str)check if the specified string is a mobile numberstatic booleanisTime(String str)check if the specified string is a valid time string like '12:45', '12:45:12'static booleanisUrlAddress(String str, ADictionary dic)check if the specified string is an URL address or not
-
-
-
Method Detail
-
isMailAddress
public static final boolean isMailAddress(String str)
check if the specified string is an email address or not- Parameters:
str-- Returns:
- boolean
-
isUrlAddress
public static final boolean isUrlAddress(String str, ADictionary dic)
check if the specified string is an URL address or not- Parameters:
str-dic- optional dictionary object- Returns:
- boolean
-
isMobileNumber
public static final boolean isMobileNumber(String str)
check if the specified string is a mobile number- Parameters:
str-- Returns:
- boolean
-
isIpAddress
public static final boolean isIpAddress(String str)
-
isDate
public static final 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"- Parameters:
str-- Returns:
- boolean
-
isTime
public static final boolean isTime(String str)
check if the specified string is a valid time string like '12:45', '12:45:12'- Parameters:
str-- Returns:
- boolean
-
-