org.apache.myfaces.extensions.validator.core.validation.strategy
Class AbstractAnnotationValidationStrategy<A extends java.lang.annotation.Annotation>

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<A>
All Implemented Interfaces:
ValidationStrategy

public abstract class AbstractAnnotationValidationStrategy<A extends java.lang.annotation.Annotation>
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(A annotation)
           
protected  java.lang.String getErrorMessageSummary(A annotation)
           
protected  java.lang.String getLabel(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, MetaDataEntry metaDataEntry)
           
protected  javax.faces.application.FacesMessage getValidationErrorFacesMessage(A annotation)
           
protected abstract  java.lang.String getValidationErrorMsgKey(A 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(A annotation)

getErrorMessageDetail

protected java.lang.String getErrorMessageDetail(A annotation)

getValidationErrorFacesMessage

protected javax.faces.application.FacesMessage getValidationErrorFacesMessage(A annotation)

getValidationErrorMsgKey

protected abstract java.lang.String getValidationErrorMsgKey(A 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-2010 The Apache Software Foundation. All Rights Reserved.