Java com.liferay.portal.kernel.util Validator fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.util Validator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.util Validator.

The text is from its open source code.

Subclass

com.liferay.portal.kernel.util.Validator has subclasses.
Click this link to see all its subclasses.

Method

booleanisAlphanumericName(String name)
Returns true if the string is an alphanumeric name, meaning it contains nothing but English letters, numbers, and spaces.
booleanisBlank(String s)
booleanisChar(char c)
Returns true if the character is an upper or lower case English letter.
booleanisChar(String s)
Returns true if string consists only of upper and lower case English letters.
booleanisDate(int month, int day, int year)
Returns true if the date is valid in the Gregorian calendar.
booleanisDigit(char c)
Returns true if the character is a digit between 0 and 9 (inclusive).
booleanisDigit(String s)
Returns true if the string consists of only digits between 0 and 9 (inclusive).
booleanisDomain(String domainName)
Returns true if the string is a valid domain name.
booleanisEmailAddress(String emailAddress)
Returns true if the string is a valid email address.
booleanisFileExtension(String fileExtension)
Returns true if the file extension is valid.
booleanisFileName(String name)
booleanisFilePath(String path, boolean parentDirAllowed)
booleanisHostName(String name)
Returns true if the string is a valid host name.
booleanisIPAddress(String ipAddress)
Returns true if the string is a valid IPv4 or IPv6 IP address.
booleanisLUHN(String number)
Returns true if the string contains a valid number according to the Luhn algorithm, commonly used to validate credit card numbers.
booleanisNotNull(Long l)
Returns true if the long number object is not null, meaning it is neither a null reference or zero.
booleanisNotNull(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.
booleanisNotNull(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.
booleanisNull(Long l)
Returns true if the long number object is null, meaning it is either a null reference or zero.
booleanisNull(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.
booleanisNull(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.
booleanisNumber(String number)
Returns true if the string is a decimal integer number, meaning it contains nothing but decimal digits.
booleanisPassword(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.
booleanisPhoneNumber(String phoneNumber)
Returns true if the string is a valid phone number.
booleanisUrl(String url)
Returns true if the string is a valid URL based on the rules in URL .
booleanisUrl(String url, boolean acceptRootRelative)
Returns true if the string is a valid URL based on the rules in URL .
booleanisVariableName(String variableName)
Returns true if the string is a valid variable name in Java.
booleanisVariableTerm(String s)
Returns true if the string is a valid variable term, meaning it begins with "[$" and ends with "$]".
booleanisXml(String s)
Returns true if the string is an XML document.