feathers.validators

utils
CreditCardValidator

The CreditCardValidator class validates that a credit card number is the correct length, has the correct prefix, and passes the Luhn mod10 algorithm for the specified card type. This validator does not check whether the credit card is an actual active credit card account.

CreditCardValidatorCardType

The CreditCardValidatorCardType class defines value constants for specifying the type of credit card to validate. These values are used in the CreditCardValidator.cardType property.

CurrencyValidator

The CurrencyValidator class ensures that a String represents a valid currency expression. It can make sure the input falls within a given range (specified by minValue and maxValue), is non-negative (specified by allowNegative), and does not exceed the specified precision. The CurrencyValidator class correctly validates formatted and unformatted currency expressions, e.g., "$12,345.00" and "12345". You can customize the currencySymbol, alignSymbol, thousandsSeparator, and decimalSeparator properties for internationalization.

CurrencyValidatorAlignSymbol

The CurrencyValidatorAlignSymbol class defines value constants for specifying currency symbol alignment. These values are used in the CurrencyValidator.alignSymbol property.

DateValidator

The DateValidator class validates that a String, Date, or Object contains a proper date and matches a specified format. Users can enter a single digit or two digits for month, day, and year. By default, the validator ensures the following formats:

EmailValidator

The EmailValidator class validates that a String has a single @ sign, a period in the domain name and that the top-level domain suffix has two, three, four, or six characters. IP domain names are valid if they are enclosed in square brackets. The validator does not check whether the domain and user name actually exist.

IValidator

This interface specifies the methods and properties that a Validator object must implement.

IValidatorListener

The interface that components implement to support the Flex data validation mechanism. The UIComponent class implements this interface. Therefore, any subclass of UIComponent also implements it.

NumberValidator

The NumberValidator class ensures that a String represents a valid number. It can ensure that the input falls within a given range (specified by minValue and maxValue), is an integer (specified by domain), is non-negative (specified by allowNegative), and does not exceed the specified precision. The validator correctly validates formatted numbers (e.g., "12,345.67") and you can customize the thousandsSeparator and decimalSeparator properties for internationalization.

NumberValidatorDomainType

The NumberValidatorDomainType class defines the values for the domain property of the NumberValidator class.

PhoneNumberValidator

The PhoneNumberValidator class validates that a string is a valid phone number. A valid phone number contains at least 10 digits, plus additional formatting characters. The validator does not check if the phone number is an actual active phone number.

RegExpValidationResult

The RegExpValidator class dispatches the valid and invalid events. For an invalid event, the event object is an instance of the ValidationResultEvent class, and the ValidationResultEvent.results property contains an Array of ValidationResult objects.

RegExpValidator

The RegExpValidator class lets you use a regular expression to validate a field. You pass a regular expression to the validator using the expression property, and additional flags to control the regular expression pattern matching using the flags property.

SocialSecurityValidator

The SocialSecurityValidator class validates that a String is a valid United States Social Security number. It does not check whether it is an existing Social Security number.

StringValidator

The StringValidator class validates that the length of a String is within a specified range.

ValidationResult

The ValidationResult class contains the results of a validation.

Validator

The Validator class is the base class for all Flex validators. This class implements the ability for a validator to make a field required, which means that the user must enter a value in the field or the validation fails. *

ZipCodeValidator

The ZipCodeValidator class validates that a String has the correct length and format for a five-digit ZIP code, a five-digit+four-digit United States ZIP code, or Canadian postal code.

ZipCodeValidatorDomainType

The ZipCodeValidatorDomainType class defines the values for the domain property of the ZipCodeValidator class, which you use to specify the type of ZIP code to validate.