org.apache.myfaces.extensions.validator.core.validation.strategy
Class AbstractVirtualValidationStrategy
java.lang.Object
org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractVirtualValidationStrategy
- All Implemented Interfaces:
- IdentifiableValidationStrategy, ValidationStrategy
public abstract class AbstractVirtualValidationStrategy
- extends Object
- implements IdentifiableValidationStrategy
To map constraints directly to a
MetaDataTransformer
if there is no validation strategy (e.g. required by jsr 303).
So it is only used for the component initialization process (and not for the actual validation).
- Since:
- x.x.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractVirtualValidationStrategy
public AbstractVirtualValidationStrategy()
validate
public final void validate(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
MetaDataEntry metaDataEntry,
Object convertedObject)
- Throws an
UnsupportedOperationException
.
AbstractVirtualValidationStrategy
is just a placeholder to join the mapping approach in case of
other config mechanisms (e.g. in case of bean-validation).
- Specified by:
validate
in interface ValidationStrategy
- Parameters:
facesContext
- The JSF ContextuiComponent
- 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-2012 The Apache Software Foundation. All Rights Reserved.