This package provides interface and implementations for validating input data within a JNDI mapper.

Specifications

This package provides a {@link Validator} interface for use by mappers to validate input fields, a basic regex-based implementation ({@link RegexValidator}) and some Composite based operators for complex rules. Validation rules are attached to a mapper but may be defined globally in a configuration file and shared between multiple sources.

Validation process at the source level is implemented in {@link fr.norsys.mapper.jndi.mappers.JNDIMapper#checkInput()} method. This method simply applies a Chain of Responsibility pattern and checks each validation rule in turn. The behavior is controlled by property includeExclude which tells what behavior to apply:

By default, the JNDIMapper class validates anything and has its attribute includeExclude set to {@link Validator#INCLUDE}.

Documentation

@see java.util.regex.Pattern