Module rxmicro.validation
Package io.rxmicro.validation.constraint
The package for the
rxmicro.validation module that provides all supported constraints.- Since:
- 0.4
- Author:
- nedis
-
Enum Summary Enum Description Base64URLEncoded.Alphabet Validation alphabet.CountryCode.Format The country code format.IP.Version IP versions.Pattern.Flag Possible Regexp flags.TruncatedTime.Truncated SupportedTruncatedTime.Truncatedmode. -
Annotation Types Summary Annotation Type Description AllowEmptyString The annotated element may be optional, i.e.AssertFalse The annotated element must be false.AssertTrue The annotated element must be true.Base64URLEncoded The annotated element must be a valid Base64 string.CountryCode The annotated element must be a valid country code.DigitsOnly The annotated element must be a string value with digit characters only.DomainName The annotated element must be a valid domain name.Email The annotated element must be a well-formed email address.EndsWith The annotated element value must end with the provided suffix.Enumeration The annotated element must be an element of the predefined enumeration.Future The annotated element must be an instant in the future.FutureOrPresent The annotated element must be an instant in the present or in the future.HostName The annotated element must be a valid hostname.IP The annotated element must be a valid IP address.Lat The annotated element must be a valid latitude coordinate.LatinAlphabetOnly The annotated element must be a string with latin alphabet letters only.Length The annotated element must have the expected string length.Lng The annotated element must be a valid longitude coordinate.Lowercase The annotated element must a lowercase string.MaxDouble The annotated element must be a double whose value must be lower to the specified maximum.MaxInt The annotated element must be a byte or short or integer or long whose value must be lower or equal to the specified maximum.MaxLength The annotated element must have a string length whose value must be lower or equal to the specified maximum.MaxNumber The annotated element must be a number whose value must be lower or equal to the specified maximum.MaxSize The annotated element must have items whose count must be lower or equal to the specified maximum.MinDouble The annotated element must be a double whose value must be higher or equal to the specified minimum.MinInt The annotated element must be a byte or short or integer or long whose value must be higher or equal to the specified minimum.MinLength The annotated element must have a string length whose value must be higher or equal to the specified minimum.MinNumber The annotated element must be a number whose value must be higher or equal to the specified minimum.MinSize The annotated element must have items whose count must be higher or equal to the specified minimum.Nullable The annotated element may be optional, i.e.NullableArrayItem The annotated array element may be optional, i.e.Numeric The annotated element must be a decimal within accepted range (scale and precision).Past The annotated element must be an instant in the past.PastOrPresent The annotated element must be an instant in the past or in the present.Pattern The annotatedStringmust match the specified regular expression.Phone The annotated element must be a valid phone number.Size The annotated element must have the expected items count.Skype The annotated element must be a valid skype number.StartsWith The annotated element value must start with the provided prefix.SubEnum The annotated element must be an enumeration with predefined sub sequence.Telegram The annotated element must be a valid telegram number.TruncatedTime The annotated element must be an instant with truncated time value.UniqueItems The annotated element must contain unique items.Uppercase The annotated element must a uppercase string.URI The annotated element must be a validURIaddress.URLEncoded The annotated element must be a valid URL encoded value.Viber The annotated element must be a valid viber number.WhatsApp The annotated element must be a valid whatsapp number.