Package com.ca.jcs.validator

Contains all support for writing pluggable validators and configuring them.

See:
          Description

Class Summary
ErrorMessage Representation of a validation failure, which can either be passed around in abstract string form (separate components) or converted to an concrete error message given a ResourceBundle.
ErrorMessages VirtualContainer for ErrorMessages relating to a single operation on the same object.
 

Package com.ca.jcs.validator Description

Contains all support for writing pluggable validators and configuring them. Implementation takes place in three levels (as with converters) to maximise the opportunities for reuse:

  1. The highest level (meta.) are property related validators that take in metadata settings for attributes and objectclasses, and use these to configure converter instances of lower levels.
  2. The next level (attr.) are attribute related validators, which have no dependency on metadata settings but are dependant on the JNDI API (for instance they understand an attribute may have multiple values, and how to iterate through them).
  3. The lowest level (core.) validators are not dependant on JNDI and deal simply with converting simple string values, but make use of a i18n resource bundles to present validation failure messages in a locale independent manner.
Where reuse is not a major concern (e.g. for validators targetting a single managed system) it is possible to place all three levels in a single class file, but separate implementation classes are still likely to be an attractive option to allow reusing common functionality in base classes like AttributeValueConverter and PropertyConverter.

$Id: package.html 47098 2010-01-22 01:36:37Z khaam03 $



Created 2011-07-14 13:27 EST