|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.myfaces.extensions.validator.core.interceptor.AbstractRendererInterceptor org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor
public class ValidationInterceptor
Field Summary |
---|
Fields inherited from class org.apache.myfaces.extensions.validator.core.interceptor.AbstractRendererInterceptor |
---|
logger |
Constructor Summary | |
---|---|
ValidationInterceptor()
|
Method Summary | |
---|---|
protected MetaDataExtractor |
getComponentMetaDataExtractor(Map<String,Object> properties)
Implementations must return the MetaDataExtractor that will perform the extraction of the meta data from the component. |
protected Map<String,Object> |
getTransformedMetaDataFor(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
|
protected void |
initComponent(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
Initialize the component based on the meta-data which is provided by the referenced property. |
protected boolean |
interpretEmptyStringValuesAsNull()
Uses a config parameter (javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL) which was introduced by JSF 2 for converting empty strings to null. |
protected boolean |
isRequiredInitializationSupported()
In case of required initialization it's needed for some use-cases to reset the (required-)state of the components. |
protected boolean |
isValidationStrategyCompatibleWithValue(ValidationStrategy validationStrategy,
Object value,
MetaDataEntry entry)
|
protected void |
processFieldValidation(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object convertedObject,
PropertyInformation propertyInformation)
|
protected void |
processValidation(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object convertedObject)
A concrete implementation has to perform the actual validation of the value. |
protected boolean |
recordProcessedInformation()
Signals if the converted value should be stored e.g. |
Methods inherited from class org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor |
---|
afterDecode, beforeEncodeBegin, beforeGetConvertedValue, getELHelper, getInterceptorProperties, getModuleKey, getPropertiesForComponentMetaDataExtractor, getPropertyInformation, isValueToValidateEmpty, processAfterValidation, processBeforeValidation, processComponent, transformValueForValidation, validateEmptyFields, validateValue |
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 |
---|
public ValidationInterceptor()
Method Detail |
---|
protected boolean isRequiredInitializationSupported()
AbstractValidationInterceptor
isRequiredInitializationSupported
in class AbstractValidationInterceptor
protected void initComponent(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
AbstractValidationInterceptor
initComponent
in class AbstractValidationInterceptor
facesContext
- The JSF ContextuiComponent
- The component which is processedprotected Map<String,Object> getTransformedMetaDataFor(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
protected void processValidation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object convertedObject)
AbstractValidationInterceptor
processValidation
in class AbstractValidationInterceptor
facesContext
- The JSF ContextuiComponent
- The UIComponent which is processed.convertedObject
- The (adjusted) converted value.protected MetaDataExtractor getComponentMetaDataExtractor(Map<String,Object> properties)
AbstractValidationInterceptor
MetaDataExtractor
.
getComponentMetaDataExtractor
in class AbstractValidationInterceptor
properties
- Properties that can be used to determine the extractor which is returned.
protected void processFieldValidation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object convertedObject, PropertyInformation propertyInformation)
protected boolean isValidationStrategyCompatibleWithValue(ValidationStrategy validationStrategy, Object value, MetaDataEntry entry)
protected boolean interpretEmptyStringValuesAsNull()
AbstractValidationInterceptor
interpretEmptyStringValuesAsNull
in class AbstractValidationInterceptor
protected boolean recordProcessedInformation()
AbstractValidationInterceptor
recordProcessedInformation
in class AbstractValidationInterceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |