org.apache.myfaces.extensions.validator.core.interceptor
Class AbstractValidationInterceptor

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.interceptor.AbstractRendererInterceptor
      extended by org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor
All Implemented Interfaces:
RendererInterceptor
Direct Known Subclasses:
ValidationInterceptor

public abstract class AbstractValidationInterceptor
extends AbstractRendererInterceptor

Since:
x.x.3
Author:
Gerhard Petracek

Field Summary
 
Fields inherited from class org.apache.myfaces.extensions.validator.core.interceptor.AbstractRendererInterceptor
logger
 
Constructor Summary
AbstractValidationInterceptor()
           
 
Method Summary
 void afterDecode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer wrapped)
           
 void beforeEncodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer wrapped)
           
 void beforeGetConvertedValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object o, javax.faces.render.Renderer wrapped)
           
protected abstract  MetaDataExtractor getComponentMetaDataExtractor(java.util.Map<java.lang.String,java.lang.Object> properties)
           
protected  java.util.Map<java.lang.String,java.lang.Object> getInterceptorProperties(javax.faces.component.UIComponent uiComponent)
           
protected  java.lang.Class getModuleKey()
           
protected  java.util.Map<java.lang.String,java.lang.Object> getPropertiesForComponentMetaDataExtractor(javax.faces.component.UIComponent uiComponent)
           
protected  PropertyInformation getPropertyInformation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected abstract  void initComponent(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected  boolean interpretEmptyStringValuesAsNull()
           
protected  boolean isRequiredInitializationSupported()
           
protected  boolean isValueToValidateEmpty(java.lang.Object convertedObject)
           
protected  void processAfterValidation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object value)
           
protected  boolean processBeforeValidation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object value)
           
protected  boolean processComponent(javax.faces.component.UIComponent uiComponent)
           
protected abstract  void processValidation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object convertedObject)
           
protected  boolean recordProcessedInformation()
           
protected  java.lang.Object transformValueForValidation(java.lang.Object convertedObject)
           
protected  boolean validateEmptyFields()
           
protected  boolean validateValue(java.lang.Object convertedObject)
           
 
Methods inherited from class org.apache.myfaces.extensions.validator.core.interceptor.AbstractRendererInterceptor
afterEncodeBegin, afterEncodeChildren, afterEncodeEnd, afterGetConvertedValue, beforeDecode, beforeEncodeChildren, beforeEncodeEnd, getInterceptorId, getReturnValueOnSkipRendererDelegationException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractValidationInterceptor

public AbstractValidationInterceptor()
Method Detail

isRequiredInitializationSupported

protected boolean isRequiredInitializationSupported()

afterDecode

public void afterDecode(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent uiComponent,
                        javax.faces.render.Renderer wrapped)
                 throws SkipAfterInterceptorsException
Specified by:
afterDecode in interface RendererInterceptor
Overrides:
afterDecode in class AbstractRendererInterceptor
Throws:
SkipAfterInterceptorsException

beforeEncodeBegin

public void beforeEncodeBegin(javax.faces.context.FacesContext facesContext,
                              javax.faces.component.UIComponent uiComponent,
                              javax.faces.render.Renderer wrapped)
                       throws java.io.IOException,
                              SkipBeforeInterceptorsException,
                              SkipRendererDelegationException
Specified by:
beforeEncodeBegin in interface RendererInterceptor
Overrides:
beforeEncodeBegin in class AbstractRendererInterceptor
Throws:
java.io.IOException
SkipBeforeInterceptorsException
SkipRendererDelegationException

initComponent

protected abstract void initComponent(javax.faces.context.FacesContext facesContext,
                                      javax.faces.component.UIComponent uiComponent)

beforeGetConvertedValue

public void beforeGetConvertedValue(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent uiComponent,
                                    java.lang.Object o,
                                    javax.faces.render.Renderer wrapped)
                             throws javax.faces.convert.ConverterException,
                                    SkipBeforeInterceptorsException,
                                    SkipRendererDelegationException
Specified by:
beforeGetConvertedValue in interface RendererInterceptor
Overrides:
beforeGetConvertedValue in class AbstractRendererInterceptor
Throws:
javax.faces.convert.ConverterException
SkipBeforeInterceptorsException
SkipRendererDelegationException

processBeforeValidation

protected boolean processBeforeValidation(javax.faces.context.FacesContext facesContext,
                                          javax.faces.component.UIComponent uiComponent,
                                          java.lang.Object value)

processAfterValidation

protected void processAfterValidation(javax.faces.context.FacesContext facesContext,
                                      javax.faces.component.UIComponent uiComponent,
                                      java.lang.Object value)

getPropertyInformation

protected PropertyInformation getPropertyInformation(javax.faces.context.FacesContext facesContext,
                                                     javax.faces.component.UIComponent uiComponent)

getPropertiesForComponentMetaDataExtractor

protected java.util.Map<java.lang.String,java.lang.Object> getPropertiesForComponentMetaDataExtractor(javax.faces.component.UIComponent uiComponent)

getComponentMetaDataExtractor

protected abstract MetaDataExtractor getComponentMetaDataExtractor(java.util.Map<java.lang.String,java.lang.Object> properties)

transformValueForValidation

protected java.lang.Object transformValueForValidation(java.lang.Object convertedObject)

validateValue

protected boolean validateValue(java.lang.Object convertedObject)

isValueToValidateEmpty

protected boolean isValueToValidateEmpty(java.lang.Object convertedObject)

validateEmptyFields

protected boolean validateEmptyFields()

interpretEmptyStringValuesAsNull

protected boolean interpretEmptyStringValuesAsNull()

processValidation

protected abstract void processValidation(javax.faces.context.FacesContext facesContext,
                                          javax.faces.component.UIComponent uiComponent,
                                          java.lang.Object convertedObject)

processComponent

protected boolean processComponent(javax.faces.component.UIComponent uiComponent)

recordProcessedInformation

protected boolean recordProcessedInformation()

getModuleKey

protected java.lang.Class getModuleKey()

getInterceptorProperties

protected java.util.Map<java.lang.String,java.lang.Object> getInterceptorProperties(javax.faces.component.UIComponent uiComponent)


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