com.sysord.mad.validator
Interface WidgetValueValidationService


public interface WidgetValueValidationService

Service for validating the future value of a widget.

This service uses the validators defined by a given widget to validate the value to put into this widget.

Author:
philippe.palau@sysord.com http://www.sysord.com
See Also:
ValidatorDefinition, InputWidget

Method Summary
 void validateWidget(InputWidget<?> widget, java.lang.Object value)
          Validate the value for a widget.
 

Method Detail

validateWidget

void validateWidget(InputWidget<?> widget,
                    java.lang.Object value)
                    throws InvalidWidgetValueException
Validate the value for a widget. each widget validator is processed, when a validator detects a value as invalid a ValidationException is raised.

Parameters:
widget -
value -
Throws:
javax.xml.bind.ValidationException
InvalidWidgetValueException