org.openfaces.validation.validators
Class AnnotationValidator

java.lang.Object
  extended by org.openfaces.validation.validators.AnnotationValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.validator.Validator

public class AnnotationValidator
extends java.lang.Object
implements javax.faces.validator.Validator

AnnotationValidator

is an implementation of Validator interface that validates a value of corresponding UIComponent instance. AnnotationValidator use value expression that refers to property for obtaining a set of annotations which will be constraints for validation.


Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
AnnotationValidator()
           
 
Method Summary
 void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationValidator

public AnnotationValidator()
Method Detail

validate

public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent component,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException
Specified by:
validate in interface javax.faces.validator.Validator
Throws:
javax.faces.validator.ValidatorException


Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.