Ruddi™ UDDI Client API
1.0

inspireit.uddi.util.validators
Class EMailValidator

java.lang.Object
  |
  +--inspireit.uddi.util.validators.EMailValidator

public class EMailValidator
extends java.lang.Object

EMail validator.

Author:
Bertrand Fontaine, INSPIRE IT $Revision: 1.2 $

Field Summary
protected  EMail email
          The EMail to validate.
protected  boolean throwOnFirst
          Whether the exception should be thrown from the first anomaly or when all checkings have been performed.
 
Constructor Summary
protected EMailValidator()
          EMailValidator default constructor.
protected EMailValidator(EMail email, boolean throwOnFirst)
          EMailValidator constructor.
 
Method Summary
 void validate()
          Validates a EMail.
 void validateEMail(java.lang.String phone)
           
 void validateUseType(UseType useType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

email

protected EMail email
The EMail to validate.


throwOnFirst

protected boolean throwOnFirst
Whether the exception should be thrown from the first anomaly or when all checkings have been performed.

Constructor Detail

EMailValidator

protected EMailValidator()
EMailValidator default constructor.


EMailValidator

protected EMailValidator(EMail email,
                         boolean throwOnFirst)
EMailValidator constructor.

Parameters:
email - The EMail to validate.
throwOnFirst - Whether the exception should be thrown from the first anomaly or when all checkings have been performed
Method Detail

validate

public void validate()
              throws EMailException
Validates a EMail.

Throws:
EMailException - if an EMail anomaly has been detected

validateEMail

public void validateEMail(java.lang.String phone)
                   throws EMailException
EMailException

validateUseType

public void validateUseType(UseType useType)
                     throws EMailException
EMailException

Ruddi™ UDDI Client API
1.0

Download now! | Submit a bug or feature
(c) 2003 INSPIRE IT
Bld Brand Whitlock 109
1200 Brussels, Belgium
All Rights Reserved.