Ruddi™ UDDI Client API
1.0

inspireit.uddi.util.validators
Class AddressValidator

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

public class AddressValidator
extends java.lang.Object

Address validator.

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

Field Summary
protected  Address address
          The Address 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 AddressValidator()
          AddressValidator default constructor.
protected AddressValidator(Address address, boolean throwOnFirst)
          AddressValidator constructor.
 
Method Summary
 void validate()
          Validates an Address.
 void validateAddressLine(AddressLine addressLine)
           
 void validateSortCode(java.lang.String sortCode)
           
 void validateTModelKey(TModelKey tModelKey)
           
 void validateUseType(UseType useType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

protected Address address
The Address 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

AddressValidator

protected AddressValidator()
AddressValidator default constructor.


AddressValidator

protected AddressValidator(Address address,
                           boolean throwOnFirst)
AddressValidator constructor.

Parameters:
address - The Address 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 AddressException
Validates an Address.

Throws:
AddressException - if an Address anomaly has been detected

validateUseType

public void validateUseType(UseType useType)
                     throws AddressException
AddressException

validateSortCode

public void validateSortCode(java.lang.String sortCode)
                      throws AddressException
AddressException

validateAddressLine

public void validateAddressLine(AddressLine addressLine)
                         throws AddressException
AddressException

validateTModelKey

public void validateTModelKey(TModelKey tModelKey)
                       throws AddressException
AddressException

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.