org.umber.bellows.validate
Interface IValidator


public interface IValidator

An interface to validate complex data structures in the form of Datum trees. The types of validation, such as required fields, value ranges, and hierarchical structure, depend on the functionality of the IValidator implementation.

Author:
jsheets

Method Summary
 ValidationResult validate(Datum datum)
          Validates the input data tree according to the constraints of the validator.
 

Method Detail

validate

public ValidationResult validate(Datum datum)
Validates the input data tree according to the constraints of the validator. The IValidator might encapsulate an XML DTD or XML Schema specification, or some other custom constraint.

Parameters:
datum - the tree of data to validate
Returns:
the results of the validation