Ruddi™ UDDI Client API
1.0

inspireit.uddi.util.validators
Class ContactValidator

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

public class ContactValidator
extends java.lang.Object

Contact validator.

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

Field Summary
protected  Contact contact
          The Contact 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 ContactValidator()
          ContactValidator default constructor.
protected ContactValidator(Contact contact, boolean throwOnFirst)
          ContactValidator constructor.
 
Method Summary
 void validate()
          Validates a Contact.
 void validateAddress(Address address)
           
 void validateDescription(Description description)
           
 void validateEMail(EMail email)
           
 void validatePersonNames(PersonNames personNames)
           
 void validatePhone(Phone 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

contact

protected Contact contact
The Contact 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

ContactValidator

protected ContactValidator()
ContactValidator default constructor.


ContactValidator

protected ContactValidator(Contact contact,
                           boolean throwOnFirst)
ContactValidator constructor.

Parameters:
contact - The Contact 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 ContactException
Validates a Contact.

Throws:
ContactException - if a Contact anomaly has been detected

validateUseType

public void validateUseType(UseType useType)
                     throws ContactException
ContactException

validateDescription

public void validateDescription(Description description)
                         throws ContactException
ContactException

validatePersonNames

public void validatePersonNames(PersonNames personNames)
                         throws ContactException
ContactException

validatePhone

public void validatePhone(Phone phone)
                   throws ContactException
ContactException

validateEMail

public void validateEMail(EMail email)
                   throws ContactException
ContactException

validateAddress

public void validateAddress(Address address)
                     throws ContactException
ContactException

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.