JIDE 3.5.15

com.jidesoft.validation
Interface Validator

All Superinterfaces:
EventListener

public interface Validator
extends EventListener

Validator is an interface for validating a object.


Method Summary
 ValidationResult validating(ValidationObject vo)
          Validates the value in the ValidationObject.
 

Method Detail

validating

ValidationResult validating(ValidationObject vo)
Validates the value in the ValidationObject.

The event has both old value and new value as well as the source who sends this object. The implementation of this method should validate if the value is valid. If the value is valid, simply return ValidationResult.OK. Otherwise, constructs a ValidationResult and provide the id and message.

Parameters:
vo - the ValidationObject
Returns:
ValidationResult

JIDE 3.5.15