Form field validation plugin


Interface IPluginValidationRule

Uses

  • Interface to provide own validation rules for selection in the designer.

Method signatures

The plugin interface IPluginValidationRule references all methods provided by the Base interface IFCPlugin
and additionally the following plugin-specific method signatures:

public String getKey()

Key which is used to uniquely determine the validation rule.

String getKeyDisplayName(Locale loc)

Method to retrieve the name of the validation rule for display in the FORMCYCLE designer. Language-dependent names can be returned through the Locale object passed.

String getRegex()

The regular expression to apply for validation.

String getValidationErrorMsg(Locale loc)

Method to provide a message in case of validation errors. Language-dependent messages can be returned through the Locale object passed.