The aim of the restriction constraint is to port all the data type restrictions
from xsd to the MForm control.
When generating the form from the schema, the restrictions will appear in the
Additions property of the corresponding item.
The Restriction control has two important properties:
RestrictionType - the restriction type
Value - the value that the restriction will consume
There are several constraint types, most of them corresponding to the xml schema
restriction types:
MaxLength - the maximal field length
MinLength - the minimal field length
Length - the exact field length
MinInclusive - the field value parsed as number cannot be lower than
or equal the specified value
MinExclusive - the field value parsed as number cannot be lower than
the specified value
MaxInclusive - the field value parsed as number cannot be higher than
or equal the specified value
MaxExclusive - the field value parsed as number cannot be higher than
the specified value
Pattern - the field value must match the specified pattern (the pattern
should be written in the Value property)
TotalDigits - the field value parsed as number cannot have more total
number of digits than the specified value
FractionDigits - the field value parsed as number cannot have more
fraction digits than the specified value