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 1304258 2012-03-23 10:09:27Z 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

static final String ROLE
Method Detail

build

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-2010 The Apache Software Foundation. All Rights Reserved.