Skip to main content

standard-types

net.democritus:standard-types::1.5.0

The standard-types expansion-resource provides several additional ValueTypes:

TypeDescription
Ean13A string value representing an international article number code. It provides length and pattern constraints, but also full validation including checksum in JEE applications.
EmailAddressA string value representing an email address. It provides a pattern constraint, but also full validation against the RFC822 standard in JEE applications.
EmailAddressesA string value representing a comma-separated string with multiple email addresses. It provides a pattern constraint, but also full validation against the RFC822 standard in JEE applications.
IbanA string value representing an international bank account number. It provides length and pattern constraints, but also full validation including checksum in JEE applications.
TelephoneNumberA string value representing a telephone number. It provides length and pattern constraints, but also full validation for phone numbers in JEE applications.
UrlA string representing an URL for http(s), ftp or file protocol. It provides a pattern constraint, but also validation against the URL standard in JEE applications.
VarTextA variable-length string value. It provides additional information for sql-expanders to generate the correct type in database scripts.

TelephoneNumber

Option
telephone.region SimpleValueTypeField

Telephone numbers can have a default region assigned. In that case, numbers without the country code prefix will be interpreted as numbers within this region.

<options>
<telephone.region>BE</telephone.region>
</options>
<options>
<telephone.region>FR</telephone.region>
</options>