View Javadoc

1   package org.apache.myfaces.extensions.validator.test.util.model;
2   
3   import javax.faces.component.UIComponent;
4   import javax.faces.context.FacesContext;
5   import javax.faces.validator.ValidatorException;
6   
7   import org.apache.myfaces.extensions.validator.core.metadata.MetaDataEntry;
8   import org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractAnnotationValidationStrategy;
9   
10  public class CustomAnnotationStrategy extends
11          AbstractAnnotationValidationStrategy<CustomAnnotation>
12  {
13  
14      @Override
15      protected String getValidationErrorMsgKey(CustomAnnotation annotation)
16      {
17          // We don't have to do anything here, The tests in ExtValUtilsTestCase just deals with extraction.
18          return null;
19      }
20  
21      @Override
22      protected void processValidation(FacesContext facesContext,
23                                       UIComponent uiComponent, MetaDataEntry metaDataEntry,
24                                       Object convertedObject) throws ValidatorException
25      {
26          return;
27          // We don't have to do anything here, The tests in ExtValUtilsTestCase just deals with extraction.
28  
29      }
30  
31  }