org.apache.myfaces.extensions.validator.core.validation.strategy
Class AbstractAnnotationValidationStrategy<A extends java.lang.annotation.Annotation>
java.lang.Object
org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractValidationStrategy
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DETAIL_MESSAGE_KEY_POSTFIX
protected static final java.lang.String DETAIL_MESSAGE_KEY_POSTFIX
- See Also:
- Constant Field Values
AbstractAnnotationValidationStrategy
public AbstractAnnotationValidationStrategy()
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.