org.aspsimon.termcomp.infrastructure.validator
Class CategoryNameValidator

java.lang.Object
  extended by org.aspsimon.termcomp.infrastructure.validator.CategoryNameValidator
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.validator.Validator

@Name(value="uniqueCategoryNameValidator")
@Validator
@Transactional
public class CategoryNameValidator
extends java.lang.Object
implements javax.faces.validator.Validator, java.io.Serializable

This is a validator to check that the role name requested does not already exist.

Version:
$Revision: 104 $
Author:
binabik
See Also:
Validator, Validator, Serialized Form

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

Constructor Detail

CategoryNameValidator

public CategoryNameValidator()
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
Implementation of Validator.validate(FacesContext, UIComponent, Object).

Specified by:
validate in interface javax.faces.validator.Validator
Parameters:
facesContext - FacesContext for the current request.
component - UIComponent being validated.
value - Value to check.
Throws:
javax.faces.validator.ValidatorException