org.apache.cocoon.forms.validation
Interface WidgetValidatorBuilder

All Known Implementing Classes:
AssertValidatorBuilder, CaptchaValidatorBuilder, EmailValidatorBuilder, JavaClassValidatorBuilder, JavaScriptValidatorBuilder, LengthValidatorBuilder, Mod10ValidatorBuilder, RangeValidatorBuilder, RegExpValidatorBuilder, ValueCountValidatorBuilder

public interface WidgetValidatorBuilder

Version:
$Id: WidgetValidatorBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
static String ROLE
           
 
Method Summary
 WidgetValidator build(Element validationRuleElement, WidgetDefinition definition)
          Builds a WidgetValidator for a particular widget definition.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

build

public WidgetValidator build(Element validationRuleElement,
                             WidgetDefinition definition)
                      throws Exception
Builds a WidgetValidator for a particular widget definition.

Parameters:
validationRuleElement - the DOM element defining the validator
definition - the widget definition the validator will have to validate. This may be used to check applicability of the validator to the widget.
Returns:
A WidgetValidator
Throws:
Exception - if some problem occurs


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.