validate

abstract fun validate(value: String)

Check if value is valid for this field definition.

Exact semantics depend on the field type:

  • Text fields will be checked for a proper email format if non-blank and isEMail is set

  • Selector and Hierarchy fields will be checked to verify that the value matches an included node nodeId.

  • Hierarchy fields will verify the selected node is a leaf node.

Throws

if the field fails validation.