org.apache.myfaces.extensions.validator.core.validation.strategy
Class AbstractAnnotationValidationStrategy

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractValidationStrategy
      extended by org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractAnnotationValidationStrategy
All Implemented Interfaces:
ValidationStrategy

public abstract class AbstractAnnotationValidationStrategy
extends AbstractValidationStrategy

Provides the ability of message resolving to ValidationStrategies

Since:
1.x.1
Author:
Gerhard Petracek

Field Summary
protected static java.lang.String DETAIL_MESSAGE_KEY_POSTFIX
           
 
Fields inherited from class org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractValidationStrategy
logger
 
Constructor Summary
AbstractAnnotationValidationStrategy()
           
 
Method Summary
protected  java.lang.String getErrorMessageDetail(java.lang.annotation.Annotation annotation)
           
protected  java.lang.String getErrorMessageSummary(java.lang.annotation.Annotation annotation)
           
protected  java.lang.String getLabel(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, MetaDataEntry metaDataEntry)
           
protected  javax.faces.application.FacesMessage getValidationErrorFacesMassage(java.lang.annotation.Annotation annotation)
           
protected abstract  java.lang.String getValidationErrorMsgKey(java.lang.annotation.Annotation annotation)
           
protected  boolean processAfterValidatorException(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, MetaDataEntry metaDataEntry, java.lang.Object convertedObject, javax.faces.validator.ValidatorException validatorException)
           
protected  java.lang.String resolveMessage(java.lang.String key)
           
 void setMessageResolver(MessageResolver messageResolver)
           
 
Methods inherited from class org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractValidationStrategy
initValidation, processValidation, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DETAIL_MESSAGE_KEY_POSTFIX

protected static final java.lang.String DETAIL_MESSAGE_KEY_POSTFIX
See Also:
Constant Field Values
Constructor Detail

AbstractAnnotationValidationStrategy

public AbstractAnnotationValidationStrategy()
Method Detail

resolveMessage

protected java.lang.String resolveMessage(java.lang.String key)

getErrorMessageSummary

protected java.lang.String getErrorMessageSummary(java.lang.annotation.Annotation annotation)

getErrorMessageDetail

protected java.lang.String getErrorMessageDetail(java.lang.annotation.Annotation annotation)

getValidationErrorFacesMassage

protected javax.faces.application.FacesMessage getValidationErrorFacesMassage(java.lang.annotation.Annotation annotation)

getValidationErrorMsgKey

protected abstract java.lang.String getValidationErrorMsgKey(java.lang.annotation.Annotation annotation)

setMessageResolver

public void setMessageResolver(MessageResolver messageResolver)

processAfterValidatorException

protected boolean processAfterValidatorException(javax.faces.context.FacesContext facesContext,
                                                 javax.faces.component.UIComponent uiComponent,
                                                 MetaDataEntry metaDataEntry,
                                                 java.lang.Object convertedObject,
                                                 javax.faces.validator.ValidatorException validatorException)
Overrides:
processAfterValidatorException in class AbstractValidationStrategy

getLabel

protected java.lang.String getLabel(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent uiComponent,
                                    MetaDataEntry metaDataEntry)


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