Field Validator
Field Validator
The Field Validator plug-in is used to validate descriptive metadata according to the metadata profile setup. It uses regular expression syntax to define the pattern to be validated.
Plug-in Parameters
Plug-in parameters are set while installing a new instance of the plug-in and include the following:
- Regular Expression – Mandatory free text parameter to type the regular expression pattern to be validated
Field Validator Plug-in Details
Usage
A list of the implemented Field Validator plug-ins will be available as validation routines in the Metadata Form and Metadata Profile – DC Element Editor pages.
Metadata Form Details Page
Implementations
Rosetta includes the following implementations of the Field Validator plug-in:
- EmailValidator – Regular expression to validate email template
- ISBNValidator – Regular expression to validate ISBN template
- ISMNValidator – Regular expression to validate ISMN template
- ISSNValidator – Regular expression to validate ISSN template
- NumericValidator – Regular expression to validate numeric values
- PhoneValidator – Regular expression to validate phone template
- Regular_Expression_Validator_Plugin – A generic regular expression plug-in
- URLValidator – Regular expression to validate URL template
- W3CDTFValidator – Regular expression to validate W3CDTF (W3C Date and Time Format) template
Field Validator Plug-in List
The Field Validator plug-in can be used to validate descriptive metadata according to the relevant metadata profile setup. It uses regular expression syntax to define the pattern to be validated.
There is currently one out-of-the-box implementation, RegexpFieldValidatorPlugin, for the Field Validator plug-in. RegexpFieldValidatorPlugin receives regEx as a parameter and uses it to validate a field during runtime.
This implementation enables customers to create different plug-in instances using custom regular expressions, without having to write plug-in implementations themselves.