Package sk.iway.iwcm.form.validators
Class PhoneValidator
java.lang.Object
sk.iway.iwcm.form.validators.PhoneValidator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPhoneCode
(String phoneCode) void
addPhoneCodes
(List<String> phoneCodes) void
addPhoneCodes
(Set<String> phoneCodes) protected String
getConstant
(String key, String defaultKey) static PhoneValidator
getPhoneNumberNormalized
(String phoneNumber) getRegexps
(List<String> phoneClasses) protected String
boolean
hasBlacklistedPhoneClass
(List<String> classes) boolean
hasPhoneClass
(List<String> classes) boolean
isBlacklisted
(String phoneNumber) boolean
void
setPhoneCodes
(List<String> phoneCodes) void
setPhoneCodes
(Set<String> phoneCodes)
-
Field Details
-
phoneCodes
-
onlyMobilePhone
public boolean onlyMobilePhone
-
-
Constructor Details
-
PhoneValidator
protected PhoneValidator()
-
-
Method Details
-
getInstance
-
isValid
-
getRegexps
-
hasPhoneClass
-
hasBlacklistedPhoneClass
-
isBlacklisted
-
getBlacklistedPhoneClasses
-
getPhoneClasses
-
getConstant
-
getText
-
getPhoneNumberNormalized
-
getPhoneCodes
-
setPhoneCodes
-
setPhoneCodes
-
addPhoneCode
-
addPhoneCodes
-
addPhoneCodes
-