org.netbeans.validation.api
Interface Validator<T>

All Known Implementing Classes:
AbstractValidationListener, Validators

public interface Validator<T>

Validator that can validate some aspect of a component's model, and indicate problems to the user.

Note that the class Validators provides many built-in validators to perform common tasks.

Author:
Tim Boudreau

Method Summary
 boolean validate(Problems problems, java.lang.String compName, T model)
          Validate the passed model.
 

Method Detail

validate

boolean validate(Problems problems,
                 java.lang.String compName,
                 T model)
Validate the passed model. If the component is invalid, this method should add problems to the passed list.

Parameters:
problems - A list of problems.
compName - The name of the component in question (may be null in some cases)
model - The model in question
Returns:
true if no problems were found during validation