Ruddi™ UDDI Client API
1.0

inspireit.uddi.util.validators
Class PhoneValidator

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

public class PhoneValidator
extends java.lang.Object

Phone validator.

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

Field Summary
protected  Phone phone
          The Phone 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 PhoneValidator()
          PhoneValidator default constructor.
protected PhoneValidator(Phone phone, boolean throwOnFirst)
          PhoneValidator constructor.
 
Method Summary
 void validate()
          Validates a Phone.
 void validatePhone(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

phone

protected Phone phone
The Phone 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

PhoneValidator

protected PhoneValidator()
PhoneValidator default constructor.


PhoneValidator

protected PhoneValidator(Phone phone,
                         boolean throwOnFirst)
PhoneValidator constructor.

Parameters:
phone - The Phone 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 PhoneException
Validates a Phone.

Throws:
PhoneException - if a Phone anomaly has been detected

validatePhone

public void validatePhone(java.lang.String phone)
                   throws PhoneException
PhoneException

validateUseType

public void validateUseType(UseType useType)
                     throws PhoneException
PhoneException

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.