org.apache.cocoon.forms.validation.impl
Class JavaClassValidatorBuilder
java.lang.Object
org.apache.cocoon.forms.validation.impl.JavaClassValidatorBuilder
- All Implemented Interfaces:
- Contextualizable, LogEnabled, Serviceable, ThreadSafe, WidgetValidatorBuilder
public class JavaClassValidatorBuilder
- extends Object
- implements WidgetValidatorBuilder, ThreadSafe, Serviceable, LogEnabled, Contextualizable
A WidgetValidatorBuilder
that creates java classes.
The syntax for this validator is as follows :
<java class="com.my.SuperValidator"/>
- Version:
- $Id: JavaClassValidatorBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaClassValidatorBuilder
public JavaClassValidatorBuilder()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
- See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
build
public WidgetValidator build(Element validationRuleElement,
WidgetDefinition definition)
throws Exception
- Description copied from interface:
WidgetValidatorBuilder
- Builds a
WidgetValidator
for a particular widget definition.
- Specified by:
build
in interface WidgetValidatorBuilder
- Parameters:
validationRuleElement
- the DOM element defining the validatordefinition
- 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- See Also:
WidgetValidatorBuilder.build(org.w3c.dom.Element, org.apache.cocoon.forms.formmodel.WidgetDefinition)
enableLogging
public void enableLogging(Logger logger)
- Specified by:
enableLogging
in interface LogEnabled
- See Also:
LogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)
contextualize
public void contextualize(Context context)
throws ContextException
- Specified by:
contextualize
in interface Contextualizable
- Throws:
ContextException
- See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.