info.informatica.data
Interface Validable

All Known Implementing Classes:
DataField, ForeignKeyDataEntity, KeyDataEntity

public interface Validable

Objects implementing this interface can validate its own values. All DataField objects are Validable.

Author:
amengual at informatica dot info

Method Summary
 Object validate(Object value)
          Validates the value.
 Object validate(Object value, Object helper)
          Validates the value using the helper helper object.
 

Method Detail

validate

Object validate(Object value)
                throws DataException
Validates the value.

Parameters:
value - the value to be verified/validated
Returns:
the validated version of the object (usually the unchanged value argument).
Throws:
DataException - TODO

validate

Object validate(Object value,
                Object helper)
                throws DataException
Validates the value using the helper helper object.

Parameters:
value - the value to be verified
helper - a helper object for validation. Also could be used as an indicator of the level of validation to be reached.
Returns:
the validated version of the object (usually the unchanged value argument).
Throws:
DataException - TODO