The options for constraints of properties are:
Constraint type | Description |
---|---|
Regular expression | Set a regular expression that values must match to be valid for example, a regular expression that matches four letters followed by four digits would be: /^[A-Za-z]{4}\d{4}$/. |
Minimum / maximum length | Set the minimum and maximum number of characters a value for the property can be,for example 0 and 10. |
Minimum / maximum value | Set the minimum and maximum values for properties, for example 5. |
List of values | Set a list of predefined values the property must be chosen from, for example payable,non-payable,unknown. |
Java class | Set the fully qualified Java class to use for restricting the values of the property. |