Package cn.net.pap.common.jsonorm.util
Class ValidateUtil
java.lang.Object
cn.net.pap.common.jsonorm.util.ValidateUtil
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
isContainsChinese
(String str) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
isIntOrFloat
(String number) static boolean
static boolean
static boolean
isNegativeFloat
(String number) static boolean
static boolean
isNotChinese
(String chineseStr) static boolean
static boolean
isNotDomain
(String domain) static boolean
isNotEmail
(String email) static boolean
isNotEmpty
(String str) static boolean
isNotFloat
(String number) static boolean
isNotIdCard
(String cardNumber) static boolean
isNotIntOrFloat
(String number) static boolean
static boolean
isNotNegativeFloat
(String number) static boolean
isNotNumber
(String str) static boolean
isNotNumberLetter
(String str) static boolean
isNotPhone
(String phone) static boolean
isNotPositiveFloat
(String number) static boolean
isNotTelephone
(String phoneNumber) static boolean
static boolean
isNotTimestamp
(String date) static boolean
static boolean
static boolean
static boolean
static boolean
isNumberLetter
(String str) static boolean
isPassword
(String str) static boolean
static boolean
isPositiveFloat
(String number) static boolean
isPositiveInteger
(String number) static boolean
static boolean
isTelephone
(String phoneNumber) static boolean
static boolean
isTimestamp
(String date) static boolean
static boolean
isUserName
(String str) static boolean
static boolean
static boolean
static boolean
-
Field Details
-
EMAIL_PATTERN
- See Also:
-
CHINESE_PATTERN
- See Also:
-
CONTAINS_CHINESE_PATTERN
- See Also:
-
NUMBER_ADN_LETTER
- See Also:
-
QQ_PATTERN
- See Also:
-
NUMBER_PATTERN
- See Also:
-
LETTER_PATTERN
- See Also:
-
ZIPCODE_PATTERN
- See Also:
-
PHONE_PATTERN
- See Also:
-
TELEPHONE_PATTERN
- See Also:
-
TELEPHONE_400_PATTERN
- See Also:
-
IDCARD_PATTERN
- See Also:
-
USERNAME_PATTERN
- See Also:
-
PASSWORD_PATTERN
- See Also:
-
UUID_PATTERN
- See Also:
-
YEAR_PATTERN
- See Also:
-
TIME_PATTERN
- See Also:
-
DATE_PATTERN
- See Also:
-
TIME_STAMP_PATTERN
- See Also:
-
IPV4_PATTERN
- See Also:
-
IPV6_PATTERN
- See Also:
-
URL_PATTERN
- See Also:
-
DOMAIN_PATTERN
- See Also:
-
INT_OR_FLOAT_PATTERN
- See Also:
-
FLOAT_PATTERN
- See Also:
-
POSITIVE_INTEGER
- See Also:
-
GIT_URL_PATTERN
- See Also:
-
-
Constructor Details
-
ValidateUtil
public ValidateUtil()
-
-
Method Details
-
validate
-
isEmail
-
isNotEmail
-
isChinese
-
isNotChinese
-
isNumberLetter
-
isNotNumberLetter
-
isQq
-
isNumber
-
isNotNumber
-
isLetter
-
isZipCode
-
isPhone
-
isNotPhone
-
isTelephone
-
isNotTelephone
-
isIdCard
-
isNotIdCard
-
isUserName
-
isPassword
-
isNonNegativeInteger
-
isUuid
-
isNotUuid
-
isDate
-
isNotDate
-
isTimestamp
-
isNotTimestamp
-
isIP
-
isNotIP
-
isUrl
-
isNotUrl
-
isDomain
-
isNotDomain
-
isIntOrFloat
-
isNotIntOrFloat
-
isFloat
-
isNotFloat
-
isNegativeFloat
-
isNotNegativeFloat
-
isPositiveFloat
-
isNotPositiveFloat
-
isPositiveInteger
-
isYear
-
isNotYear
-
isTime
-
isNotTime
-
isContainsChinese
-
isGitUrl
-
isEmpty
-
isNotEmpty
-