Skip to main content

standard-types

net.democritus:standard-types::2.0.0

The standard-types expansion resourceExpansion Resource (ExpansionResource). A reusable resource bundle containing expanders and features that provide specific application capabilities, defined in the expansion settings and added to the classpath during expansion. provides several additional ValueTypes that extend the core ValueType with custom validations. These types are useful in most business domains.

TypeDescription
Ean13A string value representing an international article number code. It provides length and pattern constraints, but also full validation including checksum in JEE applicationsApplicationThe overarching model container grouping all components, domain logic, and configurations for an enterprise solution..
EmailAddressA string value representing an email address. It provides a pattern constraint, but also full validation against the RFC822 standard in JEE applicationsApplicationThe overarching model container grouping all components, domain logic, and configurations for an enterprise solution..
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 applicationsApplicationThe overarching model container grouping all components, domain logic, and configurations for an enterprise solution..
IbanA string value representing an international bank account number. It provides length and pattern constraints, but also full validation including checksum in JEE applicationsApplicationThe overarching model container grouping all components, domain logic, and configurations for an enterprise solution..
TelephoneNumberA string value representing a telephone number. It provides length and pattern constraints, but also full validation for phone numbers in JEE applicationsApplicationThe overarching model container grouping all components, domain logic, and configurations for an enterprise solution..
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 applicationsApplicationThe overarching model container grouping all components, domain logic, and configurations for an enterprise solution..
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>