org.apache.myfaces.extensions.validator.core.validation.strategy
Interface ValidationStrategy

All Known Subinterfaces:
BeanValidationStrategyAdapter, IdentifiableValidationStrategy
All Known Implementing Classes:
AbstractAnnotationValidationStrategy, AbstractValidationStrategy, AbstractVirtualValidationStrategy, BeanValidationStrategyAdapterImpl

public interface ValidationStrategy

Base interface for ValidationStrategies. A validation strategy is responsible for validating a certain constraint. Furthermore, it can be an adapter for other validation frameworks like bean-validation and it's used to link e.g. a constraint with a message resolver.

Since:
1.x.1
Author:
Gerhard Petracek
See Also:
AbstractValidationStrategy

Method Summary
 void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, MetaDataEntry metaDataEntry, Object convertedObject)
          Validates the convertedObject against the given MetaDataEntry.
 

Method Detail

validate

void validate(javax.faces.context.FacesContext facesContext,
              javax.faces.component.UIComponent uiComponent,
              MetaDataEntry metaDataEntry,
              Object convertedObject)
Validates the convertedObject against the given MetaDataEntry.

Parameters:
facesContext - The JSF Context
uiComponent - The JSF component that contained the value entered by the user.
metaDataEntry - The data holder which stores the meta-data and some information where the meta-data was around.
convertedObject - Converted object of the user entered value.


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