Example usage for Java com.liferay.portal.kernel.util Validator fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isAlphanumericName(String name) Returns true if the string is an alphanumeric name, meaning it contains nothing but English letters, numbers, and spaces. |
boolean | isBlank(String s) |
boolean | isChar(char c) Returns true if the character is an upper or lower case English letter. |
boolean | isChar(String s) Returns true if string consists only of upper and lower case English letters. |
boolean | isDate(int month, int day, int year) Returns true if the date is valid in the Gregorian calendar. |
boolean | isDigit(char c) Returns true if the character is a digit between 0 and 9 (inclusive). |
boolean | isDigit(String s) Returns true if the string consists of only digits between 0 and 9 (inclusive). |
boolean | isDomain(String domainName) Returns true if the string is a valid domain name. |
boolean | isEmailAddress(String emailAddress) Returns true if the string is a valid email address. |
boolean | isFileExtension(String fileExtension) Returns true if the file extension is valid. |
boolean | isFileName(String name) |
boolean | isFilePath(String path, boolean parentDirAllowed) |
boolean | isHostName(String name) Returns true if the string is a valid host name. |
boolean | isIPAddress(String ipAddress) Returns true if the string is a valid IPv4 or IPv6 IP address. |
boolean | isLUHN(String number) Returns true if the string contains a valid number according to the Luhn algorithm, commonly used to validate credit card numbers. |
boolean | isNotNull(Long l) Returns true if the long number object is not null , meaning it is neither a null reference or zero. |
boolean | isNotNull(Object obj) Returns true if the object is not null , using the rules from #isNotNull(Long) or #isNotNull(String) if the object is one of these types. |
boolean | isNotNull(String s) Returns true if the string is not null , meaning it is not a null reference, an empty string, whitespace, or the string "null ", with or without leading or trailing whitespace. |
boolean | isNull(Long l) Returns true if the long number object is null , meaning it is either a null reference or zero. |
boolean | isNull(Object obj) Returns true if the object is null , using the rules from #isNull(Long) or #isNull(String) if the object is one of these types. |
boolean | isNull(String s) Returns true if the string is null , meaning it is a null reference, an empty string, whitespace, or the string "null ", with or without leading or trailing whitespace. |
boolean | isNumber(String number) Returns true if the string is a decimal integer number, meaning it contains nothing but decimal digits. |
boolean | isPassword(String password) Returns true if the string is a valid password, meaning it is at least four characters long and contains only letters and decimal digits. |
boolean | isPhoneNumber(String phoneNumber) Returns true if the string is a valid phone number. |
boolean | isUrl(String url) Returns true if the string is a valid URL based on the rules in URL . |
boolean | isUrl(String url, boolean acceptRootRelative) Returns true if the string is a valid URL based on the rules in URL . |
boolean | isVariableName(String variableName) Returns true if the string is a valid variable name in Java. |
boolean | isVariableTerm(String s) Returns true if the string is a valid variable term, meaning it begins with "[$" and ends with "$]". |
boolean | isXml(String s) Returns true if the string is an XML document. |