org.apache.cocoon.forms.validation.impl
Class AbstractJavaValidator

java.lang.Object
  extended by org.apache.cocoon.forms.validation.impl.AbstractJavaValidator
All Implemented Interfaces:
Configurable

public abstract class AbstractJavaValidator
extends Object
implements Configurable

Abstract base class for implementing an own Java validator which gets build by the JavaClassValidatorBuilder.

Version:
$Id: AbstractJavaValidator.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  ValidationError validationError
           
 
Constructor Summary
AbstractJavaValidator()
           
 
Method Summary
protected  ValidationError buildFailMessage(Element validationRuleElement)
          Checks if the validation rule configuration contains a custom failmessage, and if so, sets it one the ValidationRule.
 void configure(Configuration config)
           
protected abstract  ValidationError getDefaultFailMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validationError

protected ValidationError validationError
Constructor Detail

AbstractJavaValidator

public AbstractJavaValidator()
Method Detail

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

buildFailMessage

protected ValidationError buildFailMessage(Element validationRuleElement)
Checks if the validation rule configuration contains a custom failmessage, and if so, sets it one the ValidationRule.


getDefaultFailMessage

protected abstract ValidationError getDefaultFailMessage()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.