org.apache.cocoon.woody.validation.impl
Class JavaScriptValidatorBuilder

java.lang.Object
  extended by org.apache.cocoon.woody.validation.impl.JavaScriptValidatorBuilder
All Implemented Interfaces:
Contextualizable, ThreadSafe, WidgetValidatorBuilder

public class JavaScriptValidatorBuilder
extends Object
implements WidgetValidatorBuilder, Contextualizable, ThreadSafe

Builds a JavaScript validator.

Version:
CVS $Id: JavaScriptValidatorBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez
See Also:
JavaScriptValidator

Field Summary
 
Fields inherited from interface org.apache.cocoon.woody.validation.WidgetValidatorBuilder
ROLE
 
Constructor Summary
JavaScriptValidatorBuilder()
           
 
Method Summary
 WidgetValidator build(Element element, WidgetDefinition definition)
          Builds a WidgetValidator for a particular widget definition.
 void contextualize(Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptValidatorBuilder

public JavaScriptValidatorBuilder()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

build

public WidgetValidator build(Element element,
                             WidgetDefinition definition)
                      throws Exception
Description copied from interface: WidgetValidatorBuilder
Builds a WidgetValidator for a particular widget definition.

Specified by:
build in interface WidgetValidatorBuilder
Parameters:
element - 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.