org.jboss.seam.faces.validation
Class Validator<T>

java.lang.Object
  extended by org.jboss.seam.faces.validation.Validator<T>
All Implemented Interfaces:
EventListener, Validator

public abstract class Validator<T>
extends Object
implements Validator

A generic abstract class implementing Validator, for convenient removal of type casting.

Author:
Brian Leathem

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

Constructor Detail

Validator

public Validator()
Method Detail

validate

public abstract void validate(UIComponent component,
                              T value)
                       throws ValidatorException
Throws:
ValidatorException

validate

public void validate(FacesContext context,
                     UIComponent component,
                     Object value)
              throws ValidatorException
Specified by:
validate in interface Validator
Throws:
ValidatorException

getContext

public FacesContext getContext()


Copyright © 2011 Seam Framework. All Rights Reserved.