org.apache.myfaces.custom.isbnvalidator
Class ISBNValidator

java.lang.Object
  extended byorg.apache.myfaces.custom.isbnvalidator.ISBNValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.validator.Validator

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

Version:
$Revision: 1.3 $ $Date: 2004/11/30 09:37:42 $ $Log: ISBNValidator.java,v $ Revision 1.3 2004/11/30 09:37:42 matzew changes i18n-messages for validation Revision 1.2 2004/11/23 04:59:24 svieujot Remove "unmappable character for encoding UTF8" warning. Revision 1.1 2004/11/20 20:17:05 matzew added new validator for ISBN codes
Author:
Matthias We�endorf (latest modification by $Author: matzew $)

Field Summary
static java.lang.String ISBN_MESSAGE_ID
          The message identifier of the FacesMessage to be created if the maximum length check fails.
static java.lang.String VALIDATOR_ID
          The standard converter id for this converter.
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
ISBNValidator()
           
 
Method Summary
 void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object value)
          methode that validates isbn codes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR_ID

public static final java.lang.String VALIDATOR_ID

The standard converter id for this converter.

See Also:
Constant Field Values

ISBN_MESSAGE_ID

public static final java.lang.String ISBN_MESSAGE_ID

The message identifier of the FacesMessage to be created if the maximum length check fails.

See Also:
Constant Field Values
Constructor Detail

ISBNValidator

public ISBNValidator()
Method Detail

validate

public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent uiComponent,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException
methode that validates isbn codes. it uses the commons-validator

Specified by:
validate in interface javax.faces.validator.Validator
Throws:
javax.faces.validator.ValidatorException