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 meta-data transformer if there is no validation strategy (required by jsr 303).
So the ValidationStrategy is only used to have the component initialization and is not used to do the actual
validation.
- Since:
- x.x.3
- Author:
- Gerhard Petracek
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 . |
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)
- Validates the convertedObject against the given
MetaDataEntry
.
Throws an unsupportedOperationException when the method gets executed. This ValidationStrategy should never
be used to perform actual validations.
- 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-2010 The Apache Software Foundation. All Rights Reserved.