org.apache.myfaces.custom.emailvalidator
Class EmailValidator

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

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

Version:
$Revision: 1.6 $ $Date: 2004/11/30 09:37:42 $ $Log: EmailValidator.java,v $ Revision 1.6 2004/11/30 09:37:42 matzew changes i18n-messages for validation Revision 1.5 2004/10/13 11:50:57 matze renamed packages to org.apache Revision 1.4 2004/07/01 21:53:11 mwessendorf ASF switch Revision 1.3 2004/06/16 23:02:19 o_rossmueller merged confignew_branch Revision 1.2.2.1 2004/06/13 15:59:05 o_rossmueller started integration of new config mechanism: - factories - components - render kits - managed beans + managed properties (no list/map initialization) Revision 1.2 2004/06/05 09:37:43 mwessendorf new validator for regExpr. and began with Friendly validator messages Revision 1.1 2004/05/27 14:09:01 manolito creditcard and email validator refactored
Author:
mwessendorf (latest modification by $Author: matzew $)

Field Summary
static java.lang.String EMAIL_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
EmailValidator()
           
 
Method Summary
 void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object value)
          methode that validates an email-address.
 
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

EMAIL_MESSAGE_ID

public static final java.lang.String EMAIL_MESSAGE_ID

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

See Also:
Constant Field Values
Constructor Detail

EmailValidator

public EmailValidator()
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 an email-address. it uses the commons-validator

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